Plugin Directory

Changeset 3288204


Ignore:
Timestamp:
05/06/2025 06:39:58 AM (11 months ago)
Author:
hossain88
Message:

Resolved all conflicts and deleted old tags

Location:
default-quantity-for-woocommerce
Files:
38 added
16 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • default-quantity-for-woocommerce/trunk/composer.json

    r2938583 r3288204  
    66    "sort-packages": true,
    77    "allow-plugins": {
    8       "dealerdirect/phpcodesniffer-composer-installer": true
    98    }
    109  },
    1110  "require-dev": {
    12     "dealerdirect/phpcodesniffer-composer-installer": "*",
    13     "phpcompatibility/phpcompatibility-wp": "*",
    14     "wp-coding-standards/wpcs": "^2"
    1511  },
    1612  "autoload": {
  • default-quantity-for-woocommerce/trunk/default-quantity-for-woocommerce.php

    r2938815 r3288204  
    1111 * Plugin URI:        https://wordpress.org/plugins/default-quantity-for-woocommerce
    1212 * Description:       Discover the simplest method to establish default quantities for your WooCommerce store effortlessly.
    13  * Version:           2.0.2
     13 * Version:           2.0.4
    1414 * Author:            Mohiuddin Abdul Kader
    1515 * Author URI:        https://github.com/beyond88
     
    1818 * Text Domain:       default-quantity-for-woocommerce
    1919 * Domain Path:       /languages
    20  * Requires PHP:      7.2
    21  * Requires at least: 5.0
    22  * Tested up to:      6.2
     20 * Requires Plugins: woocommerce
     21 * Requires PHP:      7.4
     22 * Requires at least: 5.9
     23 * Tested up to:      6.6.2
    2324 *
    24  * WC requires at least: 5.0
    25  * WC tested up to:   7.8.2
     25 * WC requires at least: 8.0.0
     26 * WC tested up to: 9.3.3
    2627 * License: GNU General Public License v3.0
    2728 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
    2829 */
    2930
    30 if ( ! defined( 'ABSPATH' ) ) {
    31     exit;
    32 }
     31defined( 'ABSPATH' ) || exit;
    3332
    3433require_once __DIR__ . '/vendor/autoload.php';
     34
    3535/**
    3636 * The main plugin class.
     
    4343     * @var string
    4444     */
    45     const VERSION = '2.0.2';
     45    const VERSION = '2.0.4';
    4646
    4747    /**
    4848     * Class constructor.
    4949     */
    50     private function __construct() {
     50    public function __construct() {
    5151        // REMOVE THIS AFTER DEV
    5252        error_reporting( E_ALL ^ E_DEPRECATED );
    53 
    5453        $this->define_constants();
    55 
    5654        register_activation_hook( DQFWC_FILE, [ $this, 'activate' ] );
    57 
    5855        add_action( 'plugins_loaded', [ $this, 'init_plugin' ] );
     56       
     57        // Declare HPOS compatibility early
     58        add_action( 'before_woocommerce_init', function() {
     59            if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
     60                \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     61            }
     62        } );
    5963    }
    6064
     
    8690        define( 'DQFWC_ASSETS', DQFWC_URL . '/assets' );
    8791        define( 'DQFWC_BASENAME', plugin_basename( __FILE__ ) );
    88         define( 'DQFWC_PLUGIN_NAME', 'Default quantity for WooCommerce' );
    89         define( 'DQFWC_MIN_WC_VERSION', '3.1' );
    90         define( 'DQFWC_MINIMUM_PHP_VERSION', '5.6.0' );
    91         define( 'DQFWC_MINIMUM_WP_VERSION', '4.4' );
    92         define( 'DQFWC_MINIMUM_WC_VERSION', '3.1' );
     92        define( 'DQFWC_PLUGIN_NAME', 'Default Quantity for WooCommerce' );
     93        define( 'DQFWC_MINIMUM_PHP_VERSION', '7.2' );
     94        define( 'DQFWC_MINIMUM_WP_VERSION', '5.9' );
     95        define( 'DQFWC_MINIMUM_WC_VERSION', '8.0' );
    9396    }
    9497
     
    99102     */
    100103    public function init_plugin() {
     104        // Remove the old compatibility declaration
     105        // The new one is added in the constructor with before_woocommerce_init hook
     106
    101107        new Mak\DefaultQuantityForWoocommerce\Assets();
    102 
    103         if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
    104             new Mak\DefaultQuantityForWoocommerce\Ajax();
    105         }
    106 
    107         if ( is_admin() ) {
    108             new Mak\DefaultQuantityForWoocommerce\Admin();
    109         }
    110 
     108        new Mak\DefaultQuantityForWoocommerce\Admin();
    111109        new Mak\DefaultQuantityForWoocommerce\Frontend();
    112         new Mak\DefaultQuantityForWoocommerce\API();
    113110    }
    114111
  • default-quantity-for-woocommerce/trunk/includes/Admin/Settings.php

    r2938583 r3288204  
    157157                'custom_attributes' => [
    158158                    'step' => '1',
    159                     'min'  => '1',
     159                    'min'  => '0',
    160160                ],
    161161            ]
  • default-quantity-for-woocommerce/trunk/readme.txt

    r3094290 r3288204  
    44Tags: default, quantity, default quantity, woocommerce quantity, minimum quantity
    55Requires at least: 5.0
    6 Tested up to: 6.5.3
     6Tested up to: 6.8
    77WC requires at least: 5.0
    8 WC tested up to: 8.9.1
    9 Requires PHP: 7.2
    10 Stable tag: 2.0.3
     8WC tested up to: 9.8
     9Requires PHP: 7.4
     10Stable tag: 2.0.4
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
    74 = 1.0.0 =
    75 Initial version released
     74= 2.0.4 =
     75* Fixed 0 value save issue
     76
     77= 2.0.3 =
     78* Tested on WordPress 6.5.3 and WooCommerce 8.9.1
     79
     80= 2.0.2 =
     81Fix function missing
     82
     83= 2.0.1 =
     84Tested on WC 7.8.2 and update require PHP version
     85
     86= 2.0.0 =
     87Tested on 6.2 and added composer
     88
     89= 1.0.3 =
     90Tested on latest WordPress and WooCommerce
     91
     92= 1.0.2 =
     93Fix missing admin directory
    7694
    7795= 1.0.1 =
    7896Fix fatal error
    7997
    80 = 1.0.2 =
    81 Fix missing admin directory
     98= 1.0.0 =
     99Initial version released
    82100
    83 = 1.0.3 =
    84 Tested on latest WordPress and WooCommerce
    85101
    86 = 2.0.0 =
    87 Tested on 6.2 and added composer
    88102
    89 = 2.0.1 =
    90 Tested on WC 7.8.2 and update require PHP version
    91103
    92 = 2.0.2 =
    93 Fix function missing
    94104
    95 = 2.0.3 =
    96 * Tested on WordPress 6.5.3 and WooCommerce 8.9.1
     105
     106
     107
     108
     109
     110
     111
     112
     113
  • default-quantity-for-woocommerce/trunk/vendor/composer/autoload_classmap.php

    r2938583 r3288204  
    88return array(
    99    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    10     'Mak\\DefaultQuantityForWoocommerce\\API' => $baseDir . '/includes/API.php',
    1110    'Mak\\DefaultQuantityForWoocommerce\\Admin' => $baseDir . '/includes/Admin.php',
    1211    'Mak\\DefaultQuantityForWoocommerce\\Admin\\PluginMeta' => $baseDir . '/includes/Admin/PluginMeta.php',
    1312    'Mak\\DefaultQuantityForWoocommerce\\Admin\\Settings' => $baseDir . '/includes/Admin/Settings.php',
    14     'Mak\\DefaultQuantityForWoocommerce\\Ajax' => $baseDir . '/includes/Ajax.php',
    1513    'Mak\\DefaultQuantityForWoocommerce\\Assets' => $baseDir . '/includes/Assets.php',
    1614    'Mak\\DefaultQuantityForWoocommerce\\Frontend' => $baseDir . '/includes/Frontend.php',
    1715    'Mak\\DefaultQuantityForWoocommerce\\Frontend\\Storefront' => $baseDir . '/includes/Frontend/Storefront.php',
    18     'Mak\\DefaultQuantityForWoocommerce\\Helpers' => $baseDir . '/includes/Helpers.php',
    1916    'Mak\\DefaultQuantityForWoocommerce\\Installer' => $baseDir . '/includes/Installer.php',
    2017    'Mak\\DefaultQuantityForWoocommerce\\Traits\\Singleton' => $baseDir . '/includes/Traits/Singleton.php',
  • default-quantity-for-woocommerce/trunk/vendor/composer/autoload_psr4.php

    r2938583 r3288204  
    77
    88return array(
    9     'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),
    109    'Mak\\DefaultQuantityForWoocommerce\\' => array($baseDir . '/includes'),
    1110);
  • default-quantity-for-woocommerce/trunk/vendor/composer/autoload_static.php

    r2938583 r3288204  
    1212
    1313    public static $prefixLengthsPsr4 = array (
    14         'P' =>
    15         array (
    16             'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 57,
    17         ),
    1814        'M' =>
    1915        array (
     
    2319
    2420    public static $prefixDirsPsr4 = array (
    25         'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>
    26         array (
    27             0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src',
    28         ),
    2921        'Mak\\DefaultQuantityForWoocommerce\\' =>
    3022        array (
     
    3527    public static $classMap = array (
    3628        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    37         'Mak\\DefaultQuantityForWoocommerce\\API' => __DIR__ . '/../..' . '/includes/API.php',
    3829        'Mak\\DefaultQuantityForWoocommerce\\Admin' => __DIR__ . '/../..' . '/includes/Admin.php',
    3930        'Mak\\DefaultQuantityForWoocommerce\\Admin\\PluginMeta' => __DIR__ . '/../..' . '/includes/Admin/PluginMeta.php',
    4031        'Mak\\DefaultQuantityForWoocommerce\\Admin\\Settings' => __DIR__ . '/../..' . '/includes/Admin/Settings.php',
    41         'Mak\\DefaultQuantityForWoocommerce\\Ajax' => __DIR__ . '/../..' . '/includes/Ajax.php',
    4232        'Mak\\DefaultQuantityForWoocommerce\\Assets' => __DIR__ . '/../..' . '/includes/Assets.php',
    4333        'Mak\\DefaultQuantityForWoocommerce\\Frontend' => __DIR__ . '/../..' . '/includes/Frontend.php',
    4434        'Mak\\DefaultQuantityForWoocommerce\\Frontend\\Storefront' => __DIR__ . '/../..' . '/includes/Frontend/Storefront.php',
    45         'Mak\\DefaultQuantityForWoocommerce\\Helpers' => __DIR__ . '/../..' . '/includes/Helpers.php',
    4635        'Mak\\DefaultQuantityForWoocommerce\\Installer' => __DIR__ . '/../..' . '/includes/Installer.php',
    4736        'Mak\\DefaultQuantityForWoocommerce\\Traits\\Singleton' => __DIR__ . '/../..' . '/includes/Traits/Singleton.php',
Note: See TracChangeset for help on using the changeset viewer.