Make WordPress Core


Ignore:
Timestamp:
02/22/2016 04:22:53 PM (9 years ago)
Author:
afercia
Message:

Accessibility: Remove the revisions limit warning from the Publish box.

After [36053] don't show a warning about something users can't change
because there's no control exposed in the UI for that. The Revisions
screen is probably a better place to show a more complete information.

Fixes #35029.

File:
1 edited

Legend:

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

    r36232 r36612  
    191191}
    192192
    193 if ( ! empty( $args['args']['revisions_count'] ) ) :
    194     $revisions_to_keep = wp_revisions_to_keep( $post );
    195 ?>
     193if ( ! empty( $args['args']['revisions_count'] ) ) : ?>
    196194<div class="misc-pub-section misc-pub-revisions">
    197195    <?php printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' ); ?>
    198196    <a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><span aria-hidden="true"><?php _ex( 'Browse', 'revisions' ); ?></span> <span class="screen-reader-text"><?php _e( 'Browse revisions' ); ?></span></a>
    199     <?php if ( $revisions_to_keep > 0 ) : ?>
    200     <span class="howto"><?php printf( __( 'Your site is configured to keep only the last %s revisions' ), number_format_i18n( $revisions_to_keep ) ) ?></span>
    201     <?php endif; ?>
    202197</div>
    203198<?php endif;
Note: See TracChangeset for help on using the changeset viewer.