Changeset 24790 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 07/24/2013 06:08:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r24522 r24790 10 10 * @param object $post 11 11 */ 12 function post_submit_meta_box($post ) {12 function post_submit_meta_box($post, $args = array() ) { 13 13 global $action; 14 14 … … 171 171 $date = date_i18n( $datef, strtotime( current_time('mysql') ) ); 172 172 } 173 174 if ( ! empty( $args['args']['revisions_count'] ) ) : 175 $revisions_to_keep = wp_revisions_to_keep( $post ); 176 ?> 177 <div class="misc-pub-section num-revisions"> 178 <?php 179 if ( $revisions_to_keep > 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) { 180 echo '<span title="' . esc_attr( sprintf( __( 'Your site is configured to keep only the last %s revisions.' ), 181 number_format_i18n( $revisions_to_keep ) ) ) . '">'; 182 printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '+</b>' ); 183 echo '</span>'; 184 } else { 185 printf( 'Revisions: %s', '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' ); 186 } 187 ?> 188 <a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><?php _ex( 'Browse', 'revisions' ); ?></a> 189 </div> 190 <?php endif; 173 191 174 192 if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
Note: See TracChangeset
for help on using the changeset viewer.