#41449 closed defect (bug) (fixed)
Calling a member function on a string object in class-wp-ajax-upgrader-skin.php
Reported by: | yrpwayne | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Upgrade/Install | Keywords: | |
Focuses: | Cc: |
Description
In the file:
wp-admin\includes\class-wp-ajax-upgrader-skin.php
on line 102: there is a call to get_error_codes() when the object is a string
public function error( $errors ) { if ( is_string( $errors ) ) { ... $errors_count = count( $errors->get_error_codes() ); ... } ...
Change History (4)
Note: See
TracTickets for help on using
tickets.
Looking at the line it should be counting the class variable $errors
Change line 102 to: