From 12de05107e4c8b006bde6ee8916f34eb476d08da Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 13 Jun 2008 17:21:00 +0000 Subject: WP Merge with revision 8075 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1328 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/edit-page-form.php | 160 ++++++++++++++++++++++++++------------------ 1 file changed, 94 insertions(+), 66 deletions(-) (limited to 'wp-admin/edit-page-form.php') diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index e800a46..89ac2b2 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -5,10 +5,9 @@ $messages[1] = sprintf( __( 'Page updated. Continue editing below or

-View the autosave
.' ); if (!isset($post_ID) || 0 == $post_ID) { $form_action = 'post'; @@ -20,6 +19,9 @@ if (!isset($post_ID) || 0 == $post_ID) { $form_action = 'editpost'; $nonce_action = 'update-page_' . $post_ID; $form_extra = ""; + $autosave = wp_get_post_autosave( $post_id ); + if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) ) + $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) ); } $temp_ID = (int) $temp_ID; @@ -31,6 +33,13 @@ if ( 0 != $post_ID && $sendto == get_permalink($post_ID) ) $sendto = 'redo'; ?> + +

+ + +

+ +

@@ -44,6 +53,7 @@ if (isset($mode) && 'bookmarklet' == $mode) + @@ -68,14 +78,14 @@ else
- -

+

- +post_status == 'publish' AND current_user_can('edit_page', $post->ID) ) ) : +?> post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'> - -post_status, 'private' ); ?> value='private'> post_status ) : ?> post_status, 'future' ); ?> value='future'> @@ -84,8 +94,10 @@ else post_status, 'draft' ); ?> value='draft'>

- +

+ + post_status ) { // scheduled for publishing at a future date @@ -140,6 +152,7 @@ if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )
+

@@ -159,7 +172,7 @@ if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )
-

+

@@ -174,7 +187,7 @@ endif; ?>
-

+

post_content); ?> @@ -188,13 +201,14 @@ endif; ?>

-
-

-
+ +
ID); list_meta($metadata); ?> @@ -205,83 +219,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); ?>

-
- + -
-

-
- page_template); ?>

-
-
- +"> -

-
-

+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); +?> -- cgit