[wp-trac] [WordPress Trac] #44788: the_content() strange behavior - we cant change golobal "post_content" from "$post->post_content"
WordPress Trac
noreply at wordpress.org
Tue Aug 14 12:28:44 UTC 2018
#44788: the_content() strange behavior - we cant change golobal "post_content" from
"$post->post_content"
-------------------------------+------------------------------
Reporter: Tkama | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.9.8
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by subrataemfluence):
Just to elaborate @windyjonas reply a bit:
`the_content()` calls the following function in `wp-includes/post-
template.php`
{{{
function the_content( ... ) {
$content = get_the_content( ... ) // invokes get_the_content()
...
}
}}}
{{{
function get_the_content( ... ) {
...
$post = get_post();
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44788#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list