Ticket #16928: 16928-2.patch
| File 16928-2.patch, 1.5 KB (added by , 15 years ago) |
|---|
-
wp-admin/admin-ajax.php
939 939 940 940 $last_user = get_userdata( $last ); 941 941 $last_user_name = $last_user ? $last_user->display_name : __( 'Someone' ); 942 $data = new WP_Error( 'locked', sprintf( 943 $_POST['post_type'] == 'page' ? __( 'Autosave disabled: %s is currently editing this page.' ) : __( 'Autosave disabled: %s is currently editing this post.' ), 944 esc_html( $last_user_name ) 945 ) ); 942 $data = __( 'Autosave disabled.' ); 946 943 947 944 $supplemental['disable_autosave'] = 'disable'; 945 $supplemental['alert'] = sprintf( __( '%s is currently editing this article. If you update it, you will overwrite the changes.' ), esc_html( $last_user_name ) ); 948 946 } 949 947 950 948 if ( 'page' == $post->post_type ) { -
wp-includes/js/autosave.dev.js
101 101 } 102 102 delete sup['session_expired']; 103 103 } 104 jQuery.each(sup, function(selector, value) { 105 if ( selector.match(/^replace-/)) {106 jQuery('#'+selector.replace('replace-', '')).val(value);107 }108 } );104 105 if ( sup['alert'] ) { 106 jQuery('#postdivrich').before('<div class="error below-h2"><p>' + sup['alert'] + '</p></div>'); 107 alert( sup['alert'] ); 108 } 109 109 } 110 110 111 111 // if no errors: add slug UI