WordPress.org

Make WordPress Core

Changeset 18918


Ignore:
Timestamp:
10/07/11 19:12:55 (3 years ago)
Author:
azaozz
Message:

Fix prepending $editor_id to the Add Media link, see #17578

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r18917 r18918  
    379379    $img = '<img src="' . esc_url( admin_url( 'images/media-button.png?ver=20111005' ) ) . '" width="15" height="15" />'; 
    380380 
    381     echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media" id="$editor_id-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>'; 
     381    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>'; 
    382382} 
    383383add_action( 'media_buttons', 'media_buttons' ); 
Note: See TracChangeset for help on using the changeset viewer.