Changeset 14107
- Timestamp:
- 04/16/2010 02:03:48 PM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r14106 r14107 10 10 if ( !defined('ABSPATH') ) 11 11 die('-1'); 12 13 wp_enqueue_script('post'); 14 15 if ( post_type_supports($post_type, 'editor') ) { 16 if ( user_can_richedit() ) 17 wp_enqueue_script('editor'); 18 wp_enqueue_script('word-count'); 19 } 20 21 if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) { 22 add_thickbox(); 23 wp_enqueue_script('media-upload'); 24 } 12 25 13 26 /** -
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 ?> -
trunk/wp-admin/post.php
r13242 r14107 171 171 } 172 172 173 wp_enqueue_script('post');174 if ( user_can_richedit() )175 wp_enqueue_script('editor');176 add_thickbox();177 wp_enqueue_script('media-upload');178 wp_enqueue_script('word-count');179 wp_enqueue_script( 'admin-comments' );180 enqueue_comment_hotkeys_js();181 182 173 if ( $last = wp_check_post_lock( $post->ID ) ) { 183 174 add_action('admin_notices', '_admin_notice_post_locked' ); … … 189 180 $title = sprintf(__('Edit %s'), $post_type_object->singular_label); 190 181 $post = get_post_to_edit($post_id); 182 183 if ( post_type_supports($post_type, 'comments') ) { 184 wp_enqueue_script('admin-comments'); 185 enqueue_comment_hotkeys_js(); 186 } 191 187 192 188 include('edit-form-advanced.php');
Note: See TracChangeset
for help on using the changeset viewer.