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. git-svn-id: https://develop.svn.wordpress.org/trunk@36612 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
56598b5f90
commit
f306793b2c
@ -890,10 +890,6 @@ abbr.required,
|
||||
padding: 6px 10px 8px;
|
||||
}
|
||||
|
||||
.misc-pub-revisions .howto {
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.misc-pub-filename {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
@ -190,15 +190,10 @@ if ( 0 != $post->ID ) {
|
||||
$date = date_i18n( $datef, strtotime( current_time('mysql') ) );
|
||||
}
|
||||
|
||||
if ( ! empty( $args['args']['revisions_count'] ) ) :
|
||||
$revisions_to_keep = wp_revisions_to_keep( $post );
|
||||
?>
|
||||
if ( ! empty( $args['args']['revisions_count'] ) ) : ?>
|
||||
<div class="misc-pub-section misc-pub-revisions">
|
||||
<?php printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' ); ?>
|
||||
<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>
|
||||
<?php if ( $revisions_to_keep > 0 ) : ?>
|
||||
<span class="howto"><?php printf( __( 'Your site is configured to keep only the last %s revisions' ), number_format_i18n( $revisions_to_keep ) ) ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user