Browse files

Prevent media upload links from being clicked before lightbox is read…

…y to handle them. fixes #15621

git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@16646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 3d0ffe6 commit 9d18117a9458931be59fda25fe8b5f20ad7f8b61 markjaquith committed Dec 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-admin/includes/media.php
View
2 wp-admin/includes/media.php
@@ -379,7 +379,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) {

0 comments on commit 9d18117

Please sign in to comment.