Changeset 40639
- Timestamp:
- 05/11/2017 07:53:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r40638 r40639 1093 1093 1094 1094 /** 1095 * Determines whether file modifications are disallowed.1095 * Determines whether file modifications are allowed. 1096 1096 * 1097 1097 * @since 4.8.0 1098 1098 * 1099 1099 * @param string $context The usage context. 1100 * @return bool True if file modification is disallowed, false otherwise.1100 * @return bool True if file modification is allowed, false otherwise. 1101 1101 */ 1102 1102 function wp_is_file_mod_allowed( $context ) { 1103 1103 /** 1104 * Filters whether file modifications are disallowed.1104 * Filters whether file modifications are allowed. 1105 1105 * 1106 1106 * @since 4.8.0 1107 1107 * 1108 * @param bool $ disallow_file_mods Whether file modifications are disallowed.1109 * @param string $context 1108 * @param bool $file_mod_allowed Whether file modifications are allowed. 1109 * @param string $context The usage context. 1110 1110 */ 1111 return apply_filters( ' disallow_file_mods', defined( 'DISALLOW_FILE_MODS' ) &&DISALLOW_FILE_MODS, $context );1112 } 1111 return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context ); 1112 }
Note: See TracChangeset
for help on using the changeset viewer.