[wp-trac] [WordPress Trac] #41449: Calling a member function on a string object in class-wp-ajax-upgrader-skin.php

WordPress Trac noreply at wordpress.org
Wed Jul 26 13:09:43 UTC 2017


#41449: Calling a member function on a string object in class-wp-ajax-upgrader-
skin.php
-----------------------------+-----------------------------
 Reporter:  yrpwayne         |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 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() );
     ...
   }
   ...
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41449>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list