WordPress.org

Make WordPress Core

Changeset 25534


Ignore:
Timestamp:
09/20/2013 11:17:59 PM (8 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/plugin-editor.php.

Props a.hoereth.
See #25229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugin-editor.php

    r23580 r25534  
    9595    // List of allowable extensions
    9696    $editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include');
    97     $editable_extensions = (array) apply_filters('editable_extensions', $editable_extensions);
     97
     98    /**
     99     * Filter file type extensions editable in the plugin editor.
     100     *
     101     * @since 2.8.0
     102     *
     103     * @param array $editable_extensions An array of editable plugin file extensions.
     104     */
     105    $editable_extensions = (array) apply_filters( 'editable_extensions', $editable_extensions );
    98106
    99107    if ( ! is_file($real_file) ) {
Note: See TracChangeset for help on using the changeset viewer.