From 7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 4 Apr 2008 16:44:15 +0000 Subject: Merged with WordPress 2.5, unstable, only for testing git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1218 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/post-new.php | 105 +++++--------------------------------------------- 1 file changed, 9 insertions(+), 96 deletions(-) (limited to 'wp-admin/post-new.php') diff --git a/wp-admin/post-new.php b/wp-admin/post-new.php index c6b709b..263783a 100644 --- a/wp-admin/post-new.php +++ b/wp-admin/post-new.php @@ -3,9 +3,13 @@ require_once('admin.php'); $title = __('Create New Post'); $parent_file = 'post-new.php'; $editing = true; -wp_enqueue_script('prototype'); -wp_enqueue_script('interface'); wp_enqueue_script('autosave'); +wp_enqueue_script('post'); +if ( user_can_richedit() ) + wp_enqueue_script('editor'); +wp_enqueue_script('thickbox'); +wp_enqueue_script('media-upload'); + require_once ('./admin-header.php'); if ( ! current_user_can('edit_posts') ) { ?> @@ -20,109 +24,18 @@ When you’re promoted, just reload this page and you’ll be able to bl exit(); } -if ( isset($_GET['posted']) && $_GET['posted'] ) : ?> -

+if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> +

|

'; - - foreach ( $nag_posts as $nag ) { - if ( ${$nag[0]} ) { - echo '

' . wp_specialchars($nag[1]) . ' '; - $i = 0; - foreach ( ${$nag[0]} as $post ) { - $i++; - if ( $i > $nag_posts_limit ) - break; - echo ''; - ( '' == the_title('', '', FALSE) ) ? printf( __('Post #%s'), $post->ID ) : the_title(); - echo ''; - if ( $i < min($nag[3], $nag_posts_limit) ) - echo ', '; - } - if ( $nag[3] > $nag_posts_limit ) - printf(__(', and %d more'), $nag[2], $nag[3] - $nag_posts_limit); - echo '.

'; - } - } - echo "\n"; -} -?> - - - -
-

-

-

- - - - - - -
-
-
- - - - - - -

-
- - - -- cgit