[wp-trac] [WordPress Trac] #42656: Multisite Global $pagenow variable
WordPress Trac
noreply at wordpress.org
Wed Nov 22 03:58:16 UTC 2017
#42656: Multisite Global $pagenow variable
--------------------------+-----------------------------
Reporter: thorthecoder | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.8.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When the site is configured as multisite, plugins are loaded before
"vars.php", causing plugin getting null value when trying to access the
$pagenow variable.
Sample Plugin : Brightcove Video Connect
Defect : Setting page is empty
Caused by : In the setting page logic, it will check whether $pagenow is
in the array of 'admin-ajax.php', 'admin.php', 'post-new.php', 'edit.php',
'post.php'. And since the $pagenow is not initialized yet, it will just
display an empty page.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42656>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list