Setting the default value of the `queried_object_id` property to `0` meant that, when called early enough in the WP bootstrap, `get_queried_object()` could short-circuit the normal query by fooling it into thinking that the request was for a page with id 0. Setting the default value to `null` instead avoids this problem. Props gradyetc, jazbek. Fixes #31355. Built from https://develop.svn.wordpress.org/trunk@34073 git-svn-id: http://core.svn.wordpress.org/trunk@34041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
131 KiB
131 KiB