X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/baca9ce86a38dc54c4574890ee2d352fd81f78b2..61343b82c4f0da4c68e4c6373daafff4a81efdd1:/wp-admin/includes/meta-boxes.php?ds=sidebyside diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 2b0b2864..cefa5a96 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -9,7 +9,7 @@ * * @param object $post */ -function post_submit_meta_box($post) { +function post_submit_meta_box($post, $args = array() ) { global $action; $post_type = $post->post_type; @@ -171,6 +171,24 @@ if ( 0 != $post->ID ) { $date = date_i18n( $datef, strtotime( current_time('mysql') ) ); } +if ( ! empty( $args['args']['revisions_count'] ) ) : + $revisions_to_keep = wp_revisions_to_keep( $post ); +?> +
+ 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) { + echo ''; + printf( __( 'Revisions: %s' ), '' . number_format_i18n( $args['args']['revisions_count'] ) . '+' ); + echo ''; + } else { + printf( __( 'Revisions: %s' ), '' . number_format_i18n( $args['args']['revisions_count'] ) . '' ); + } +?> + +
+
@@ -315,9 +333,9 @@ function post_format_meta_box( $post, $box ) { $post_formats[0][] = $post_format; ?>
- /> + /> -
/> +
/>
cap->assign_terms) ? 'disabled="disabled"' : ''; + $user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms ); $comma = _x( ',', 'tag delimiter' ); ?>

labels->add_or_remove_items; ?>

-
- cap->assign_terms) ) : ?> +
+
labels->add_new_item; ?>

-

labels->separate_items_with_commas ); ?>

+

labels->separate_items_with_commas; ?>

-cap->assign_terms) ) : ?> +

labels->choose_from_most_used; ?>

ID, '_thumbnail_id', true ); echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID ); -} \ No newline at end of file +}