Stephen Harris

Edinburgh, United Kingdom

stephenharris.info

Age: 26

Mathematics PhD student at the University of Edinburgh with a (geeky) passion for anything coding related.

I've recently created a new WordPress Event management plugin, Event Organiser.

Mar
14
awarded Enlightened
Mar
14
awarded Nice Answer
Mar
9
comment wp_verify_nonce vs check_admin_referer
@SeventhSteel - you are of course right. My interpretation of the question was that the logic of checking nonces were being compared rather than what happens when its invalid
Feb
23
answered Single Must Use Plugins Directory for local development
Feb
18
awarded Popular Question
Feb
1
awarded Nice Question
Jan
13
comment Confirm email before registration - Wordpress
possible duplicate of Email verification for new users
Jan
12
awarded Good Answer
Jan
11
revised Will placing custom templates in sub directory break any native WordPress functionality
Added line to emphasize the 'fix' for the problem.
Jan
11
comment How to install bootstrap in child theme
@Digitaldervish have you de-registered the original stylesheets first?
Jan
11
awarded Nice Answer
Jan
2
comment What is the most efficient way of implementing a favorite post system?
If going down the post meta route you may need to do a bit of de-normalisation and store the number of favourites too. I'm assuming you'll probably want to sort posts, and you can't sorting on serialised data. Or if each user ID is a separate entry in the post meta table you could use that as the basis of the sort (but that would require some custom SQL as I don't think WordPress handles that type of sort).
Dec
29
comment Sanitize slug title
Oops, changed the wrong number. Priority is the first number (was 10, now 5) in the add_filter call. Lower the number the earlier it is called.
Dec
29
revised Sanitize slug title
deleted 1 character in body
Dec
29
comment Sanitize slug title
@Sebastian - see update, I changed the priority as WP has a callback attached to remove spaces and replace them with dashes. This was probably running after that so 'loosing' those changes'. R.e. uppercase, I have no idea - sanitize_title() doesn't lowercase anything, so the problem probably lies elsewhere.
Dec
29
revised Sanitize slug title
edited body
Dec
26
comment How to add add more properties to WP_Post object in search results loop
It's a class method: github.com/WordPress/WordPress/blob/4.0/wp-includes/…
Dec
13
answered How to add add more properties to WP_Post object in search results loop
Dec
4
awarded Necromancer
Oct
11
awarded Yearling
1 2 3 4 5