Make WordPress Core

Ticket #35029: 35029.5.patch

File 35029.5.patch, 1.5 KB (added by afercia, 9 years ago)
  • src/wp-admin/css/common.css

     
    890890        padding: 6px 10px 8px;
    891891}
    892892
    893 .misc-pub-revisions .howto {
    894         padding-left: 25px;
    895 }
    896 
    897893.misc-pub-filename {
    898894        word-wrap: break-word;
    899895}
  • src/wp-admin/includes/meta-boxes.php

     
    190190        $date = date_i18n( $datef, strtotime( current_time('mysql') ) );
    191191}
    192192
    193 if ( ! empty( $args['args']['revisions_count'] ) ) :
    194         $revisions_to_keep = wp_revisions_to_keep( $post );
    195 ?>
     193if ( ! empty( $args['args']['revisions_count'] ) ) : ?>
    196194<div class="misc-pub-section misc-pub-revisions">
    197195        <?php printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' ); ?>
    198196        <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>
    199         <?php if ( $revisions_to_keep > 0 ) : ?>
    200         <span class="howto"><?php printf( __( 'Your site is configured to keep only the last %s revisions' ), number_format_i18n( $revisions_to_keep ) ) ?></span>
    201         <?php endif; ?>
    202197</div>
    203198<?php endif;
    204199