mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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,6 +94,14 @@ default:
|
|||||||
|
|
||||||
// List of allowable extensions
|
// List of allowable extensions
|
||||||
$editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include');
|
$editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 );
|
$editable_extensions = (array) apply_filters( 'editable_extensions', $editable_extensions );
|
||||||
|
|
||||||
if ( ! is_file($real_file) ) {
|
if ( ! is_file($real_file) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user