Plugin Directory

Changeset 1830445


Ignore:
Timestamp:
02/27/2018 09:59:05 PM (8 years ago)
Author:
Kuuak
Message:

v1.0.3

Location:
woo-default-attributes
Files:
4 edited
3 copied

Legend:

Unmodified
Added
Removed
  • woo-default-attributes/tags/1.0.3/README.txt

    r1817103 r1830445  
    44Requires at least: 4.4
    55Tested up to: 4.9.4
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77Requires at least WooCommerce: 2.5
    8 Tested up to WooCommerce: 3.3.1
     8Tested up to WooCommerce: 3.3.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919to add manually the attributes, and remembering the same order for each new product.
    2020
    21 **Tested with WooCommerce version 3.3.1**
     21**Tested with WooCommerce version 3.3.3**
    2222
    2323== Installation ==
     
    4848== Changelog ==
    4949
     50= 1.0.3 =
     51* Fix a 500 server error on ajax request. Thanks @aminta, @walpap and @zluke for the bug report
     52* Do no init the plugin if WooCommerce is not enabled. Thanks @adryyy for the pull request
     53
    5054= 1.0.2 =
    5155* Tested plugin with WordPress 4.9.4 and WooCommerce 3.3.1
  • woo-default-attributes/tags/1.0.3/admin/class-wdat-admin.php

    r1812170 r1830445  
    9494        public function get_post_metadata( $value, $object_id, $meta_key ) {
    9595
    96             if ( '_product_attributes' == $meta_key && is_admin() ) {
     96            if ( '_product_attributes' == $meta_key && is_admin() && function_exists('get_current_screen') ) {
    9797
    9898                $screen = get_current_screen();
  • woo-default-attributes/tags/1.0.3/woo-default-attributes.php

    r1817098 r1830445  
    44 * Description:     Define default attributes to be automatically added in WooCommerce new product page.
    55 * Author:              Kuuak
    6  * Version:             1.0.2
     6 * Version:             1.0.3
    77 * Author URI:      https://profiles.wordpress.org/kuuak
    88 * License:             GPL-2.0+
     
    135135    }
    136136}
    137 
     137if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
    138138new Woo_Default_Attributes();
     139}
  • woo-default-attributes/trunk/README.txt

    r1817103 r1830445  
    44Requires at least: 4.4
    55Tested up to: 4.9.4
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77Requires at least WooCommerce: 2.5
    8 Tested up to WooCommerce: 3.3.1
     8Tested up to WooCommerce: 3.3.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919to add manually the attributes, and remembering the same order for each new product.
    2020
    21 **Tested with WooCommerce version 3.3.1**
     21**Tested with WooCommerce version 3.3.3**
    2222
    2323== Installation ==
     
    4848== Changelog ==
    4949
     50= 1.0.3 =
     51* Fix a 500 server error on ajax request. Thanks @aminta, @walpap and @zluke for the bug report
     52* Do no init the plugin if WooCommerce is not enabled. Thanks @adryyy for the pull request
     53
    5054= 1.0.2 =
    5155* Tested plugin with WordPress 4.9.4 and WooCommerce 3.3.1
  • woo-default-attributes/trunk/admin/class-wdat-admin.php

    r1812170 r1830445  
    9494        public function get_post_metadata( $value, $object_id, $meta_key ) {
    9595
    96             if ( '_product_attributes' == $meta_key && is_admin() ) {
     96            if ( '_product_attributes' == $meta_key && is_admin() && function_exists('get_current_screen') ) {
    9797
    9898                $screen = get_current_screen();
  • woo-default-attributes/trunk/woo-default-attributes.php

    r1817098 r1830445  
    44 * Description:     Define default attributes to be automatically added in WooCommerce new product page.
    55 * Author:              Kuuak
    6  * Version:             1.0.2
     6 * Version:             1.0.3
    77 * Author URI:      https://profiles.wordpress.org/kuuak
    88 * License:             GPL-2.0+
     
    135135    }
    136136}
    137 
     137if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
    138138new Woo_Default_Attributes();
     139}
Note: See TracChangeset for help on using the changeset viewer.