mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 23:25:50 +01:00
pull thumbnail scripts out of Page admin pages. see #10928. props scribu, gracious even in reversion.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2e61f480c
commit
d9ed18b720
@ -18,7 +18,6 @@ if ( user_can_richedit() )
|
|||||||
add_thickbox();
|
add_thickbox();
|
||||||
wp_enqueue_script('media-upload');
|
wp_enqueue_script('media-upload');
|
||||||
wp_enqueue_script('word-count');
|
wp_enqueue_script('word-count');
|
||||||
wp_enqueue_script('set-post-thumbnail-handler');
|
|
||||||
|
|
||||||
if ( current_user_can('edit_pages') ) {
|
if ( current_user_can('edit_pages') ) {
|
||||||
$action = 'post';
|
$action = 'post';
|
||||||
|
@ -108,7 +108,6 @@ case 'edit':
|
|||||||
add_thickbox();
|
add_thickbox();
|
||||||
wp_enqueue_script('media-upload');
|
wp_enqueue_script('media-upload');
|
||||||
wp_enqueue_script('word-count');
|
wp_enqueue_script('word-count');
|
||||||
wp_enqueue_script('set-post-thumbnail-handler');
|
|
||||||
|
|
||||||
if ( $last = wp_check_post_lock( $post->ID ) ) {
|
if ( $last = wp_check_post_lock( $post->ID ) ) {
|
||||||
add_action('admin_notices', '_admin_notice_post_locked' );
|
add_action('admin_notices', '_admin_notice_post_locked' );
|
||||||
|
Loading…
Reference in New Issue
Block a user