chore: update version to 1.0.2 and define SITI_DELIVERY_TIME_NOTICES_FILE constant
Some checks failed
Build & Release Plugin / release (push) Failing after 16s
Some checks failed
Build & Release Plugin / release (push) Failing after 16s
This commit is contained in:
@@ -25,7 +25,7 @@ final class SitiDeliveryTimeNotice {
|
||||
public static function enqueue_assets(): void {
|
||||
wp_enqueue_script(
|
||||
'lb-levertijden',
|
||||
plugins_url('assets/js/levertijden.js', __FILE__),
|
||||
plugins_url('assets/js/levertijden.js', SITI_DELIVERY_TIME_NOTICES_FILE),
|
||||
['jquery'],
|
||||
'1.0.2',
|
||||
true
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* Plugin Name: Siti Delivery Time Notices
|
||||
* Plugin URI: https://plugins.robert.ooo/plugin/
|
||||
* Description: A plugin to show delivery time notices on WooCommerce products.
|
||||
* Version: 1.0.1
|
||||
* Version: 1.0.2
|
||||
* Requires at least: 5.2
|
||||
* Requires PHP: 7.2
|
||||
* Author: Roberto Guagliardo | SitiWeb
|
||||
@@ -26,6 +26,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
|
||||
define('SITI_DELIVERY_TIME_NOTICES_SLUG', 'siti-delivery-time-notices' );
|
||||
|
||||
if ( ! defined( 'SITI_DELIVERY_TIME_NOTICES_FILE' ) ) {
|
||||
define( 'SITI_DELIVERY_TIME_NOTICES_FILE', __FILE__ );
|
||||
}
|
||||
|
||||
if ( ! defined( 'SITI_DELIVERY_TIME_NOTICES_VERSION' ) ) {
|
||||
$plugin_data = get_file_data(
|
||||
__FILE__,
|
||||
@@ -50,4 +54,4 @@ $updater->initialize();
|
||||
|
||||
require_once plugin_dir_path( __FILE__ ) . 'includes/SitiDeliveryTimeNotice.php';
|
||||
|
||||
SitiDeliveryTimeNotice::init();
|
||||
SitiDeliveryTimeNotice::init();
|
||||
|
||||
Reference in New Issue
Block a user