Changes from trunk/wp-admin/page.php at r11380 to branches/2.8/wp-admin/page.php at r12068
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-admin/page.php
r11380 r12068 99 99 if ( current_user_can('edit_page', $page_ID) ) { 100 100 if ( $last = wp_check_post_lock( $post->ID ) ) { 101 $last_user = get_userdata( $last ); 102 $last_user_name = $last_user ? $last_user->display_name : __('Somebody'); 103 $message = sprintf( __( 'Warning: %s is currently editing this page' ), esc_html( $last_user_name ) ); 104 $message = str_replace( "'", "\'", "<div class='error'><p>$message</p></div>" ); 105 add_action('admin_notices', create_function( '', "echo '$message';" ) ); 101 add_action('admin_notices', '_admin_notice_post_locked' ); 106 102 } else { 107 103 wp_set_post_lock( $post->ID );
Note: See TracChangeset
for help on using the changeset viewer.