WordPress.org

Make WordPress Core

Ticket #35029: 35029.2.patch

File 35029.2.patch, 2.0 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

     
    194194        $revisions_to_keep = wp_revisions_to_keep( $post );
    195195?>
    196196<div class="misc-pub-section misc-pub-revisions">
    197 <?php
    198         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 ) ) ) . '">';
    201                 printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '+</b>' );
    202                 echo '</span>';
    203         } else {
    204                 printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' );
    205         }
    206 ?>
    207         <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>
     197        <a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><?php printf( __( 'Browse revisions (%s)' ), number_format_i18n( $args['args']['revisions_count'] ) ); ?></a>
     198<?php if ( $revisions_to_keep > 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) : ?>
     199        <span class="howto"><?php printf( __( 'Limit for revisions is set to %s.' ), number_format_i18n( $revisions_to_keep ) ) ?></span>
     200<?php endif; ?>
    208201</div>
    209202<?php endif;
    210203