[wp-trac] [WordPress Trac] #16132: Duplicate "try again" links when themes_api fails

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 15 06:34:17 UTC 2011


#16132: Duplicate "try again" links when themes_api fails
--------------------------+-----------------------
 Reporter:  solarissmoke  |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.1
Component:  Themes        |     Version:  3.1
 Severity:  minor         |  Resolution:
 Keywords:                |
--------------------------+-----------------------
Changes (by solarissmoke):

 * keywords:  has-patch commit =>
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Hmm, I think this needs more work. Now, when themes_api fails we get "An
 Unexpected HTTP Error occurred during the API request." but not the error
 from `wp_remote_post()` which actually has the more meaningful information
 about what went wrong.

 I think we need to be using `WP_Error::get_error_messages()` to catch and
 display all bubbled errors. Knocking up a patch now.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16132#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list