Update WordPress to 5.2

This commit is contained in:
Oliver Davies 2019-05-08 08:05:39 +01:00
parent 489b5a5914
commit e00f87f2f5
599 changed files with 119573 additions and 55990 deletions

View file

@ -26,7 +26,7 @@ if ( ! function_exists( 'wp_set_current_user' ) ) :
function wp_set_current_user( $id, $name = '' ) {
global $current_user;
// If `$id` matches the user who's already current, there's nothing to do.
// If `$id` matches the current user, there is nothing to do.
if ( isset( $current_user )
&& ( $current_user instanceof WP_User )
&& ( $id == $current_user->ID )
@ -1535,7 +1535,7 @@ if ( ! function_exists( 'wp_notify_postauthor' ) ) :
/* translators: %s: comment text */
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
$notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n";
/* translators: 1: blog name, 2: post title */
/* translators: Trackback notification email subject. 1: Site title, 2: Post title */
$subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title );
break;
case 'pingback':
@ -1548,7 +1548,7 @@ if ( ! function_exists( 'wp_notify_postauthor' ) ) :
/* translators: %s: comment text */
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
$notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n";
/* translators: 1: blog name, 2: post title */
/* translators: Pingback notification email subject. 1: Site title, 2: Post title */
$subject = sprintf( __( '[%1$s] Pingback: "%2$s"' ), $blogname, $post->post_title );
break;
default: // Comments
@ -1563,7 +1563,7 @@ if ( ! function_exists( 'wp_notify_postauthor' ) ) :
/* translators: %s: comment text */
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
$notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n";
/* translators: 1: blog name, 2: post title */
/* translators: Comment notification email subject. 1: Site title, 2: Post title */
$subject = sprintf( __( '[%1$s] Comment: "%2$s"' ), $blogname, $post->post_title );
break;
}
@ -1918,7 +1918,7 @@ if ( ! function_exists( 'wp_new_user_notification' ) ) :
$wp_new_user_notification_email_admin = array(
'to' => get_option( 'admin_email' ),
/* translators: Password change notification email subject. %s: Site title */
/* translators: New user registration notification email subject. %s: Site title */
'subject' => __( '[%s] New User Registration' ),
'message' => $message,
'headers' => '',
@ -1984,8 +1984,8 @@ if ( ! function_exists( 'wp_new_user_notification' ) ) :
$wp_new_user_notification_email = array(
'to' => $user->user_email,
/* translators: Password change notification email subject. %s: Site title */
'subject' => __( '[%s] Your username and password info' ),
/* translators: Login details notification email subject. %s: Site title */
'subject' => __( '[%s] Login Details' ),
'message' => $message,
'headers' => '',
);