Make WordPress Core

Changeset 25694


Ignore:
Timestamp:
10/06/2013 10:45:25 AM (11 years ago)
Author:
nacin
Message:

Hide the "If you take over" string from the post locked dialog when the override_post_lock filter is used to prevent an override.

props azaozz.
fixes #24930.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r25669 r25694  
    12691269        <div class="post-locked-message">
    12701270        <div class="post-locked-avatar"><?php echo get_avatar( $user->ID, 64 ); ?></div>
    1271         <p class="currently-editing wp-tab-first" tabindex="0"><?php echo esc_html( sprintf( __( 'This content is currently locked. If you take over, %s will be blocked from continuing to edit.' ), $user->display_name ) ); ?></p>
     1271        <p class="currently-editing wp-tab-first" tabindex="0">
     1272        <?php
     1273            _e( 'This content is currently locked.' );
     1274            if ( $override )
     1275                printf( ' ' . __( 'If you take over, %s will be blocked from continuing to edit.' ), esc_html( $user->display_name ) );
     1276        ?>
     1277        </p>
    12721278        <?php do_action( 'post_locked_dialog', $post ); ?>
    12731279        <p>
Note: See TracChangeset for help on using the changeset viewer.