Make WordPress Core


Ignore:
Timestamp:
05/11/2017 07:23:45 PM (9 years ago)
Author:
swissspidy
Message:

Upgrade/Install: After [40394], rename wp_disallow_file_mods() to wp_is_file_mod_allowed().

This makes it more clear what this function is about.

Props Mte90.
Fixes #38673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r40575 r40638  
    11001100 * @return bool True if file modification is disallowed, false otherwise.
    11011101 */
    1102 function wp_disallow_file_mods( $context ) {
     1102function wp_is_file_mod_allowed( $context ) {
    11031103        /**
    11041104         * Filters whether file modifications are disallowed.
    … …  
    11061106         * @since 4.8.0
    11071107         *
    1108          * @param bool   $disllow_file_mods Whether file modifications are disallowed.
    1109          * @param string $context           The usage context.
     1108         * @param bool   $disallow_file_mods Whether file modifications are disallowed.
     1109         * @param string $context            The usage context.
    11101110         */
    1111         return apply_filters( 'disallow_file_mods' , defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS, $context );
    1112 }
     1111        return apply_filters( 'disallow_file_mods', defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS, $context );
     1112}
Note: See TracChangeset for help on using the changeset viewer.