1,333 reputation
21349
bio website iandunn.name
location Seattle, WA
age 31
visits member for 3 years, 9 months
seen 2 days ago

I'm a Seattle-based web developer working on the Dot Org team at Automattic.

I've released a few plugins into the repository and also have some some small WP-related projects on Github.


Nov
25
revised wp_next_scheduled returning a past timestamp
Fix typo in `DISABLE_WP_CRON` constant. Also remove "sorry" to get over 6 char limit, since this is a legit edit despite the short char count.
Nov
25
suggested approved edit on wp_next_scheduled returning a past timestamp
Nov
25
comment WP Cron doesn't execute when time elapses
I think WP_Cron uses GMT under the hood, like the rest of WP, so it'd be better to schedule the first event at time() instead of current_time().
Nov
25
comment WP Cron doesn't execute when time elapses
Core already provides an hourly interval, so you don't need to 1_hours.
Nov
14
comment Flush Rewrite Rules when new site is created on network
I think you need to call $wp_rewrite->init() after switch_to_blog(), otherwise you'll use the rewrite rules of the original blog with rebuilding the rules for the new blog.
Nov
14
comment Flush Rewrite Rules when new site is created on network
That's a bad idea because it will flush the rules on every page load, which severely degrades performance. See the notes on codex.wordpress.org/flush_rewrite_rules for more details.
Nov
5
comment Automatically determine minimum WordPress version required for a plugin?
That service now supports uploading a zip file, and it'll automatically scan all the files inside it :)
Oct
2
awarded  Popular Question
Sep
30
awarded  Explainer
Sep
29
comment restore_current_blog() vs switch_to_blog()
I don't think modifying the globals directly is a good idea, because you're coupling your code to Core's internals, which isn't future-proof. It's better to use the API properly.
Aug
13
awarded  Popular Question
Jul
2
awarded  Curious
Jun
18
revised Custom admin_notices Messages Ignored During Redirects
Link to self-contained library and Core ticket
Jun
18
comment Conditionally Loading JavaScript/CSS for Shortcodes
That's not really relevant to this question, which is about controlling the enqueueing from within the plugin itself. Your approach would require asking the user to install another plugin, and then understand how to properly configure it.
Apr
22
awarded  Announcer
Apr
1
awarded  Popular Question
Mar
12
awarded  Yearling
Jan
21
awarded  Constituent
Jan
21
comment Is moving wp-config outside the web root really beneficial?
I don't do that for 99% of the questions I've asked, but I thought it was appropriate in this specific case. There are 8 answers to the question, some of which are fairly lengthly/complex, and some of which have a lot of upvotes despite despite containing inaccurate info or not adding anything to the conversation. I think offering a semi-authoritative conclusion is helpful to people reading the thread for the first time. As always, readers are free to make up their own mind; I'm just offering my opinion as the OP.
Jan
13
awarded  Caucus