Accessibility: Remove the revisions limit title attribute from the Publish box.
The revisions limit warning is now always displayed in plain text even when the limit is not reached yet. Removes the plus "+" from the revisions count number. Fixes #35029. Built from https://develop.svn.wordpress.org/trunk@36053 git-svn-id: http://core.svn.wordpress.org/trunk@36018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
779d639c85
commit
dc31b503ec
|
@ -887,6 +887,10 @@ abbr.required,
|
|||
padding: 6px 10px 8px;
|
||||
}
|
||||
|
||||
.misc-pub-revisions .howto {
|
||||
padding-right: 25px;
|
||||
}
|
||||
|
||||
.misc-pub-filename {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
|
|
@ -887,6 +887,10 @@ 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
File diff suppressed because one or more lines are too long
|
@ -194,17 +194,11 @@ if ( ! empty( $args['args']['revisions_count'] ) ) :
|
|||
$revisions_to_keep = wp_revisions_to_keep( $post );
|
||||
?>
|
||||
<div class="misc-pub-section misc-pub-revisions">
|
||||
<?php
|
||||
if ( $revisions_to_keep > 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) {
|
||||
echo '<span title="' . esc_attr( sprintf( __( 'Your site is configured to keep only the last %s revisions.' ),
|
||||
number_format_i18n( $revisions_to_keep ) ) ) . '">';
|
||||
printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '+</b>' );
|
||||
echo '</span>';
|
||||
} else {
|
||||
printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' );
|
||||
}
|
||||
?>
|
||||
<?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;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36050';
|
||||
$wp_version = '4.5-alpha-36053';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue