378 reputation
828
bio website aendrew.com
location London, United Kingdom
age 27
visits member for 3 years, 11 months
seen Oct 15 at 15:51

London-based multi-nerd specializing in data journalism, data visualisation and CMS development/implementation/deployment (Drupal, WordPress and Joomla!). I'm a news developer at The Times and Sunday Times.

Stuff:

I've also done data work for The Guardian and The Economist; visit my portfolio to see some of it.


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...
Aug
17
comment Uninstall, Activate, Deactivate a plugin: typical features & how-to
@kaiser That's what I figured. Your answer is even referenced by the official WP docs, so I figured it's probably not an issue. Thanks for getting back to me!
Aug
14
comment Uninstall, Activate, Deactivate a plugin: typical features & how-to
I'm linting some code based off the class-based approach and the VIP code standards are giving me grief over those $_REQUEST globals, saying they're non-sanitised. Any ideas how to get around that?
Aug
7
revised Hook for image edit popup
edited body
Aug
6
comment Hook for image edit popup
I don't think I can award myself my own bounty, so will award it to anyone who knows of an easier or cleaner way of accomplishing this.
Aug
6
answered Hook for image edit popup
Aug
6
comment Hook for image edit popup
@MannyFleurmond Yep — like, when you insert an image and then click it, two buttons pop up, "delete" and "edit". Is there any way of hooking into the "Edit" button so it opens, say, a TinyMCE modal instead of the WP Media Manager? It seems the code for it all is in wp-includes/js/tinymce/plugins/wpeditimage...
Aug
6
awarded  Excavator
Aug
6
awarded  Organizer
Aug
6
revised Hook for image edit popup
cleaned language, added new tags.
Aug
6
comment Hook for image edit popup
Downvoting, doesn't answer the question.
Aug
6
awarded  Investor