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

git-svn-id: https://develop.svn.wordpress.org/trunk@16669 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2010-12-01 20:41:47 +00:00
parent c6d9ed1f35
commit c9b4b18cf9
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ function media_buttons() {
add_action( 'media_buttons', 'media_buttons' );
function _media_button($title, $icon, $type) {
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>";
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>";
}
function get_upload_iframe_src($type) {