]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/update.php
WordPress 4.7.1-scripts
[autoinstalls/wordpress.git] / wp-admin / includes / update.php
index 74899e37cb4232dfd4f8ba9709365018f491f249..e7a8b5e755c5f54cf09aa03f50c7a3375a22a0ca 100644 (file)
@@ -112,7 +112,14 @@ function get_core_checksums( $version, $locale ) {
 
        $response = wp_remote_get( $url, $options );
        if ( $ssl && is_wp_error( $response ) ) {
-               trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;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 );
+               trigger_error(
+                       sprintf(
+                               /* translators: %s: support forums URL */
+                               __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
+                               __( 'https://wordpress.org/support/' )
+                       ) . ' ' . __( '(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
+               );
                $response = wp_remote_get( $http_url, $options );
        }
 
@@ -200,6 +207,7 @@ function core_update_footer( $msg = '' ) {
 
        switch ( $cur->response ) {
        case 'development' :
+               /* translators: 1: WordPress version number, 2: WordPress updates admin screen URL */
                return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) );
 
        case 'upgrade' :