[wp-trac] [WordPress Trac] #33545: Check for existence of pagenow global
WordPress Trac
noreply at wordpress.org
Tue Aug 25 21:02:16 UTC 2015
#33545: Check for existence of pagenow global
----------------------------+-----------------------
Reporter: KalenJohnson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Bootstrap/Load | Version: 3.7
Severity: normal | Resolution:
Keywords: | Focuses: template
----------------------------+-----------------------
Comment (by wonderboymusic):
In [changeset:"33736"]:
{{{
#!CommitTicketReference repository="" revision="33736"
In `get_home_url()`, import the `$pagenow` global to avoid having to check
if it exists before comparing against it.
Props KalenJohnson.
See #33545.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33545#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list