Inline documentation for hooks in wp-admin/plugin-editor.php.
Props a.hoereth. See #25229. Built from https://develop.svn.wordpress.org/trunk@25534 git-svn-id: http://core.svn.wordpress.org/trunk@25454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9577cc4640
commit
a1fb6e003f
|
@ -94,7 +94,15 @@ default:
|
|||
|
||||
// List of allowable extensions
|
||||
$editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include');
|
||||
$editable_extensions = (array) apply_filters('editable_extensions', $editable_extensions);
|
||||
|
||||
/**
|
||||
* Filter file type extensions editable in the plugin editor.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param array $editable_extensions An array of editable plugin file extensions.
|
||||
*/
|
||||
$editable_extensions = (array) apply_filters( 'editable_extensions', $editable_extensions );
|
||||
|
||||
if ( ! is_file($real_file) ) {
|
||||
wp_die(sprintf('<p>%s</p>', __('No such file exists! Double check the name and try again.')));
|
||||
|
|
Loading…
Reference in New Issue