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

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 15 08:21:28 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:  has-patch dev-feedback  |
------------------------------------+-----------------------

Comment (by solarissmoke):

 Alternatively, we might do away with the "unexpected HTTP error" bit
 altogether (it isn't particularly helpful) and just pass on the
 `wp_remote_post error`:

 {{{
 $res = new WP_Error( 'themes_api_failed', $request->get_error_message() );
 }}}

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


More information about the wp-trac mailing list