[wp-trac] [WordPress Trac] #40796: Twenty Seventeen: Overriding WordPress globals is prohibited
WordPress Trac
noreply at wordpress.org
Fri Jan 3 06:22:16 UTC 2025
#40796: Twenty Seventeen: Overriding WordPress globals is prohibited
-----------------------------+------------------------------
Reporter: maneshtimilsina | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 4.7.5
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
-----------------------------+------------------------------
Comment (by smit08):
Hi @swissspidy, I looked into the issue. I think we need to update the
description. I checked the /inc/template-tags.php file and found that the
$post variable is overridden, but it is now on line 155.
Here is the line I found, along with the comment:
{{{
global $post; // Modify the global post object before setting up post
data.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40796#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list