Plugin Directory

Changeset 3063206

Timestamp:
04/03/2024 05:25:20 AM (4 months ago)
Author:
tychesoftwares
Message:

Update to version 2.4.1 from GitHub

Location:
custom-order-statuses-woocommerce
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • custom-order-statuses-woocommerce/tags/2.4.1/class-alg-wc-custom-order-statuses.php

    r3028534 r3063206  
    4848         * @since 1.0.0
    4949         */
    50         public $version = '2.4.0';
     50        public $version = '2.4.';
    5151
    5252        /**
  • custom-order-statuses-woocommerce/tags/2.4.1/custom-order-statuses-for-woocommerce.php

    r3028534 r3063206  
    44 * Plugin URI: https://www.tychesoftwares.com/store/premium-plugins/custom-order-status-woocommerce/
    55 * Description: Add custom order statuses to WooCommerce.
    6  * Version: 2.4.0
     6 * Version: 2.4.
    77 * Author: Tyche Softwares
    88 * Author URI: https://www.tychesoftwares.com/
     
    1010 * Domain Path: /langs
    1111 * Copyright: © 2021 Tyche Softwares
    12  * WC tested up to: 8.5.2
     12 * WC tested up to: 8.
    1313 * License: GNU General Public License v3.0
    1414 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
  • custom-order-statuses-woocommerce/tags/2.4.1/includes/class-alg-wc-custom-order-statuses-core.php

    r2933676 r3063206  
    535535        public function register_custom_post_statuses() {
    536536            foreach ( $this->alg_orders_custom_statuses_array as $slug => $label ) {
     537
     538
    537539                register_post_status(
    538540                    $slug,
    539541                    array(
    540                         'label'                     => $label,
     542                        'label'                     => $label,
    541543                        'public'                    => true,
    542544                        'exclude_from_search'       => false,
     
    544546                        'show_in_admin_status_list' => true,
    545547                        // translators: Count of orders with the custom status.
    546                         'label_count'               => _n_noop( "$label <span class='count'>(%s)</span>", "$label <span class='count'>(%s)</span>" ), // phpcs:ignore
     548                        'label_count'               => _n_noop( "$label <span class='count'>(%s)</span>" ), // phpcs:ignore
    547549                    )
    548550                );
  • custom-order-statuses-woocommerce/tags/2.4.1/includes/component/plugin-tracking/class-tyche-plugin-tracking.php

    r3028534 r3063206  
    149149        public function dismiss_notice() {
    150150            $nonce = $_POST['tracking_notice'];//phpcs:ignore
    151             if ( ! wp_verify_nonce( $nonce, 'tracking_notice' ) ) {
    152                 return;
    153             }
    154             update_option( $this->plugin_short_name . '_allow_tracking', 'dismissed' );
    155             $this->send_tracking_data();
     151            if ( is_user_logged_in() && current_user_can( 'manage_options' ) && wp_verify_nonce( $nonce, 'tracking_notice' ) ) {
     152                update_option( $this->plugin_short_name . '_allow_tracking', 'dismissed' );
     153                $this->send_tracking_data();
     154            }
    156155        }
    157156
  • custom-order-statuses-woocommerce/tags/2.4.1/readme.txt

    r3028534 r3063206  
    33Tags: woocommerce, order status, woo commerce, custom status
    44Requires at least: 4.4
    5 Tested up to: 6.4.2
     5Tested up to: 6.
    66Stable tag: trunk
    77Requires PHP: 7.3
     
    8080
    8181== Changelog ==
     82
     83
     84
     85
     86
     87
    8288
    8389= 2.4.0 - 30/01/2024 =
  • custom-order-statuses-woocommerce/trunk/class-alg-wc-custom-order-statuses.php

    r3028534 r3063206  
    4848         * @since 1.0.0
    4949         */
    50         public $version = '2.4.0';
     50        public $version = '2.4.';
    5151
    5252        /**
  • custom-order-statuses-woocommerce/trunk/custom-order-statuses-for-woocommerce.php

    r3028534 r3063206  
    44 * Plugin URI: https://www.tychesoftwares.com/store/premium-plugins/custom-order-status-woocommerce/
    55 * Description: Add custom order statuses to WooCommerce.
    6  * Version: 2.4.0
     6 * Version: 2.4.
    77 * Author: Tyche Softwares
    88 * Author URI: https://www.tychesoftwares.com/
     
    1010 * Domain Path: /langs
    1111 * Copyright: © 2021 Tyche Softwares
    12  * WC tested up to: 8.5.2
     12 * WC tested up to: 8.
    1313 * License: GNU General Public License v3.0
    1414 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
  • custom-order-statuses-woocommerce/trunk/includes/class-alg-wc-custom-order-statuses-core.php

    r2933676 r3063206  
    535535        public function register_custom_post_statuses() {
    536536            foreach ( $this->alg_orders_custom_statuses_array as $slug => $label ) {
     537
     538
    537539                register_post_status(
    538540                    $slug,
    539541                    array(
    540                         'label'                     => $label,
     542                        'label'                     => $label,
    541543                        'public'                    => true,
    542544                        'exclude_from_search'       => false,
     
    544546                        'show_in_admin_status_list' => true,
    545547                        // translators: Count of orders with the custom status.
    546                         'label_count'               => _n_noop( "$label <span class='count'>(%s)</span>", "$label <span class='count'>(%s)</span>" ), // phpcs:ignore
     548                        'label_count'               => _n_noop( "$label <span class='count'>(%s)</span>" ), // phpcs:ignore
    547549                    )
    548550                );
  • custom-order-statuses-woocommerce/trunk/includes/component/plugin-tracking/class-tyche-plugin-tracking.php

    r3028534 r3063206  
    149149        public function dismiss_notice() {
    150150            $nonce = $_POST['tracking_notice'];//phpcs:ignore
    151             if ( ! wp_verify_nonce( $nonce, 'tracking_notice' ) ) {
    152                 return;
    153             }
    154             update_option( $this->plugin_short_name . '_allow_tracking', 'dismissed' );
    155             $this->send_tracking_data();
     151            if ( is_user_logged_in() && current_user_can( 'manage_options' ) && wp_verify_nonce( $nonce, 'tracking_notice' ) ) {
     152                update_option( $this->plugin_short_name . '_allow_tracking', 'dismissed' );
     153                $this->send_tracking_data();
     154            }
    156155        }
    157156
  • custom-order-statuses-woocommerce/trunk/readme.txt

    r3028534 r3063206  
    33Tags: woocommerce, order status, woo commerce, custom status
    44Requires at least: 4.4
    5 Tested up to: 6.4.2
     5Tested up to: 6.
    66Stable tag: trunk
    77Requires PHP: 7.3
     
    8080
    8181== Changelog ==
     82
     83
     84
     85
     86
     87
    8288
    8389= 2.4.0 - 30/01/2024 =
Note: See TracChangeset for help on using the changeset viewer.