[wp-trac] [WordPress Trac] #50002: Hack in get_sample_permalink() can cause filters like post_link, and pre_post_link to have inaccurate post_status in admin

WordPress Trac noreply at wordpress.org
Fri Apr 24 20:11:36 UTC 2020


#50002: Hack in get_sample_permalink() can cause filters like post_link, and
pre_post_link to have inaccurate post_status in admin
--------------------------+------------------------------
 Reporter:  aubreypwd     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  5.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------
Changes (by aubreypwd):

 * Attachment "50002.patch" added.

 First pass at fixing this that does not modify post_status but does not
 affect the desired result (please test!).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50002>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list