Changeset 54299 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/24/2022 01:51:22 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r54292 r54299 5889 5889 } 5890 5890 5891 $loaded_mods = array(); 5892 5891 5893 if ( function_exists( 'apache_get_modules' ) ) { 5892 $mods = apache_get_modules(); 5893 if ( in_array( $mod, $mods, true ) ) { 5894 $loaded_mods = apache_get_modules(); 5895 5896 if ( in_array( $mod, $loaded_mods, true ) ) { 5894 5897 return true; 5895 5898 } 5896 } elseif ( function_exists( 'phpinfo' ) && false === strpos( ini_get( 'disable_functions' ), 'phpinfo' ) ) { 5897 ob_start(); 5898 phpinfo( 8 ); 5899 $phpinfo = ob_get_clean(); 5899 } 5900 5901 if ( empty( $loaded_mods ) 5902 && function_exists( 'phpinfo' ) 5903 && false === strpos( ini_get( 'disable_functions' ), 'phpinfo' ) 5904 ) { 5905 ob_start(); 5906 phpinfo( INFO_MODULES ); 5907 $phpinfo = ob_get_clean(); 5908 5900 5909 if ( false !== strpos( $phpinfo, $mod ) ) { 5901 5910 return true;
Note: See TracChangeset
for help on using the changeset viewer.