]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/thickbox/thickbox.js
WordPress 4.3
[autoinstalls/wordpress.git] / wp-includes / js / thickbox / thickbox.js
index 09c8a993a159241f4f5cf6058677a272ddc4483a..60a9eb77a58a24243dbc86d0ff26d1cbf5aff1a7 100644 (file)
@@ -231,7 +231,9 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
                                        jQuery("#TB_load").remove();
                                        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
+                                       var load_url = url;
+                                       load_url += -1 === url.indexOf('?') ? '?' : '&';
+                                       jQuery("#TB_ajaxContent").load(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");