Plugin Directory

Changeset 3327958


Ignore:
Timestamp:
07/15/2025 07:03:51 AM (8 months ago)
Author:
sormano
Message:

1.0.5.3

Location:
edd-sale-price
Files:
3 edited
5 copied

Legend:

Unmodified
Added
Removed
  • edd-sale-price/tags/1.0.5.3/edd-sale-price.php

    r3081933 r3327958  
    44 * Plugin URI:      https://jeroensormani.com
    55 * Description:     Put your digital products on sale.
    6  * Version:         1.0.5.2
     6 * Version:         1.0.5.3
    77 * Author:          Jeroen Sormani
    88 * Author URI:      https://jeroensormani.com/
     
    3030     * @var string $version Plugin version number.
    3131     */
    32     public $version = '1.0.5.2';
     32    public $version = '1.0.5.3';
    3333
    3434
  • edd-sale-price/tags/1.0.5.3/includes/admin/class-eddsp-admin-product.php

    r2583685 r3327958  
    2121    public function __construct() {
    2222
     23        // Register post (download type) meta
     24        add_action( 'admin_init', array( $this, 'register_meta' ) );
     25
    2326        // Add simple sale price field
    2427        add_action( 'edd_after_price_field', array( $this, 'simple_sale_price_field' ) );
     
    3841        add_action( 'edd_download_price_option_row', array( $this, 'variable_sale_price_field' ), 1, 3 );
    3942
     43        if ( ! has_filter( 'sanitize_post_meta_edd_sale_price' ) ) {
     44            add_filter( 'sanitize_post_meta_edd_sale_price', array( $this, 'sanitize_price' ), 10, 4 );
     45        }
     46    }
     47
     48    /**
     49     * Register post (download type) meta
     50     *
     51     * @return void
     52     */
     53    public function register_meta() {
    4054
    4155        register_meta(
     
    4660                'sanitize_callback' => array( $this, 'sanitize_price' ),
    4761                'type'              => 'float',
    48                 'description'       => __( 'The sale price of the product.', 'easy-digital-downloads' ),
     62                'description'       => __( 'The sale price of the product.', 'edd-sale-price' ),
    4963                'show_in_rest'      => true,
    5064            )
    5165        );
    5266
    53         if ( ! has_filter( 'sanitize_post_meta_edd_sale_price' ) ) {
    54             add_filter( 'sanitize_post_meta_edd_sale_price', array( $this, 'sanitize_price' ), 10, 4 );
    55         }
    5667    }
    5768
  • edd-sale-price/tags/1.0.5.3/readme.txt

    r3081933 r3327958  
    44Requires at least: 5.0
    55Tested up to: 6.5
    6 Stable tag: 1.0.5.2
     6Stable tag: 1.0.5.3
    77Requires PHP: 7.0
    88License: GPLv3 or later
     
    6161== Changelog ==
    6262
     63= 1.0.5.3 - 07/06/2025 =
     64
     65* [Fix] - Call __() after init
     66
    6367= 1.0.5.2 - 06/05/2024 =
    6468
  • edd-sale-price/trunk/edd-sale-price.php

    r3081933 r3327958  
    44 * Plugin URI:      https://jeroensormani.com
    55 * Description:     Put your digital products on sale.
    6  * Version:         1.0.5.2
     6 * Version:         1.0.5.3
    77 * Author:          Jeroen Sormani
    88 * Author URI:      https://jeroensormani.com/
     
    3030     * @var string $version Plugin version number.
    3131     */
    32     public $version = '1.0.5.2';
     32    public $version = '1.0.5.3';
    3333
    3434
  • edd-sale-price/trunk/includes/admin/class-eddsp-admin-product.php

    r2583685 r3327958  
    2121    public function __construct() {
    2222
     23        // Register post (download type) meta
     24        add_action( 'admin_init', array( $this, 'register_meta' ) );
     25
    2326        // Add simple sale price field
    2427        add_action( 'edd_after_price_field', array( $this, 'simple_sale_price_field' ) );
     
    3841        add_action( 'edd_download_price_option_row', array( $this, 'variable_sale_price_field' ), 1, 3 );
    3942
     43        if ( ! has_filter( 'sanitize_post_meta_edd_sale_price' ) ) {
     44            add_filter( 'sanitize_post_meta_edd_sale_price', array( $this, 'sanitize_price' ), 10, 4 );
     45        }
     46    }
     47
     48    /**
     49     * Register post (download type) meta
     50     *
     51     * @return void
     52     */
     53    public function register_meta() {
    4054
    4155        register_meta(
     
    4660                'sanitize_callback' => array( $this, 'sanitize_price' ),
    4761                'type'              => 'float',
    48                 'description'       => __( 'The sale price of the product.', 'easy-digital-downloads' ),
     62                'description'       => __( 'The sale price of the product.', 'edd-sale-price' ),
    4963                'show_in_rest'      => true,
    5064            )
    5165        );
    5266
    53         if ( ! has_filter( 'sanitize_post_meta_edd_sale_price' ) ) {
    54             add_filter( 'sanitize_post_meta_edd_sale_price', array( $this, 'sanitize_price' ), 10, 4 );
    55         }
    5667    }
    5768
  • edd-sale-price/trunk/readme.txt

    r3081933 r3327958  
    44Requires at least: 5.0
    55Tested up to: 6.5
    6 Stable tag: 1.0.5.2
     6Stable tag: 1.0.5.3
    77Requires PHP: 7.0
    88License: GPLv3 or later
     
    6161== Changelog ==
    6262
     63= 1.0.5.3 - 07/06/2025 =
     64
     65* [Fix] - Call __() after init
     66
    6367= 1.0.5.2 - 06/05/2024 =
    6468
Note: See TracChangeset for help on using the changeset viewer.