Changeset 24042 for trunk/wp-admin/includes/post.php
- Timestamp:
- 04/22/2013 03:08:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r24021 r24042 1198 1198 return; 1199 1199 1200 if ( $user = wp_check_post_lock( $post->ID ) ) { 1201 $user = get_userdata( $user ); 1200 if ( ( $user_id = wp_check_post_lock( $post->ID ) ) && ( $user = get_userdata( $user_id ) ) ) { 1202 1201 $locked = apply_filters( 'show_post_locked_dialog', true, $post, $user ); 1203 1202 } else { … … 1230 1229 <div class="post-locked-avatar"><?php echo get_avatar( $user->ID, 64 ); ?></div> 1231 1230 <p class="currently-editing wp-tab-first" tabindex="0"><?php esc_html_e( sprintf( __( 'This content is currently locked. If you take over, %s will be blocked from continuing to edit.' ), $user->display_name ) ); ?></p> 1231 <?php do_action( 'post_lock_text', $post ); ?> 1232 1232 <p> 1233 1233 <a class="button" href="<?php echo esc_url( wp_get_referer() ); ?>"><?php _e('Go back'); ?></a> … … 1250 1250 <div class="post-taken-over"> 1251 1251 <div class="post-locked-avatar"></div> 1252 <p class="currently-editing wp-tab-first" tabindex="0"></p> 1252 <p class="wp-tab-first" tabindex="0"> 1253 <span class="currently-editing"></span><br> 1254 <span class="locked-saving hidden"><img src="images/wpspin_light-2x.gif" width="16" height="16" /> <?php _e('Saving revision...'); ?></span> 1255 <span class="locked-saved hidden"><?php _e('Your latest changes were saved as a revision.'); ?></span> 1256 </p> 1257 <?php do_action( 'post_lock_text', $post ); ?> 1253 1258 <p><a class="button button-primary wp-tab-last" href="<?php echo esc_url( admin_url('edit.php') ); ?>"><?php _e('Go to All Posts'); ?></a></p> 1254 1259 </div>
Note: See TracChangeset
for help on using the changeset viewer.