diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 3344841c74..ca48323d4d 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -347,8 +347,12 @@ if ( $post->post_author && !in_array($post->post_author, $authors) ) $authors[] = $post->post_author; if ( $authors && count( $authors ) > 1 ) : function post_author_meta_box($post) { + global $current_user, $user_ID; + $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM + if ( $post->post_author && !in_array($post->post_author, $authors) ) + $authors[] = $post->post_author; ?> - $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?> + $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>

-
-

-
+ +
ID); list_meta($metadata); ?> @@ -216,93 +217,97 @@ list_meta($metadata);

use in your theme.'); ?>

- - +"> -

-
+function page_comments_status_meta_box($post){ +?>

trackbacks and pingbacks.'); ?>

-
- +"> -

-
+function page_password_meta_box($post){ +?>

-
- +"> -

-
+function page_slug_meta_box($post){ +?> -
- +"> -

-
- post_parent); ?>

-
- + -
-

-
+if ( 0 != count( get_page_templates() ) ) { + function page_template_meta_box($post){ +?>

-
-
- +"> -

-
+function page_order_meta_box($post){ +?>

-
- - id ); // TODO: ROLE SYSTEM if ( $post->post_author && !in_array($post->post_author, $authors) ) $authors[] = $post->post_author; -if ( $authors && count( $authors ) > 1 ) : +if ( $authors && count( $authors ) > 1 ) { + function page_author_meta_box($post){ + global $current_user, $user_ID; + $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM + if ( $post->post_author && !in_array($post->post_author, $authors) ) + $authors[] = $post->post_author; ?> -
-

-
- $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?> -
-
- - - -
-

-
- -
-
- + $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?> + +if ( isset($post_ID) && 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) : +function page_revisions_meta_box($post) { + wp_list_post_revisions(); +} +add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'page', 'advanced', 'core'); +endif; + +do_meta_boxes('page', 'advanced', $post); +?>