Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  wp-admin/includes/media.php
2  wp-admin/includes/media.php
@@ -379,7 +379,7 @@ function media_buttons() {
379 379 add_action( 'media_buttons', 'media_buttons' );
380 380
381 381 function _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>";
383 383 }
384 384
385 385 function get_upload_iframe_src($type) {

0 comments on commit 9d18117

Please sign in to comment.
Something went wrong with that request. Please try again.