Make WordPress Core

Ticket #33112: 33112.1.patch

File 33112.1.patch, 4.0 KB (added by mdwheele, 10 years ago)
  • tools/i18n/pot-ext-meta.php

     
    6767
    6868$included_files = get_included_files();
    6969if ($included_files[0] == __FILE__) {
    70         ini_set('display_errors', 1);
     70        @ini_set('display_errors', 1);
    7171        $potextmeta = new PotExtMeta;
    7272        if (!isset($argv[1])) {
    7373                $potextmeta->usage();
  • tests/phpunit/includes/testcase-ajax.php

     
    162162        protected function _handleAjax($action) {
    163163
    164164                // Start output buffering
    165                 ini_set( 'implicit_flush', false );
     165                @ini_set( 'implicit_flush', false );
    166166                ob_start();
    167167
    168168                // Build the request
  • tests/phpunit/includes/testcase.php

     
    3434                $wpdb->suppress_errors = false;
    3535                $wpdb->show_errors = true;
    3636                $wpdb->db_connect();
    37                 ini_set('display_errors', 1 );
     37                @ini_set('display_errors', 1 );
    3838                $this->factory = new WP_UnitTest_Factory;
    3939                $this->clean_up_global_scope();
    4040
  • src/wp-includes/class-phpmailer.php

     
    12031203        }
    12041204        if ($this->Sender != '' and !ini_get('safe_mode')) {
    12051205            $old_from = ini_get('sendmail_from');
    1206             ini_set('sendmail_from', $this->Sender);
     1206            @ini_set('sendmail_from', $this->Sender);
    12071207        }
    12081208        $result = false;
    12091209        if ($this->SingleTo && count($toArr) > 1) {
     
    12161216            $this->doCallback($result, $this->to, $this->cc, $this->bcc, $this->Subject, $body, $this->From);
    12171217        }
    12181218        if (isset($old_from)) {
    1219             ini_set('sendmail_from', $old_from);
     1219            @ini_set('sendmail_from', $old_from);
    12201220        }
    12211221        if (!$result) {
    12221222            throw new phpmailerException($this->lang('instantiate'), self::STOP_CRITICAL);
     
    23582358                    //Doesn't exist in PHP 5.4, but we don't need to check because
    23592359                    //get_magic_quotes_runtime always returns false in 5.4+
    23602360                    //so it will never get here
    2361                     ini_set('magic_quotes_runtime', false);
     2361                    @ini_set('magic_quotes_runtime', false);
    23622362                }
    23632363            }
    23642364            $file_buffer = file_get_contents($path);
     
    23672367                if (version_compare(PHP_VERSION, '5.3.0', '<')) {
    23682368                    set_magic_quotes_runtime($magic_quotes);
    23692369                } else {
    2370                     ini_set('magic_quotes_runtime', $magic_quotes);
     2370                    @ini_set('magic_quotes_runtime', $magic_quotes);
    23712371                }
    23722372            }
    23732373            return $file_buffer;
  • src/wp-includes/load.php

     
    270270                error_reporting( E_ALL );
    271271
    272272                if ( WP_DEBUG_DISPLAY )
    273                         ini_set( 'display_errors', 1 );
     273                        @ini_set( 'display_errors', 1 );
    274274                elseif ( null !== WP_DEBUG_DISPLAY )
    275                         ini_set( 'display_errors', 0 );
     275                        @ini_set( 'display_errors', 0 );
    276276
    277277                if ( WP_DEBUG_LOG ) {
    278                         ini_set( 'log_errors', 1 );
    279                         ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );
     278                        @ini_set( 'log_errors', 1 );
     279                        @ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );
    280280                }
    281281        } else {
    282282                error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    283283        }
    284284        if ( defined( 'XMLRPC_REQUEST' ) )
    285                 ini_set( 'display_errors', 0 );
     285                @ini_set( 'display_errors', 0 );
    286286}
    287287
    288288/**