Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 9d18117a9458931be59fda25fe8b5f20ad7f8b61 1 parent 3d0ffe6
markjaquith authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-admin/includes/media.php
2  wp-admin/includes/media.php
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.