diff --git a/wp-includes/js/thickbox/thickbox.js b/wp-includes/js/thickbox/thickbox.js index 9e08634ad9..9419c5c5c9 100644 --- a/wp-includes/js/thickbox/thickbox.js +++ b/wp-includes/js/thickbox/thickbox.js @@ -182,7 +182,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic tb_position(); jQuery("#TB_load").remove(); jQuery("#TB_ImageOff").click(tb_remove); - jQuery("#TB_window").css({display:"block"}); //for safari using css instead of show + jQuery("#TB_window").css({'visibility':'visible'}); //for safari using css instead of show }; imgPreloader.src = url; @@ -206,7 +206,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic jQuery("#TB_window").append(""); } }else{// not an iframe, ajax - if(jQuery("#TB_window").css("display") != "block"){ + if(jQuery("#TB_window").css("visibility") != "visible"){ if(params['modal'] != "true"){//ajax no modal jQuery("#TB_window").append("
"); }else{//ajax modal @@ -230,19 +230,19 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic }); tb_position(); jQuery("#TB_load").remove(); - jQuery("#TB_window").css({display:"block"}); + jQuery("#TB_window").css({'visibility':'visible'}); }else if(url.indexOf('TB_iframe') != -1){ tb_position(); if(jQuery.browser.safari){//safari needs help because it will not fire iframe onload jQuery("#TB_load").remove(); - jQuery("#TB_window").css({display:"block"}); + jQuery("#TB_window").css({'visibility':'visible'}); } }else{ jQuery("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method tb_position(); jQuery("#TB_load").remove(); tb_init("#TB_ajaxContent a.thickbox"); - jQuery("#TB_window").css({display:"block"}); + jQuery("#TB_window").css({'visibility':'visible'}); }); } diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index d74aaf0ff3..72e4f363a9 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -165,7 +165,7 @@ function wp_default_scripts( &$scripts ) { $scripts->add( 'jquery-hotkeys', "/wp-includes/js/jquery/jquery.hotkeys$suffix.js", array('jquery'), '0.0.2m', 1 ); $scripts->add( 'jquery-table-hotkeys', "/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array('jquery', 'jquery-hotkeys'), '20090102', 1 ); - $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20110528', 1 ); + $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20110930', 1 ); $scripts->add_script_data( 'thickbox', 'thickboxL10n', array( 'next' => __('Next >'), 'prev' => __('< Prev'),