mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 12:14:25 +00:00
Check that current changes can be lost before editing another comment.
When replying to or editing a comment, double-clicking another comment will open it in quick edit and changes to the current comment are lost. Props pareshradadiya, chriscct7. Fixes #21845. git-svn-id: https://develop.svn.wordpress.org/trunk@32857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -439,7 +439,8 @@ function wp_default_scripts( &$scripts ) {
|
||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||
'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last']),
|
||||
'replyApprove' => __( 'Approve and Reply' ),
|
||||
'reply' => __( 'Reply' )
|
||||
'reply' => __( 'Reply' ),
|
||||
'warnQuickEdit' => __( "Are you sure you want to edit this comment?\nThe changes you made will be lost." ),
|
||||
) );
|
||||
|
||||
$scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", array('jquery'), false, 1 );
|
||||
|
||||
Reference in New Issue
Block a user