[wp-trac] [WordPress Trac] #11974: uninitialized variable causes "sorry, that file cannot be edited"

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 23 23:39:19 UTC 2010


#11974: uninitialized variable causes "sorry, that file cannot be edited"
----------------------------+-----------------------------------------------
 Reporter:  cwgservices     |       Owner:                  
     Type:  defect (bug)    |      Status:  new             
 Priority:  normal          |   Milestone:  3.0             
Component:  Administration  |     Version:  2.9.1           
 Severity:  normal          |    Keywords:  has-patch commit
----------------------------+-----------------------------------------------
Changes (by scribu):

  * keywords:  reporter-feedback => has-patch commit
  * milestone:  Unassigned => 3.0


Comment:

 For some reason, the plugin set the $file variable to ../wp-load.php

 The problem came from the fact that wp_reset_vars() was checking if $file
 was previously set, instead of resetting the variable regardless, like its
 name suggests.

 wp_reset_vars.diff fixes this.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11974#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list