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.
Built from https://develop.svn.wordpress.org/trunk@36612


git-svn-id: http://core.svn.wordpress.org/trunk@36579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2016-02-22 16:23:26 +00:00
parent ae2657dd32
commit eba32e3b6f
6 changed files with 4 additions and 17 deletions

View File

@ -890,10 +890,6 @@ abbr.required,
padding: 6px 10px 8px;
}
.misc-pub-revisions .howto {
padding-right: 25px;
}
.misc-pub-filename {
word-wrap: break-word;
}

File diff suppressed because one or more lines are too long

View File

@ -890,10 +890,6 @@ abbr.required,
padding: 6px 10px 8px;
}
.misc-pub-revisions .howto {
padding-left: 25px;
}
.misc-pub-filename {
word-wrap: break-word;
}

File diff suppressed because one or more lines are too long

View File

@ -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;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36611';
$wp_version = '4.5-alpha-36612';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.