[wp-trac] [WordPress Trac] #47133: Post's global variables not available on content_pagination filter

WordPress Trac noreply at wordpress.org
Mon May 6 16:49:45 UTC 2019


#47133: Post's global variables not available on content_pagination filter
-------------------------------+---------------------
 Reporter:  david.binda        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  high               |   Milestone:  5.2
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  2nd-opinion        |     Focuses:
-------------------------------+---------------------

Comment (by spacedmonkey):

 I know this maybe an unpopular view, but I don’t think we should fix this.
 Using global like that is unsafe at best. I think we should add filter to
 the end of generate post data method and push people to use that going
 forward.

 Generate post data as a function, as part of the original patch, is a way
 of push people not to use those globals going forward.

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


More information about the wp-trac mailing list