WordPress.org

Make WordPress Core

Changeset 36612


Ignore:
Timestamp:
02/22/2016 04:22:53 PM (2 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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r36587 r36612  
    889889.misc-pub-section {
    890890    padding: 6px 10px 8px;
    891 }
    892 
    893 .misc-pub-revisions .howto {
    894     padding-left: 25px;
    895891}
    896892
  • 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.