Changeset 28145 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 04/16/2014 12:37:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r28126 r28145 298 298 * @return mixed 299 299 */ 300 function themes_api( $action, $args = null ) {300 function themes_api( $action, $args = null ) { 301 301 302 302 if ( is_array($args) ) … … 348 348 if ( $ssl && is_wp_error( $request ) ) { 349 349 if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) { 350 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 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 ); 351 351 } 352 352 $request = wp_remote_post( $http_url, $args );
Note: See TracChangeset
for help on using the changeset viewer.