Comments: Keep comments safe in the Edit Post screen.

Warns users that have added a new Comment or began editing an existing without saving their changes, before they press the “update” button which would wipe out their comment changes.

Fixes #32818.

Props polevaultweb.
Built from https://develop.svn.wordpress.org/trunk@37303


git-svn-id: http://core.svn.wordpress.org/trunk@37269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Rachel Baker
2016-04-22 21:43:28 +00:00
parent be59d289b7
commit 8b0e1859bc
6 changed files with 35 additions and 3 deletions

View File

@@ -495,6 +495,7 @@ function wp_default_scripts( &$scripts ) {
'replyApprove' => __( 'Approve and Reply' ),
'reply' => __( 'Reply' ),
'warnQuickEdit' => __( "Are you sure you want to edit this comment?\nThe changes you made will be lost." ),
'warnCommentChanges' => __( "Are you sure you want to do this?\nThe comment changes you made will be lost." ),
'docTitleComments' => __( 'Comments' ),
/* translators: %s: comments count */
'docTitleCommentsCount' => __( 'Comments (%s)' ),

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37302';
$wp_version = '4.6-alpha-37303';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.