0809037f61
Another chapter in the Storied Annals of Weird `in_array()` Behavior: `in_array( 4, array( "4-cool-dudes" ) );` resolves to `true`, such that `is_page( 4 )` was returning true for posts with the name `'4-cool-dudes'`. We work around this behavior by ensuring that values passed to the `is_` methods are cast to strings before the `in_array()` checks. ID checks still work as expected; see #24674. Props mikejolley, swissspidy, boonebgorges. Fixes #35902. git-svn-id: https://develop.svn.wordpress.org/trunk@36625 602fd350-edb4-49c9-b593-d223f7449a82 |
||
---|---|---|
src | ||
tests | ||
tools/i18n | ||
.editorconfig | ||
.gitignore | ||
.jshintrc | ||
.travis.yml | ||
Gruntfile.js | ||
package.json | ||
phpunit.xml.dist | ||
wp-cli.yml | ||
wp-config-sample.php | ||
wp-tests-config-sample.php |