#33545 closed defect (bug) (fixed)
Check for existence of pagenow global
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.7 |
Component: | Bootstrap/Load | Keywords: | |
Focuses: | template | Cc: |
Description
There are some plugins that call home_url()
or get_home_url()
without being in any type of hook, so it's happening right when the plugin get's loaded. It doesn't seem like this is always an issue, but I am seeing many warnings of an undefined index.
This patch I don't believe will break anything, since if things are being loaded before the $pagenow
global exists, this check won't work anyways, so checking for it and removing a PHP warning seems like a win.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Introduced in [24844].