[wp-trac] [WordPress Trac] #35084: check for post status in get_page_uri causes issues with permalinks

WordPress Trac noreply at wordpress.org
Mon Dec 14 22:49:46 UTC 2015


#35084: check for post status in get_page_uri causes issues with permalinks
----------------------------------------+------------------------------
 Reporter:  tharsheblows                |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Permalinks                  |     Version:  4.4
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => has-patch needs-unit-tests


Comment:

 What about other post statuses like `inherit`? I feel like
 `get_post_stati()` should be used.

 A bit worried that the unit test still pass, I suggest creating new unit
 tests for different post statuses.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35084#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list