Changeset 27369 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 03/03/2014 02:33:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r26905 r27369 347 347 348 348 if ( $ssl && is_wp_error( $request ) ) { 349 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http ://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE );349 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); 350 350 $request = wp_remote_post( $http_url, $args ); 351 351 } 352 352 353 353 if ( is_wp_error($request) ) { 354 $res = new WP_Error('themes_api_failed', __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http ://wordpress.org/support/">support forums</a>.' ), $request->get_error_message() );354 $res = new WP_Error('themes_api_failed', __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ), $request->get_error_message() ); 355 355 } else { 356 356 $res = maybe_unserialize( wp_remote_retrieve_body( $request ) ); 357 357 if ( ! is_object( $res ) && ! is_array( $res ) ) 358 $res = new WP_Error('themes_api_failed', __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="http ://wordpress.org/support/">support forums</a>.' ), wp_remote_retrieve_body( $request ) );358 $res = new WP_Error('themes_api_failed', __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ), wp_remote_retrieve_body( $request ) ); 359 359 } 360 360 }
Note: See TracChangeset
for help on using the changeset viewer.