Make WordPress Core


Ignore:
Timestamp:
11/21/2016 01:51:39 AM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Move the support forums URL in update-related HTTP API error messages to a separate translatable string that is already used elsewhere.

Props ramiy, SergeyBiryukov.
Fixes #38880.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r39323 r39325  
    113113    $response = wp_remote_get( $url, $options );
    114114    if ( $ssl && is_wp_error( $response ) ) {
    115         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 );
     115        trigger_error(
     116            sprintf(
     117                /* translators: %s: support forums URL */
     118                __( '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>.' ),
     119                __( 'https://wordpress.org/support/' )
     120            ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ),
     121            headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
     122        );
    116123        $response = wp_remote_get( $http_url, $options );
    117124    }
Note: See TracChangeset for help on using the changeset viewer.