-
+ F1D1F2B97DF3B495496B715ECAAAA495510402068254EDF23C7C29C5C0775865E6240B01A4512B12208809B34C3EB77077AD8676F1B673E2AB47B2FCABCFF638
mp-wp/wp-admin/post-new.php
(0 . 0)(1 . 40)
55439 <?php
55440 /**
55441 * New Post Administration Panel.
55442 *
55443 * @package WordPress
55444 * @subpackage Administration
55445 */
55446
55447 /** Load WordPress Administration Bootstrap */
55448 require_once('admin.php');
55449 $title = __('Add New Post');
55450 $parent_file = 'edit.php';
55451 $editing = true;
55452 wp_enqueue_script('autosave');
55453 wp_enqueue_script('post');
55454 if ( user_can_richedit() )
55455 wp_enqueue_script('editor');
55456 add_thickbox();
55457 wp_enqueue_script('media-upload');
55458 wp_enqueue_script('word-count');
55459
55460 if ( ! current_user_can('edit_posts') ) {
55461 require_once ('./admin-header.php'); ?>
55462 <div class="wrap">
55463 <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 />
55464 You can also <a href="mailto:%s?subject=Promotion?">e-mail the admin</a> to ask for a promotion.<br />
55465 When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_option('admin_email')); ?>
55466 </p>
55467 </div>
55468 <?php
55469 include('admin-footer.php');
55470 exit();
55471 }
55472
55473 // Show post form.
55474 $post = get_default_post_to_edit();
55475 include('edit-form-advanced.php');
55476
55477 include('admin-footer.php');
55478 ?>