[wp-trac] [WordPress Trac] #18563: Disallowing editing of .php files in the plugin editor blocks access to allowable extensions
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 2 00:41:18 UTC 2011
#18563: Disallowing editing of .php files in the plugin editor blocks access to
allowable extensions
----------------------------+------------------------------
Reporter: trepmal | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 2.8
Severity: minor | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Comment (by dd32):
> {{{ wp_die( sprintf( '<p>%s</p>', __( 'This file is not allowed to edit!
Double check the name and try again.' ) ) ); }}}
many people don't realise this, but `wp_die()` wraps it in a p anyway.
Also, Think you Engrished that string :) - I like the approach though, it
seems the filter was designed for Adding types, rather than removing them.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18563#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list