#33545 closed defect (bug) (fixed)
Check for existence of pagenow global
| Reported by: | KalenJohnson | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Bootstrap/Load | Version: | 3.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | template |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in [24844].