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.


git-svn-id: https://develop.svn.wordpress.org/trunk@40638 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler
2017-05-11 19:23:45 +00:00
parent d880e60f11
commit 3f059bff7c
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -1099,14 +1099,14 @@ function is_wp_error( $thing ) {
* @param string $context The usage context.
* @return bool True if file modification is disallowed, false otherwise.
*/
function wp_disallow_file_mods( $context ) {
function wp_is_file_mod_allowed( $context ) {
/**
* Filters whether file modifications are disallowed.
*
* @since 4.8.0
*
* @param bool $disllow_file_mods Whether file modifications are disallowed.
* @param string $context The usage context.
* @param bool $disallow_file_mods Whether file modifications are disallowed.
* @param string $context The usage context.
*/
return apply_filters( 'disallow_file_mods' , defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS, $context );
return apply_filters( 'disallow_file_mods', defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS, $context );
}