Changeset 14107 for trunk/wp-admin/post-new.php
- Timestamp:
- 04/16/2010 02:03:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post-new.php
r13537 r14107 8 8 9 9 /** Load WordPress Administration Bootstrap */ 10 require_once(' admin.php');10 require_once('./admin.php'); 11 11 12 12 if ( !isset($_GET['post_type']) ) … … 30 30 31 31 $editing = true; 32 wp_enqueue_script('autosave');33 wp_enqueue_script('post');34 if ( user_can_richedit() )35 wp_enqueue_script('editor');36 add_thickbox();37 wp_enqueue_script('media-upload');38 wp_enqueue_script('word-count');39 32 40 33 if ( 'post' == $post_type && !current_user_can('edit_posts') ) { 41 require_once('./admin-header.php'); ?>34 include('./admin-header.php'); ?> 42 35 <div class="wrap"> 43 36 <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 /> … … 47 40 </div> 48 41 <?php 49 include(' admin-footer.php');42 include('./admin-footer.php'); 50 43 exit(); 51 44 } 45 46 wp_enqueue_script('autosave'); 52 47 53 48 // Show post form. … … 58 53 } 59 54 60 include(' admin-footer.php');55 include('./admin-footer.php'); 61 56 ?>
Note: See TracChangeset
for help on using the changeset viewer.