source: trunk/www.guidonia.net/wp/wp-admin/post-new.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 15 years ago
File size: 1.1 KB
RevLine 
[44]1<?php
2/**
3 * New Post Administration Panel.
4 *
5 * @package WordPress
6 * @subpackage Administration
7 */
8
9/** Load WordPress Administration Bootstrap */
10require_once('admin.php');
11$title = __('Add New Post');
12$parent_file = 'edit.php';
13$editing = true;
14wp_enqueue_script('autosave');
15wp_enqueue_script('post');
16if ( user_can_richedit() )
17 wp_enqueue_script('editor');
18add_thickbox();
19wp_enqueue_script('media-upload');
20wp_enqueue_script('word-count');
21
22if ( ! current_user_can('edit_posts') ) {
23 require_once ('./admin-header.php'); ?>
24<div class="wrap">
25<p><?php printf(__('Since you&#8217;re a newcomer, you&#8217;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 />
26You can also <a href="mailto:%s?subject=Promotion?">e-mail the admin</a> to ask for a promotion.<br />
27When you&#8217;re promoted, just reload this page and you&#8217;ll be able to blog. :)'), get_option('admin_email')); ?>
28</p>
29</div>
30<?php
31 include('admin-footer.php');
32 exit();
33}
34
35// Show post form.
36$post = get_default_post_to_edit();
37include('edit-form-advanced.php');
38
39include('admin-footer.php');
40?>
Note: See TracBrowser for help on using the repository browser.