Reputation
465
Top tag
Next privilege 500 Rep.
Access review queues
Badges
8 29
Impact
~93k people reached

Nov
7
awarded  Self-Learner
Nov
2
comment Unit testing in the WordPress backend (is_admin() is true)
Worth noting that I eventually had to essentially instantiate the class and then call the methods manually anyway as the load order was funky and causing weird failures. The tl;dr is — don't bother testing any part of WordPress itself, instantiate your class manually and run your functions and assert output based upon that.
Nov
2
answered Unit testing in the WordPress backend (is_admin() is true)
Nov
2
comment Unit testing in the WordPress backend (is_admin() is true)
@Scriptonomy frowns That's changing the underlying config of WordPress. Is this really how people are told to do it?
Nov
2
asked Unit testing in the WordPress backend (is_admin() is true)
Nov
2
comment Load entire NextGEN gallery from single thumbnail?
Good modern answer!
Aug
24
comment Is there a way to disable the sticky posts feature?
@ialocin — In lieu of an updated answer, basically: 1. Add the following function to those run during the "admin_print_styles" hook (which inserts CSS et al) 2. Expose the current page global 3. Stop processing function if not on a page with the sticky post toggles in question 4. Otherwise append some CSS that hides said-toggles.
Feb
11
accepted Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
Feb
11
comment Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
Epic. Win. Possibly one of the best answers I've received on WP.SE. Nice work!
Feb
9
revised Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
edited title
Feb
9
asked Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
Oct
15
comment Saving data-URI to media library
@G.M.I hadn't known about wp_upload_bits — that's super helpful. Thanks!
Oct
14
comment Saving data-URI to media library
@rarst I'm not even looking for VIP compliance so much as "I'm using WordPress's file handling classes properly", in the 12-factor-y manner VIP does it (i.e., if somebody has a "auto-upload all media library images to Amazon S3" plugin, it will work with that too. The above seems to work (updating with changes now), I'm just not sure it's hooking into the Media Library in a conventional fashion.
Oct
14
awarded  Revival
Oct
14
asked Saving data-URI to media library
Oct
6
awarded  Notable Question
Sep
30
awarded  Explainer
Sep
12
awarded  Popular Question
Aug
19
awarded  Popular Question
Aug
17
comment Uninstall, Activate, Deactivate a plugin: typical features & how-to
@kaiser Though, just FYI — phpcs still generates the same error even if you wrap $_REQUEST in either filter_var() or esc_attr(). Seems like more of a problem with phpcs than anything...