Changeset 22486
- Timestamp:
- 11/09/2012 04:40:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22485 r22486 391 391 $context = apply_filters('media_buttons_context', __('Upload/Insert %s')); 392 392 393 $img = '<span class="wp-media-buttons-icon"></span> ';394 395 echo '<a href="#" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . ' Add Media</a>';393 $img = '<span class="wp-media-buttons-icon"></span> '; 394 395 echo '<a href="#" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . __( 'Add Media' ) . '</a>'; 396 396 397 397 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>';
Note: See TracChangeset
for help on using the changeset viewer.