diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index f4d1c1ad2c..52cacdbd8f 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -1,6 +1,3 @@ - -
-

+
-
-
-
-

-
- - - -
-
- -
-

-
- - - -
-
- -
-

-
-
- -
-

-

-
-
- - -
-

-

-
-
- - -
-

-
-
- -id ) ) : // TODO: ROLE SYSTEM ?> -
-

-
- -
-
- - -
-

-

-
- - - +
+

+
+
-
- -
-
+
+

+post_content); ?> +
+
-
- - +
post_status ) { ?> - + - + - - post_content); ?> -
+
+ +
+ +

+

+ +

+ +

+post_status ) + $time = __('Scheduled for:
%1$s at %2$s'); +else if ( 'publish' == $post->post_status ) + $time = __('Published on:
%1$s at %2$s'); +else + $time = __('Saved on:
%1$s at %2$s'); +?> +

post_date), mysql2date(get_option('time_format'), $post->post_date)); ?> + +

- - - + post_status || 0 == $post_ID): +if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) { ?> - - + + + +post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete page') . ""; +?> + +
+post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?> + +

+
+ +

+ + +

-' . __('This feature requires iframe support.') . ''; -} -?> +

-
- -
-
-
-

-
-
-
+
+

+
+
- - - +
+

+
+ + + +
-ID) ) ?> - post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> /> +
+

+
+ +
+
+ +
+

+
+ +
+
+ +
+

+
+ +
+
+ + +
+

+
+ +
+
+ + +
+

+
+ +
+
+ +id ); // TODO: ROLE SYSTEM +if ( $post->post_author && !in_array($post->post_author, $authors) ) + $authors[] = $post->post_author; +if ( $authors && count( $authors ) > 1 ) : +?> +
+

+
+ $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?> +
+
+ + + + + - - diff --git a/wp-admin/page-new.php b/wp-admin/page-new.php index e481e16800..85fab1cd28 100644 --- a/wp-admin/page-new.php +++ b/wp-admin/page-new.php @@ -4,6 +4,10 @@ $title = __('New Page'); $parent_file = 'post-new.php'; $editing = true; wp_enqueue_script('autosave'); +wp_enqueue_script('post'); +wp_enqueue_script('thickbox'); +wp_enqueue_script('media-upload'); + require_once('admin-header.php'); ?> diff --git a/wp-admin/page.php b/wp-admin/page.php index f71bf6306c..8f2d9820ad 100644 --- a/wp-admin/page.php +++ b/wp-admin/page.php @@ -52,6 +52,10 @@ case 'edit': exit(); } + wp_enqueue_script('post'); + wp_enqueue_script('thickbox'); + wp_enqueue_script('media-upload'); + if ( 'draft' == $post->post_status ) wp_enqueue_script('autosave');