X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5964d2279dc52bdfe105f9bfa17e04337d47a3fa..85ad385665744d9cc3bcd939906309be7268edb3:/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..e77c9ecc 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; @@ -55,7 +55,7 @@ if ( 'publish' == $post->post_status ) {
- +
use in your theme.'); ?>
- + $post->ID, 'number' => 1, 'count' => true ) ); @@ -602,8 +620,8 @@ function post_author_meta_box($post) { * * @param object $post */ -function post_revisions_meta_box($post) { - wp_list_post_revisions(); +function post_revisions_meta_box( $post ) { + wp_list_post_revisions( $post ); } // -- Page related Meta Boxes @@ -684,7 +702,7 @@ function link_submit_meta_box($link) {- | + | |
---|---|---|
- | + | |
@@ -979,4 +997,4 @@ function link_advanced_meta_box($link) { function post_thumbnail_meta_box( $post ) { $thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true ); echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID ); -} \ No newline at end of file +} |