Changeset 22699
- Timestamp:
- 11/20/2012 02:35:30 AM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22679 r22699 391 391 392 392 $img = '<span class="wp-media-buttons-icon"></span> '; 393 394 error_log( 'MEDIA_BUTTONS ' . print_r( func_get_args(), true ) ); 393 395 394 396 echo '<a href="#" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . __( 'Add Media' ) . '</a>'; -
trunk/wp-admin/js/media-upload.js
r22672 r22699 435 435 436 436 init: function() { 437 $( '#wpbody').on('click', '.insert-media', function( event ) {437 $(document.body).on('click', '.insert-media', function( event ) { 438 438 var $this = $(this), 439 439 editor = $this.data('editor'), … … 449 449 $this.blur(); 450 450 451 if ( ! editor)451 if ( ! _.isString( editor ) ) 452 452 return; 453 453
Note: See TracChangeset
for help on using the changeset viewer.