diff --git wp-admin/edit-form-advanced.php wp-admin/edit-form-advanced.php
index 1c9921a..eb87ecd 100644
|
|
|
if ( wp_is_mobile() ) |
| 17 | 17 | |
| 18 | 18 | if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) { |
| 19 | 19 | add_thickbox(); |
| 20 | | |
| 21 | | wp_enqueue_script( 'media-upload' ); |
| 22 | | wp_enqueue_style( 'media-views' ); |
| 23 | | wp_plupload_default_settings(); |
| 24 | | add_action( 'admin_footer', 'wp_print_media_templates' ); |
| 25 | 20 | } |
| 26 | 21 | |
| 27 | 22 | /** |
diff --git wp-admin/includes/media.php wp-admin/includes/media.php
index 0e5f40d..1ad3c0d 100644
|
|
|
function media_buttons($editor_id = 'content') { |
| 381 | 381 | wp_enqueue_style( 'media-views' ); |
| 382 | 382 | wp_plupload_default_settings(); |
| 383 | 383 | add_action( 'admin_footer', 'wp_print_media_templates' ); |
| | 384 | add_action( 'wp_footer', 'wp_print_media_templates' ); |
| 384 | 385 | |
| 385 | 386 | $context = apply_filters('media_buttons_context', __('Upload/Insert %s')); |
| 386 | 387 | |