[wp-trac] [WordPress Trac] #49609: Code simplification and bug prevention in get_the_content()
WordPress Trac
noreply at wordpress.org
Wed Mar 11 17:16:57 UTC 2020
#49609: Code simplification and bug prevention in get_the_content()
-------------------------------+------------------------
Reporter: dontdream | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Posts, Post Types | Version:
Severity: minor | Resolution: duplicate
Keywords: has-patch close | Focuses:
-------------------------------+------------------------
Changes (by dontdream):
* status: reopened => closed
* resolution: => duplicate
Comment:
Found in #47824:
`get_the_content()`, when called without an explicit post object, falls
back to the `$post` global too, but makes an incorrect assumption that
other globals (specifically `$pages`) are always set up in that case.
I'm going to mark the current ticket as a duplicate of #47824.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49609#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list