Changeset 22489
- Timestamp:
- 11/09/2012 04:57:25 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r22446 r22489 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 -
trunk/wp-admin/includes/media.php
r22486 r22489 384 384 */ 385 385 function media_buttons($editor_id = 'content') { 386 wp_enqueue_script( 'media-upload' ); 387 wp_enqueue_style( 'media-views' ); 388 wp_plupload_default_settings(); 389 add_action( 'admin_footer', 'wp_print_media_templates' ); 386 wp_enqueue_media(); 390 387 391 388 $context = apply_filters('media_buttons_context', __('Upload/Insert %s')); -
trunk/wp-includes/media.php
r22488 r22489 1292 1292 1293 1293 /** 1294 * Enqueues all scripts, styles, settings, and templates necessary to use 1295 * all media JS APIs. 1296 * 1297 * @since 3.5.0 1298 */ 1299 function wp_enqueue_media() { 1300 wp_enqueue_script( 'media-upload' ); 1301 wp_enqueue_style( 'media-views' ); 1302 wp_plupload_default_settings(); 1303 add_action( 'admin_footer', 'wp_print_media_templates' ); 1304 add_action( 'wp_footer', 'wp_print_media_templates' ); 1305 } 1306 1307 /** 1294 1308 * Prints the templates used in the media manager. 1295 1309 *
Note: See TracChangeset
for help on using the changeset viewer.