| bio | website | stephenharris.info |
|---|---|---|
| location | Edinburgh, United Kingdom | |
| age | 25 | |
| visits | member for | 1 year, 7 months |
| seen | 11 hours ago | |
| stats | profile views | 1,009 |
Mathematics PhD student at the University of Edinburgh with a (geeky) passion for anything coding related.
I develop WordPress plugins, including the event management plugin, Event Organiser. I also write for Wptuts+
|
Mar 2 |
accepted | restore_current_blog() vs switch_to_blog() |
|
Mar 2 |
comment |
restore_current_blog() vs switch_to_blog() Thought there wasn't any reason not to. Was confused why restore_current_blog() didn't just retrive the previous blog ID and call switch_to_blog() - a brief look at the code source and it seems there's a bit of code duplication... |
|
Mar 2 |
asked | restore_current_blog() vs switch_to_blog() |
|
Mar 2 |
revised |
Querying post from a multisite network restore_current_blog() must be called after each switch_to_blog() |
|
Mar 2 |
revised |
find a random blogid across my multisite network that has at least one post published restore_current_blog() must be called after each call to switch_to_blog() |
|
Feb 6 |
reviewed | Leave Open PHP unit testing WordPress? |
|
Feb 5 |
comment |
Want to add my custom prepare query but add_filter doesn't run Can you link to where prepare_query is in the core code? (I'm not sure it exists). |
|
Jan 26 |
answered | When does next Cron Job run (time from now)? |
|
Jan 24 |
comment |
Is it possible to get a user with just the password field? This is not entirely correct! Password hashes are salted (salts randomly generated for each user) - see github.com/WordPress/WordPress/blob/3.4.1/wp-includes/…. In general the same password won't have the same hash in the database. But as @toscho has said, its not collision safe (albeit collisions very unlikely). |
|
Jan 24 |
comment |
How to theme code blocks formatted by the prettify.js embedded with WP-Markdown? Core does not concatenate plug-in scripts/styles... |
|
Jan 22 |
answered | Looking for a way to take readers to random post when clicking a link |
|
Jan 22 |
comment |
Shortcode return is printing a 1 afterward @Dan Is include_once appropriate here - the shortcode could appear twice? |
|
Jan 22 |
comment |
How to use 'Event Manager Shortcodes' plugin via the php code? @bueltge I don't think that matters. At least I know [shortcode attribute=true] passes the value of attribute as a string rather than boolean. |
|
Jan 22 |
answered | How to theme code blocks formatted by the prettify.js embedded with WP-Markdown? |
|
Jan 21 |
revised |
Styling an “active” link outside of Wordpress default menu Added missing parenthesis to function. |
|
Jan 19 |
reviewed | Approve suggested edit on qTranslate get content by language |
|
Jan 18 |
awarded | Informed |
|
Jan 18 |
answered | datetime picker, timestamps and meta queries |
|
Jan 17 |
comment |
How to use 'Event Manager Shortcodes' plugin via the php code? @Bhuvnesh It should work. You can pass attributes like that with do_shortcode. A bug with the plug-in perhaps? Probably best to ask them on the plug-in forums as there's not much else to add here :). |
|
Jan 17 |
revised |
How to use 'Event Manager Shortcodes' plugin via the php code? added 5 characters in body |