Ticket #21363: 21363.patch
| File 21363.patch, 2.2 KB (added by c3mdigital, 10 months ago) |
|---|
-
wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js
1 1 /* 2 2 * imgAreaSelect jQuery plugin 3 * version 0.9. 83 * version 0.9.9 4 4 * 5 5 * Copyright (c) 2008-2011 Michal Wojciechowski (odyniec.net) 6 6 * … … 706 706 setSelection(selX(x1), selY(y1), selX(x1), selY(y1)); 707 707 708 708 /* If this is an API call, callback functions should not be triggered */ 709 if (! this instanceof $.imgAreaSelect) {709 if (!(this instanceof $.imgAreaSelect)) { 710 710 options.onSelectChange(img, getSelection()); 711 711 options.onSelectEnd(img, getSelection()); 712 712 } … … 866 866 * properties 867 867 */ 868 868 function styleOptions($elem, props) { 869 for ( option in props)869 for (var option in props) 870 870 if (options[option] !== undefined) 871 871 $elem.css(props[option], options[option]); 872 872 } … … 1143 1143 * attribute seems to trigger it. The check is for version 7 and above to 1144 1144 * accommodate for MSIE 9 running in compatibility mode. 1145 1145 */ 1146 if ( $.browser.msie && $.browser.version >= 7)1146 if (!imgLoaded && $.browser.msie && $.browser.version >= 7) 1147 1147 img.src = img.src; 1148 1148 }; 1149 1149 -
wp-includes/script-loader.php
252 252 253 253 $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23'); 254 254 255 $scripts->add( 'imgareaselect', "/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), '0.9. 8', 1 );255 $scripts->add( 'imgareaselect', "/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), '0.9.9', 1 ); 256 256 257 257 $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 ); 258 258 did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array(
