[wp-trac] [WordPress Trac] #15963: Don't try to add orphaned pages' parents' slugs to the page URL
WordPress Trac
noreply at wordpress.org
Wed Sep 9 16:35:15 UTC 2015
#15963: Don't try to add orphaned pages' parents' slugs to the page URL
-------------------------------+------------------------
Reporter: filosofo | Owner: chriscct7
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+------------------------
Changes (by MikeHansenMe):
* keywords: has-patch needs-unit-tests => has-patch
Comment:
[attachment: 15963.5.diff] adds unit tests and updates the patch to be a
bit simpler. Since it was referencing a post object anyway, we can avoid
the call to get_post_status.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15963#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list