WordPress.org

Make WordPress Core

Changeset 16646 for branches/3.0


Ignore:
Timestamp:
12/01/2010 04:34:20 PM (8 years ago)
Author:
markjaquith
Message:

Prevent media upload links from being clicked before lightbox is ready to handle them. fixes #15621

File:
1 edited

Legend:

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

    r15291 r16646  
    380380
    381381function _media_button($title, $icon, $type) {
    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>";
     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' onclick='return false;' /></a>";
    383383}
    384384
Note: See TracChangeset for help on using the changeset viewer.