Plugin Directory

Changeset 999856


Ignore:
Timestamp:
10/01/2014 02:30:58 PM (11 years ago)
Author:
buildcreate
Message:

Fixed issue with WooCommerce plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • agreeable/trunk/agreeable.php

    r999206 r999856  
    44Plugin URI: http://wordpress.org/extend/plugins/agreeable
    55Description: Add a required "Agree to terms" checkbox to login and/or register forms.
    6 Version: 1.3.9
     6Version: 1.3.9.1
    77Author: kraftpress
    88Author URI: http://kraftpress.it
     
    232232
    233233        $woocommerce_keys   =   array ( "woocommerce_shop_page_id" ,
    234             "woocommerce_terms_page_id" ,
    235             "woocommerce_cart_page_id" ,
     234
    236235            "woocommerce_checkout_page_id" ,
    237             "woocommerce_pay_page_id" ,
    238             "woocommerce_thanks_page_id" ,
    239             "woocommerce_myaccount_page_id" ,
    240             "woocommerce_edit_address_page_id" ,
    241             "woocommerce_view_order_page_id" ,
    242             "woocommerce_change_password_page_id" ,
    243             "woocommerce_logout_page_id" ,
    244             "woocommerce_lost_password_page_id" ) ;
     236
     237            "woocommerce_myaccount_page_id"
     238
     239) ;
    245240        foreach ( $woocommerce_keys as $wc_page_id ) {
    246241            if ( get_the_ID () == get_option ( $wc_page_id , 0 ) ) {
     
    339334        }
    340335       
    341         if(!$this->is_woocommerce_page() || $this->is_login_page()) {
     336        if(!$this->is_woocommerce_page()) {
    342337
    343338            echo '<div style="clear: both; padding: .25em 0;" id="terms-accept" class="terms-form">';
Note: See TracChangeset for help on using the changeset viewer.