WordPress.org

Make WordPress Core

Changeset 29330


Ignore:
Timestamp:
07/30/2014 05:27:54 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Make sure phpinfo() is not disabled before calling it in apache_mod_loaded().

props rohan013, harmr.
fixes #26772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r29309 r29330  
    34053405        return false;
    34063406
    3407     if ( function_exists('apache_get_modules') ) {
     3407    if ( function_exists( 'apache_get_modules' ) ) {
    34083408        $mods = apache_get_modules();
    34093409        if ( in_array($mod, $mods) )
    34103410            return true;
    3411     } elseif ( function_exists('phpinfo') ) {
     3411    } elseif ( function_exists( 'phpinfo' ) && false === strpos( ini_get( 'disable_functions' ), 'phpinfo' ) ) {
    34123412            ob_start();
    34133413            phpinfo(8);
Note: See TracChangeset for help on using the changeset viewer.