Make WordPress Core

Changeset 16669


Ignore:
Timestamp:
12/01/2010 08:41:47 PM (14 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
  • trunk/wp-admin/includes/media.php

    r16660 r16669  
    384384
    385385function _media_button($title, $icon, $type) {
    386     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>";
     386    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>";
    387387}
    388388
Note: See TracChangeset for help on using the changeset viewer.