[wp-trac] [WordPress Trac] #29161: $pagenow variable not set in admin pages on Windows systems

WordPress Trac noreply at wordpress.org
Thu Jun 25 14:27:41 UTC 2015


#29161: $pagenow variable not set in admin pages on Windows systems
-------------------------------+------------------------------
 Reporter:  Craxic             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Administration     |     Version:  3.9.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  administration
-------------------------------+------------------------------

Comment (by aoloe):

 i have the same problem on os x.

 in my case i don't miss any value, but i get a warning and the js call
 fails.

 i solved the issue by checking that the matches variable is an array and
 has enough values:


 {{{
         $pagenow = '';
         if (is_array($self_matches) && (count($self_matches) > 2)) {
                 $pagenow = $self_matches[1];
         }
 }}}

 with this patch, the plugin i'm using is working correctly.

 can this patch be applied to `vars.php`?

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


More information about the wp-trac mailing list