WordPress.org

Make WordPress Core

Ticket #40873: class-wp-ajax-upgrader-skin.diff

File class-wp-ajax-upgrader-skin.diff, 603 bytes (added by bappi.d.great, 2 years ago)

class-wp-ajax-upgrader-skin.diff patch file

  • class-wp-ajax-upgrader-skin.php

     
    9999                        }
    100100
    101101                        // Count existing errors to generate an unique error code.
    102                         $errors_count = count( $errors->get_error_codes() );
     102                        $errors_count = count( $this->errors->get_error_codes() );
    103103                        $this->errors->add( 'unknown_upgrade_error_' . $errors_count + 1 , $string );
    104104                } elseif ( is_wp_error( $errors ) ) {
    105105                        foreach ( $errors->get_error_codes() as $error_code ) {