Tag Info

New answers tagged

0

Well, I never got any input on this and ended up going with the function sanitize_title which is more restrictive than I want (processes the title to be used in a URL -- essentially returns a slug for the post), but it's the best solution I've been able to find. By running both the 3rd-party product name and the post_title from Wordpress through ...


2

I'm not sure if this is a bug, but it need further investigation. I've run a few quick tests on the name field in a tax_query, and whenever a term name has got a special character or have more than one word, the tax_query is excluded from the SQL query TEST 1 I have use two terms here, your term Ski-in/Ski-out and one of the terms on my test site Uit die ...


0

The more elaborate data is, the harder it is to both formulate and implement sanitization process. For a number this might be as simple as "integer" and (int)$number. For HTML this is highly not trivial with different possibilities of desired scope (no HTML tags? some blacklisted tags? some whitelisted tags? what about embedded scripts? CSS?) and very ...


0

Meta data keys do not have to be unique, you can have multiple rows of the same key, each containing singular values. If you use get_post_meta to fetch a key and don't set the 3rd argument to true, the function gets all the individual values and returns them as an array, which is not the same as getting a single value that is an array saved as a serialized ...


3

Because on the minimum version required it isn't always available since the SPL can be disabled on PHP 5.2 and below. The majority of installs running WordPress have it, but not all, and it's the same reason autoloaders and Iterators aren't used. Moving to v5.3 as a minimum PHP would fix this however as the SPL cannot be disabled in 5.3+, but until that ...



Top 50 recent answers are included