From b647fef9d5c549f75dce079deb2c5194a67c3c67 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Fri, 20 Sep 2013 23:17:59 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/plugin-editor.php. Props a.hoereth. See #25229. git-svn-id: https://develop.svn.wordpress.org/trunk@25534 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/plugin-editor.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/plugin-editor.php b/src/wp-admin/plugin-editor.php index 2167c1ac74..61040ae060 100644 --- a/src/wp-admin/plugin-editor.php +++ b/src/wp-admin/plugin-editor.php @@ -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('

%s

', __('No such file exists! Double check the name and try again.')));