1,386 reputation
21550
bio website iandunn.name
location Seattle, WA
age 32
visits member for 4 years, 1 month
seen Mar 24 at 1:14

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.


Mar
24
comment Get excerpt using get_the_excerpt outside a loop
EAMann's answer is a much better approach to this problem, and the should be considered the best practice. This approach is basically duplicating Core's internals instead of using the API.
Mar
12
awarded  Yearling
Feb
10
awarded  Popular Question
Jan
20
awarded  Notable Question
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