WordPress.org

Make WordPress Core

Ticket #12977: media.php.diff

File media.php.diff, 669 bytes (added by wahgnube, 4 years ago)
  • media.php

     
    379379add_action( 'media_buttons', 'media_buttons' ); 
    380380 
    381381function _media_button($title, $icon, $type) { 
    382         return "<a href='" . get_upload_iframe_src($type) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' /></a>"; 
     382        return "<a href='" . esc_url(get_upload_iframe_src($type)) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' /></a>"; 
    383383} 
    384384 
    385385function get_upload_iframe_src($type) {