[wp-trac] [WordPress Trac] #23026: parent_dropdown() should verify that a post has been fetched
WordPress Trac
noreply at wordpress.org
Wed Jan 9 23:22:56 UTC 2013
#23026: parent_dropdown() should verify that a post has been fetched
------------------------------+------------------
Reporter: mweichert | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Warnings/Notices | Version: 3.5
Severity: minor | Resolution:
Keywords: has-patch |
------------------------------+------------------
Changes (by SergeyBiryukov):
* version: 1.5 => 3.5
Comment:
Actually, this wasn't an issue before [21735], where `!empty( $post_ID )`
check was removed.
[attachment:parent_dropdown_fix.patch] introduces a change in the
behaviour: it makes `parent_dropdown()` return false rather than still
display the dropdown when being called outside of the loop.
[attachment:23026.patch] keeps the current behaviour and just fixes the
notice.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23026#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list