[wp-trac] [WordPress Trac] #42656: Multisite Global $pagenow variable

WordPress Trac noreply at wordpress.org
Sun Dec 16 15:31:19 UTC 2018


#42656: Multisite Global $pagenow variable
--------------------------+------------------------
 Reporter:  thorthecoder  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Plugins       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  multisite
--------------------------+------------------------
Changes (by podpirate):

 * status:  closed => reopened
 * resolution:  invalid =>
 * focuses:   => multisite
 * component:  General => Plugins
 * version:   => trunk


Comment:

 {{{$pagenow}}} not being available at mu-plugin inclusion has an
 additional consequence, which has not been mentioned yet.

 {{{function determine_locale()}}} is checking for
 {{{$GLOBALS['pagenow']}}} in line 141. As a result, a network activated
 plugin, which is using one of the WP l10n functions during startup will
 cause a {{{PHP Notice undefined index…}}} notice on the login popup
 window.

 From a network administrator's point of view, I would not expect a big
 difference between a network-wide activated plugin and a plugin that I
 activated on every site in the network individually. (unless the plugin
 provides some network-specific funtionality)

 Plugin authors (or at least a considerable majority of them), might expect
 the wp core to reliably provide an identical environment, in both cases
 network activation and single-site activation.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42656#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list