WordPress.org

Make WordPress Core

Ticket #35029: 35029.patch

File 35029.patch, 1.7 KB (added by afercia, 4 years ago)
  • src/wp-admin/css/common.css

     
    887887        padding: 6px 10px 8px;
    888888}
    889889
     890.misc-pub-revisions .howto {
     891        padding-left: 25px;
     892}
     893
    890894.misc-pub-filename {
    891895        word-wrap: break-word;
    892896}
  • src/wp-admin/includes/meta-boxes.php

     
    196196<div class="misc-pub-section misc-pub-revisions">
    197197<?php
    198198        if ( $revisions_to_keep > 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) {
    199                 echo '<span title="' . esc_attr( sprintf( __( 'Your site is configured to keep only the last %s revisions.' ),
    200                         number_format_i18n( $revisions_to_keep ) ) ) . '">';
     199                $revisions_to_keep_info = '<span class="howto">' . sprintf( __( 'The revisions limit is set to %s.' ),
     200                        number_format_i18n( $revisions_to_keep ) ) . '</span>';
    201201                printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '+</b>' );
    202                 echo '</span>';
    203202        } else {
     203                $revisions_to_keep_info = '';
    204204                printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' );
    205205        }
    206206?>
    207207        <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>
     208        <?php echo $revisions_to_keep_info; ?>
    208209</div>
    209210<?php endif;
    210211