[wp-trac] [WordPress Trac] #16143: PHP notices when deleting plugins and themes via FTP

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 8 02:12:31 UTC 2011


#16143: PHP notices when deleting plugins and themes via FTP
--------------------------+-----------------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:  3.0.4
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Actually this seems to be lasting since 2.8, when `delete_theme()` was
 introduced.

 So far as `wp-admin/admin-header.php` is included from inside a function,
 these variables lack global scope. Attached patch works for me, however it
 doesn't look solid. If there's a better approach, I'd like to know.

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


More information about the wp-trac mailing list