General: Further improve error messages following [42648].

Props kristastevens, melchoyce.
Fixes #38332 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@42719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2018-02-19 02:12:41 +00:00
parent b2b29b4431
commit d002fde80e
23 changed files with 51 additions and 51 deletions
+7 -7
View File
@@ -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 );
}
/**