[wp-trac] [WordPress Trac] #51279: Theme Editor: Undefined variable: error

WordPress Trac noreply at wordpress.org
Wed Sep 9 16:28:07 UTC 2020

#51279: Theme Editor: Undefined variable: error
 Reporter:  pbiron          |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
 The variable `$error` is only initialized when the file to be edited does
 not exist.

 However, that variable is accessed in 2 places without verifying that it
 has been set, thus causing a PHP error when the file exists.

Ticket URL: <https://core.trac.wordpress.org/ticket/51279>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list