Changeset 22828
- Timestamp:
- 11/22/2012 01:23:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22817 r22828 388 388 ) ); 389 389 390 $context = apply_filters('media_buttons_context', __('Upload/Insert %s'));390 // $context = apply_filters('media_buttons_context', __('Upload/Insert %s')); 391 391 392 392 $img = '<span class="wp-media-buttons-icon"></span> '; … … 394 394 echo '<a href="#" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . __( 'Add Media' ) . '</a>'; 395 395 396 echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media" id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>';396 // echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media" id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>'; 397 397 } 398 398 add_action( 'media_buttons', 'media_buttons' );
Note: See TracChangeset
for help on using the changeset viewer.