[wp-trac] [WordPress Trac] #27365: Upgrader bulk_upgrade() functions do not return the correct data

WordPress Trac noreply at wordpress.org
Tue Apr 1 10:52:06 UTC 2014


#27365: Upgrader bulk_upgrade() functions do not return the correct data
---------------------------------+-----------------------------
 Reporter:  chrisbliss18         |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Upgrade/Install      |     Version:  trunk
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 4.0-early  |     Focuses:
---------------------------------+-----------------------------

Comment (by dd32):

 FWIW, it looks like the changes here are probably correct, most of the
 $this->result should be replaced with simply $result, except in the Theme
 Upgrader where it is something else.

 At present for example, Plugin_Upgrader->upgrade() returns null for
 failures instead of the WP_Error.

 Sorry @chrisbliss18 but as you can probably tell, following some of the
 code isn't as easy as you expect at first glance.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27365#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list