Changeset 38015 for trunk/src/wp-includes/load.php
- Timestamp:
- 07/08/2016 02:36:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r38013 r38015 1003 1003 return min( $bytes, PHP_INT_MAX ); 1004 1004 } 1005 1006 /** 1007 * Determines whether a PHP ini value is changeable at runtime. 1008 * 1009 * @since 4.6.0 1010 * 1011 * @link http://php.net/manual/en/function.ini-get-all.php 1012 * 1013 * @param string $setting The name of the ini setting to check. 1014 * @return bool True if the value is changeable at runtime. False otherwise. 1015 */ 1016 function wp_is_ini_value_changeable( $setting ) { 1017 static $ini_all; 1018 1019 if ( ! isset( $ini_all ) ) { 1020 $ini_all = ini_get_all(); 1021 } 1022 1023 if ( isset( $ini_all[ $setting ]['access'] ) && ( INI_ALL === $ini_all[ $setting ]['access'] || INI_USER === $ini_all[ $setting ]['access'] ) ) { 1024 return true; 1025 } 1026 1027 return false; 1028 }
Note: See TracChangeset
for help on using the changeset viewer.