Changeset 48242 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 07/01/2020 04:22:25 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r48115 r48242 174 174 175 175 if ( $ssl && is_wp_error( $request ) ) { 176 trigger_error( 177 sprintf( 178 /* translators: %s: Support forums URL. */ 179 __( '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="%s">support forums</a>.' ), 180 __( 'https://wordpress.org/support/forums/' ) 181 ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), 182 headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE 183 ); 176 if ( ! wp_is_json_request() ) { 177 trigger_error( 178 sprintf( 179 /* translators: %s: Support forums URL. */ 180 __( '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="%s">support forums</a>.' ), 181 __( 'https://wordpress.org/support/forums/' ) 182 ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), 183 headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE 184 ); 185 } 186 184 187 $request = wp_remote_get( $http_url, $http_args ); 185 188 }
Note: See TracChangeset
for help on using the changeset viewer.