[wp-trac] [WordPress Trac] #47133: Post's global variables not available on content_pagination filter
WordPress Trac
noreply at wordpress.org
Mon May 6 22:26:11 UTC 2019
#47133: Post's global variables not available on content_pagination filter
-------------------------------+----------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: closed
Priority: high | Milestone:
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution: wontfix
Keywords: 2nd-opinion | Focuses:
-------------------------------+----------------------
Changes (by azaozz):
* status: new => closed
* resolution: => wontfix
* milestone: 5.2 =>
Comment:
Replying to [comment:3 boonebgorges]:
> I don't see an obvious fix for this.
I don't see one either. As noted, this filter is intended for (direct)
manipulation of the splitting of post_content into separate pages and runs
"in the middle" of setting the globals (i.e. it was not designed to make
these globals usable). In that trerms I'm also thinking this is a
`wontfix`.
> If it helps to mitigate, I (maybe with the assistance of @davidbinda ?)
could write a dev-note.
Yep, this is a great idea! A (short) dev-note can also include some info
about the fixes in #42814, etc. and would be quite beneficial.
> I think we should add filter to the end of generate post data method and
push people to use that going forward.
Yes, was thinking it would be good to have a filter there that would
replace all needs to use the globals. Lets do that in 5.3 :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47133#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list