480 reputation
321
bio website henrywright.me
location London, England
age
visits member for 2 years, 2 months
seen 8 hours ago

I'm a huge WordPress fan and general geek interested in PHP, HTML and CSS. You can usually find me on Twitter @henrywright


Dec
1
accepted Stylesheet comment header: Which header names are mandatory?
Dec
1
asked Stylesheet comment header: Which header names are mandatory?
Nov
30
answered How do I override plugin templates and stylesheets?
Nov
28
comment Undefined property: stdClass::$id when retriving term ID
You beat me to it :)
Nov
28
answered Undefined property: stdClass::$id when retriving term ID
Nov
24
comment Should I sanitize an email address before passing it to the is_email() function?
I think you hit the nail on the head when you said you never know if the implementation will change. It may be OK to not sanitise now, but who knows if that will change at a later date?
Nov
24
asked What capabilities are assigned to unauthenticated users?
Nov
24
comment limit number of post for achive page
Try making sure the cat ID is an integer. See my latest update
Nov
24
revised limit number of post for achive page
deleted 2 characters in body
Nov
24
comment Should I sanitize an email address before passing it to the is_email() function?
Kaiser, thanks for the edit. It's actually sanitisation for me but I'm sure most readers here will use a z :)
Nov
24
comment limit number of post for achive page
I've just updated again. I think the problem was related to the use of the is_category() function after the if ( $query->is_date() || $query->is_category() ) check. Please let me know if the update works for you.
Nov
24
revised limit number of post for achive page
added 14 characters in body
Nov
24
comment Should I sanitize an email address before passing it to the is_email() function?
I actually already read it twice as this is something that's worth understanding! Thanks for such a detailed answer :)
Nov
24
comment limit number of post for achive page
That line was missing a closing parenthesis. Please see my update
Nov
24
revised limit number of post for achive page
added 2 characters in body
Nov
24
comment Should I sanitize an email address before passing it to the is_email() function?
So you're saying, in theory, there will be email addresses out there which are completely valid according to RFC 6531 but these will be deemed invalid by WordPress?
Nov
24
comment limit number of post for achive page
what's the error you're getting?
Nov
24
accepted Should I sanitize an email address before passing it to the is_email() function?
Nov
24
comment Should I sanitize an email address before passing it to the is_email() function?
My thoughts exactly about string testing. I think I'll still sanitise before sending to the db, you're probably right that it's not necessary, but I'm a nervous wreck when it comes to these things :)
Nov
24
comment limit number of post for achive page
Please see my update