mirror of
git://develop.git.wordpress.org/
synced 2025-02-07 08:04:27 +01:00
`WP_Query` methods assume that `get_queried_object()` would return a non-null value, which is not always the case. This commit resolves various warnings in `WP_Query` along the lines of: {{{ Attempt to read property "post_type" on null in wp-includes/class-wp-query.php on line 4338 }}} Follow-up to [1728], [3639], [8807], [49119]. Props dd32, yellyc, boonebgorges, darkskipper, Howdy_McGee, swissspidy, nacin, mikeschroder, mikejolley, sterlo, datainterlock, utsavmadaan823, kanlukasz, woji29911, hellofromTonya, zikubd, deksar, bwbama, noplanman, nouarah, SergeyBiryukov. Fixes #29660. git-svn-id: https://develop.svn.wordpress.org/trunk@54496 602fd350-edb4-49c9-b593-d223f7449a82