[wp-trac] [WordPress Trac] #46671: wp-admin/revisions.php uses the $post global in the wrong way

WordPress Trac noreply at wordpress.org
Thu Apr 16 22:59:57 UTC 2020


#46671: wp-admin/revisions.php uses the $post global in the wrong way
--------------------------+-----------------------------
 Reporter:  tofandel      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Revisions     |     Version:  5.2
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------

Comment (by markparnell):

 Thanks @tofandel. Had to tweak your logic slightly, but `46671.2.diff`
 makes the global post data available again to anything hooked into the
 restore process while still fixing the original issue.

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


More information about the wp-trac mailing list