From 51f545e72aecd1a396fd2c39d4379f7f96fc952f Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 11 May 2017 19:53:38 +0000 Subject: [PATCH] Upgrade/Install: After [40638], make sure `wp_is_file_mod_allowed()` actually returns the right value. See #38673. git-svn-id: https://develop.svn.wordpress.org/trunk@40639 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/load.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index 40ae81db0d..241398387f 100644 --- a/src/wp-includes/load.php +++ b/src/wp-includes/load.php @@ -1092,21 +1092,21 @@ function is_wp_error( $thing ) { } /** - * Determines whether file modifications are disallowed. + * Determines whether file modifications are allowed. * * @since 4.8.0 * * @param string $context The usage context. - * @return bool True if file modification is disallowed, false otherwise. + * @return bool True if file modification is allowed, false otherwise. */ function wp_is_file_mod_allowed( $context ) { /** - * Filters whether file modifications are disallowed. + * Filters whether file modifications are allowed. * * @since 4.8.0 * - * @param bool $disallow_file_mods Whether file modifications are disallowed. - * @param string $context The usage context. + * @param bool $file_mod_allowed Whether file modifications are allowed. + * @param string $context The usage context. */ - return apply_filters( 'disallow_file_mods', defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS, $context ); + return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context ); }