Plugin Directory

Changeset 1492156


Ignore:
Timestamp:
09/08/2016 01:47:02 AM (10 years ago)
Author:
layotte
Message:

Taggin 1.35.10.2

Location:
ithemes-exchange
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ithemes-exchange/tags/1.35.10.2/history.txt

    r1489137 r1492156  
    130413041.35.10.1 - Elise Alley, Timothy Jacobs
    13051305    Fix: Issue with the Super Widget not rendering when 'the_content' is applied before the main content area.
     13061.35.10.2 - Elise Alley, Timothy Jacobs
     1307    Fix: Issue with the Super Widget not rendering. Improve detection of "loop_start"
  • ithemes-exchange/tags/1.35.10.2/init.php

    r1489137 r1492156  
    22/*
    33 * Plugin Name: iThemes Exchange
    4  * Version: 1.35.10.1
     4 * Version: 1.35.10.2
    55 * Text Domain: it-l10n-ithemes-exchange
    66 * Description: Easily sell your digital goods with iThemes Exchange, simple ecommerce for WordPress
     
    2525class IT_Exchange {
    2626
    27     var $_version         = '1.35.10.1';
     27    var $_version         = '1.35.10.2';
    2828    var $_wp_minimum      = '3.5';
    2929    var $_slug            = 'ithemes-exchange';
  • ithemes-exchange/tags/1.35.10.2/lang/ithemes-exchange.pot

    r1489137 r1492156  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: iThemes Exchange 1.35.10.1\n"
     5"Project-Id-Version: iThemes Exchange 1.35.10.2\n"
    66"Report-Msgid-Bugs-To: http://ithemes.com/support/\n"
    7 "POT-Creation-Date: 2016-09-02 19:48:04+00:00\n"
     7"POT-Creation-Date: 2016-09-07 20:14:34+00:00\n"
    88"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
    99"MIME-Version: 1.0\n"
     
    28842884msgstr ""
    28852885
    2886 #. #-#-#-#-#  ithemes-exchange.pot (iThemes Exchange 1.35.10.1)  #-#-#-#-#
     2886#. #-#-#-#-#  ithemes-exchange.pot (iThemes Exchange 1.35.10.2)  #-#-#-#-#
    28872887#. Plugin Name of the plugin/theme
    28882888#: core-addons/admin/basic-reporting/init.php:21
     
    72547254msgstr ""
    72557255
    7256 #: lib/super-widget/class.super-widget.php:58
     7256#: lib/super-widget/class.super-widget.php:61
    72577257msgid "iThemes Exchange Super Widget"
    72587258msgstr ""
    72597259
    7260 #: lib/super-widget/class.super-widget.php:60
     7260#: lib/super-widget/class.super-widget.php:63
    72617261msgid ""
    72627262"Handles Buy Now, Add to Cart, Cart Summary, Registration, Log in, and "
     
    72647264msgstr ""
    72657265
    7266 #: lib/super-widget/class.super-widget.php:217
     7266#: lib/super-widget/class.super-widget.php:221
    72677267msgid "Processing"
    72687268msgstr ""
    72697269
    7270 #: lib/super-widget/class.super-widget.php:218
     7270#: lib/super-widget/class.super-widget.php:222
    72717271msgid "Processing... "
    72727272msgstr ""
    72737273
    7274 #: lib/super-widget/class.super-widget.php:274
     7274#: lib/super-widget/class.super-widget.php:278
    72757275msgid "There are no options for this widget."
    72767276msgstr ""
  • ithemes-exchange/tags/1.35.10.2/lib/super-widget/class.super-widget.php

    r1489137 r1492156  
    4848     */
    4949    private $rendered = false;
     50
     51    /** @var bool */
     52    private $did_loop_start = false;
    5053
    5154    /**
     
    7073            add_action( 'dynamic_sidebar_before', array( $this, 'maybe_remove_sw_from_sidebar' ) );
    7174            add_action( 'dynamic_sidebar_after', array( $this, 'mark_out_of_sidebar' ) );
     75            add_action('loop_start', array( $this, 'mark_loop_did_start' ) );
    7276        }
    7377    }
     
    149153
    150154                <?php if ( $remove_others ) : ?>
    151                     jQuery('.it-exchange-super-widget[data-might-remove="1"]').remove();
     155                jQuery('.it-exchange-super-widget[data-might-remove="1"]').remove();
    152156                <?php endif; ?>
    153157
     
    239243        }
    240244
    241         if ( $this->in_sidebar || did_action( 'loop_start' ) ) {
     245        if ( $this->in_sidebar || $this->did_loop_start ) {
    242246            $this->rendered = true;
    243247        }
     
    460464        $this->in_sidebar = false;
    461465    }
     466
     467    /**
     468     * Mark that the loop did start.
     469     *
     470     * @since 1.35.10.2
     471     *
     472     * @param \WP_Query $query
     473     */
     474    public function mark_loop_did_start( WP_Query $query ) {
     475        if ( $query->is_main_query() ) {
     476            $this->did_loop_start = true;
     477        }
     478    }
    462479}
    463480
  • ithemes-exchange/tags/1.35.10.2/readme.txt

    r1489137 r1492156  
    44Requires at least: 3.7
    55Tested up to: 4.6
    6 Stable tag: 1.35.10.1
     6Stable tag: 1.35.10.2
    77License: GPLv2 or later
    88
     
    8888
    8989== Changelog ==
     90
     91= 1.35.10.2 =
     92* Fix: Issue with the Super Widget not rendering. Improve detection of "loop_start"
    9093
    9194= 1.35.10.1 =
  • ithemes-exchange/trunk/history.txt

    r1489137 r1492156  
    130413041.35.10.1 - Elise Alley, Timothy Jacobs
    13051305    Fix: Issue with the Super Widget not rendering when 'the_content' is applied before the main content area.
     13061.35.10.2 - Elise Alley, Timothy Jacobs
     1307    Fix: Issue with the Super Widget not rendering. Improve detection of "loop_start"
  • ithemes-exchange/trunk/init.php

    r1489137 r1492156  
    22/*
    33 * Plugin Name: iThemes Exchange
    4  * Version: 1.35.10.1
     4 * Version: 1.35.10.2
    55 * Text Domain: it-l10n-ithemes-exchange
    66 * Description: Easily sell your digital goods with iThemes Exchange, simple ecommerce for WordPress
     
    2525class IT_Exchange {
    2626
    27     var $_version         = '1.35.10.1';
     27    var $_version         = '1.35.10.2';
    2828    var $_wp_minimum      = '3.5';
    2929    var $_slug            = 'ithemes-exchange';
  • ithemes-exchange/trunk/lang/ithemes-exchange.pot

    r1489137 r1492156  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: iThemes Exchange 1.35.10.1\n"
     5"Project-Id-Version: iThemes Exchange 1.35.10.2\n"
    66"Report-Msgid-Bugs-To: http://ithemes.com/support/\n"
    7 "POT-Creation-Date: 2016-09-02 19:48:04+00:00\n"
     7"POT-Creation-Date: 2016-09-07 20:14:34+00:00\n"
    88"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
    99"MIME-Version: 1.0\n"
     
    28842884msgstr ""
    28852885
    2886 #. #-#-#-#-#  ithemes-exchange.pot (iThemes Exchange 1.35.10.1)  #-#-#-#-#
     2886#. #-#-#-#-#  ithemes-exchange.pot (iThemes Exchange 1.35.10.2)  #-#-#-#-#
    28872887#. Plugin Name of the plugin/theme
    28882888#: core-addons/admin/basic-reporting/init.php:21
     
    72547254msgstr ""
    72557255
    7256 #: lib/super-widget/class.super-widget.php:58
     7256#: lib/super-widget/class.super-widget.php:61
    72577257msgid "iThemes Exchange Super Widget"
    72587258msgstr ""
    72597259
    7260 #: lib/super-widget/class.super-widget.php:60
     7260#: lib/super-widget/class.super-widget.php:63
    72617261msgid ""
    72627262"Handles Buy Now, Add to Cart, Cart Summary, Registration, Log in, and "
     
    72647264msgstr ""
    72657265
    7266 #: lib/super-widget/class.super-widget.php:217
     7266#: lib/super-widget/class.super-widget.php:221
    72677267msgid "Processing"
    72687268msgstr ""
    72697269
    7270 #: lib/super-widget/class.super-widget.php:218
     7270#: lib/super-widget/class.super-widget.php:222
    72717271msgid "Processing... "
    72727272msgstr ""
    72737273
    7274 #: lib/super-widget/class.super-widget.php:274
     7274#: lib/super-widget/class.super-widget.php:278
    72757275msgid "There are no options for this widget."
    72767276msgstr ""
  • ithemes-exchange/trunk/lib/super-widget/class.super-widget.php

    r1489137 r1492156  
    4848     */
    4949    private $rendered = false;
     50
     51    /** @var bool */
     52    private $did_loop_start = false;
    5053
    5154    /**
     
    7073            add_action( 'dynamic_sidebar_before', array( $this, 'maybe_remove_sw_from_sidebar' ) );
    7174            add_action( 'dynamic_sidebar_after', array( $this, 'mark_out_of_sidebar' ) );
     75            add_action('loop_start', array( $this, 'mark_loop_did_start' ) );
    7276        }
    7377    }
     
    149153
    150154                <?php if ( $remove_others ) : ?>
    151                     jQuery('.it-exchange-super-widget[data-might-remove="1"]').remove();
     155                jQuery('.it-exchange-super-widget[data-might-remove="1"]').remove();
    152156                <?php endif; ?>
    153157
     
    239243        }
    240244
    241         if ( $this->in_sidebar || did_action( 'loop_start' ) ) {
     245        if ( $this->in_sidebar || $this->did_loop_start ) {
    242246            $this->rendered = true;
    243247        }
     
    460464        $this->in_sidebar = false;
    461465    }
     466
     467    /**
     468     * Mark that the loop did start.
     469     *
     470     * @since 1.35.10.2
     471     *
     472     * @param \WP_Query $query
     473     */
     474    public function mark_loop_did_start( WP_Query $query ) {
     475        if ( $query->is_main_query() ) {
     476            $this->did_loop_start = true;
     477        }
     478    }
    462479}
    463480
  • ithemes-exchange/trunk/readme.txt

    r1489137 r1492156  
    44Requires at least: 3.7
    55Tested up to: 4.6
    6 Stable tag: 1.35.10.1
     6Stable tag: 1.35.10.2
    77License: GPLv2 or later
    88
     
    8888
    8989== Changelog ==
     90
     91= 1.35.10.2 =
     92* Fix: Issue with the Super Widget not rendering. Improve detection of "loop_start"
    9093
    9194= 1.35.10.1 =
Note: See TracChangeset for help on using the changeset viewer.