WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/26/2017 01:38:21 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: In WP_Ajax_Upgrader_Skin, call ::get_error_codes() method on a WP_Error object $this->errors instead of a string variable $errors.

Props yrpwayne.
Fixes #41449.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ajax-upgrader-skin.php

    r38199 r41157  
    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 ) ) {
Note: See TracChangeset for help on using the changeset viewer.