Upgrade/Install: After [40638], make sure `wp_is_file_mod_allowed()` actually returns the right value.

See #38673.


Built from https://develop.svn.wordpress.org/trunk@40639


git-svn-id: http://core.svn.wordpress.org/trunk@40500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2017-05-11 19:54:43 +00:00
parent 33047ba14e
commit 763f09fb7e
2 changed files with 7 additions and 7 deletions

View File

@ -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 );
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40638';
$wp_version = '4.8-alpha-40639';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.