General: Further improve error messages following [42648].
Props kristastevens, melchoyce. Fixes #38332 for trunk. Built from https://develop.svn.wordpress.org/trunk@42719 git-svn-id: http://core.svn.wordpress.org/trunk@42547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -673,11 +673,11 @@ function wp_get_http_headers( $url, $deprecated = false ) {
|
||||
/**
|
||||
* Determines whether the publish date of the current post in the loop is different
|
||||
* from the publish date of the previous post in the loop.
|
||||
*
|
||||
*
|
||||
* For more information on this and similar theme functions, check out
|
||||
* the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
|
||||
* the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
|
||||
* Conditional Tags} article in the Theme Developer Handbook.
|
||||
*
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
* @global string $currentday The day of the current post in the loop.
|
||||
@@ -1393,9 +1393,9 @@ function do_robots() {
|
||||
* cache, and the database goes away, then you might have problems.
|
||||
*
|
||||
* Checks for the 'siteurl' option for whether WordPress is installed.
|
||||
*
|
||||
*
|
||||
* For more information on this and similar theme functions, check out
|
||||
* the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
|
||||
* the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
|
||||
* Conditional Tags} article in the Theme Developer Handbook.
|
||||
*
|
||||
* @since 2.1.0
|
||||
@@ -2727,7 +2727,7 @@ function wp_nonce_ays( $action ) {
|
||||
wp_logout_url( $redirect_to )
|
||||
);
|
||||
} else {
|
||||
$html = __( 'The link you followed no longer exists.' );
|
||||
$html = __( 'The link you followed has expired.' );
|
||||
if ( wp_get_referer() ) {
|
||||
$html .= '</p><p>';
|
||||
$html .= sprintf(
|
||||
@@ -2738,7 +2738,7 @@ function wp_nonce_ays( $action ) {
|
||||
}
|
||||
}
|
||||
|
||||
wp_die( $html, __( 'An error has occurred.' ), 403 );
|
||||
wp_die( $html, __( 'Something went wrong.' ), 403 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user