MathSmath

Austin, TX

angryrobots.com

Age: 37

I know karate. Voodoo too.

May
6
comment WordPress is stripping escape backslashes from JSON strings in post_meta
@jave.web It is true that you can't avoid having update_metadata() run strip slashes on your string. The other answers provide (very smart) workarounds to essentially "double escape" your string, so that the unavoidable stripping removes those extra slashes but leaves your original slashes intact. I'd personally still say that the "elegant" way to handle this is to just store data in an array, which requires no special handling or pre-formatting. Then convert it to json if and when you need to. But that's just my preference.
Mar
3
awarded Notable Question
Feb
25
awarded Enlightened
Feb
2
answered Trouble with Wordpress local development and deployments
Nov
10
awarded Yearling
Nov
10
awarded Yearling
Oct
5
awarded Famous Question
Jul
2
awarded Curious
Jun
24
comment WP_Tax_Query with post_tag not working
Yeah, I don't think that WP_Tax_Query() is intended for that purpose. As far as I can tell, you can't pass a WP_Tax_Query() object in as parameter to a WP_Query--it just expects an array, as you have now. So that could be why it was being stripped. I've previously only used the WP_Tax_Query class to build actual SQL clauses. Pretty sure that's what it's used for internally.
Jun
24
answered Send email from Wordpress
Jun
24
comment HTTPS page link in menu
@Binod Not sure why it would have a negative affect on SEO. I doubt that search engines track how long a particular 301 has been in place, or how often its used. But I could be wrong.
Jun
5
awarded Necromancer
May
9
answered Is it possible to stop a theme activation when a certain plugin is not activated
May
9
comment fetch_feed returning rss feeds on same server as empty
Hrm. Ask him to try curl rather than wget and see what the result is. WordPress will try curl, streams, and (possibly) fsockopen for all of its http requests.
May
9
answered Session Cookie security questions
May
9
answered fetch_feed returning rss feeds on same server as empty
May
9
answered Plugin: connect to external database without showing password
May
2
answered How do I search an array stored in a custom-field using WP_Query?
Jan
16
awarded Nice Question
Dec
16
awarded Popular Question
1 2 3 4 5