WordPress.org

Make WordPress Core

Ticket #21363: 21363.patch

File 21363.patch, 2.2 KB (added by c3mdigital, 6 years ago)

imgAreaSelect jQuery plugin version 0.9.9

  • wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js

     
    11/*
    22 * imgAreaSelect jQuery plugin
    3  * version 0.9.8
     3 * version 0.9.9
    44 *
    55 * Copyright (c) 2008-2011 Michal Wojciechowski (odyniec.net)
    66 *
     
    706706        setSelection(selX(x1), selY(y1), selX(x1), selY(y1));
    707707
    708708        /* If this is an API call, callback functions should not be triggered */
    709         if (!this instanceof $.imgAreaSelect) {
     709        if (!(this instanceof $.imgAreaSelect)) {
    710710            options.onSelectChange(img, getSelection());
    711711            options.onSelectEnd(img, getSelection());
    712712        }
     
    866866     *            properties
    867867     */
    868868    function styleOptions($elem, props) {
    869         for (option in props)
     869        for (var option in props)
    870870            if (options[option] !== undefined)
    871871                $elem.css(props[option], options[option]);
    872872    }
     
    11431143     * attribute seems to trigger it. The check is for version 7 and above to
    11441144     * accommodate for MSIE 9 running in compatibility mode.
    11451145     */
    1146    if ($.browser.msie && $.browser.version >= 7)
     1146   if (!imgLoaded && $.browser.msie && $.browser.version >= 7)
    11471147        img.src = img.src;
    11481148};
    11491149
  • wp-includes/script-loader.php

     
    252252
    253253        $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23');
    254254
    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 );
    256256
    257257        $scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), false, 1 );
    258258        did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array(