2 require_once('admin.php');
3 $title = __('Create New Post');
4 $parent_file = 'post-new.php';
6 wp_enqueue_script('autosave');
7 wp_enqueue_script('post');
8 if ( user_can_richedit() )
9 wp_enqueue_script('editor');
10 wp_enqueue_script('thickbox');
11 wp_enqueue_script('media-upload');
13 require_once ('./admin-header.php');
15 if ( ! current_user_can('edit_posts') ) { ?>
17 <p><?php printf(__('Since you’re a newcomer, you’ll have to wait for an admin to add the <code>edit_posts</code> capability to your user, in order to be authorized to post.<br />
18 You can also <a href="mailto:%s?subject=Promotion?">e-mail the admin</a> to ask for a promotion.<br />
19 When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_option('admin_email')); ?>
23 include('admin-footer.php');
27 if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
28 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="post.php?action=edit&post=<?php echo $_GET['posted']; ?>"><?php _e('Edit post'); ?></a></p></div>
37 $post = get_default_post_to_edit();
38 include('edit-form-advanced.php');
40 include('admin-footer.php');