Skip to content

Commit

Permalink
Ensure compatibility of HPOS support with PHP 7.4 (#27)
Browse files Browse the repository at this point in the history
* Bump plugin version

* Ensure compatibility of HPOS support with PHP 7.4
  • Loading branch information
mahdiyazdani committed Jan 21, 2023
1 parent 6a7025f commit 8dbae48
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions languages/woo-store-vacation.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL-3.0.
msgid ""
msgstr ""
"Project-Id-Version: Woo Store Vacation 1.6.2\n"
"Project-Id-Version: Woo Store Vacation 1.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-store-vacation\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-01-20T09:37:58+00:00\n"
"POT-Creation-Date: 2023-01-21T16:33:26+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.7.1\n"
"X-Domain: woo-store-vacation\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mypreview/woo-store-vacation",
"version": "1.6.2",
"version": "1.6.3",
"private": true,
"description": "Pause your store with scheduling your vacation dates.",
"homepage": "https://github.com/mypreview/woo-store-vacation#readme",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://mypreview.one/woo-store-vacation
Requires at least: 5.3
Tested up to: 6.1
Requires PHP: 7.4
Stable tag: 1.6.2
Stable tag: 1.6.3
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -139,6 +139,9 @@ Currently, the key features offered by the premium (paid) version of the plugin
5. Displaying a notice at the top of shop archive pages

== Changelog ==
= 1.6.3 =
* Ensure compatibility of HPOS support with PHP 7.4

= 1.6.2 =
* Add support for HPOS (High-Performance Order Storage)
* Compatibility with WooCommerce 7.3
Expand Down
7 changes: 3 additions & 4 deletions woo-store-vacation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Plugin Name: Woo Store Vacation
* Plugin URI: https://mypreview.one/woo-store-vacation
* Description: Pause your store operations for a set of fixed dates during your vacation and display a user-friendly notice on your shop.
* Version: 1.6.2
* Version: 1.6.3
* Author: MyPreview
* Author URI: https://mypreview.one/woo-store-vacation
* Requires at least: 5.3
Expand Down Expand Up @@ -59,7 +59,6 @@
define( 'WOO_STORE_VACATION_FILE', __FILE__ );
define( 'WOO_STORE_VACATION_PLUGIN_BASENAME', plugin_basename( WOO_STORE_VACATION_FILE ) );
define( 'WOO_STORE_VACATION_DIR_URL', plugin_dir_url( WOO_STORE_VACATION_FILE ) );
define( 'WOO_STORE_VACATION_DIR_PATH', plugin_dir_path( WOO_STORE_VACATION_FILE ) );

if ( ! class_exists( 'Woo_Store_Vacation' ) ) :

Expand Down Expand Up @@ -114,7 +113,7 @@ private function init() {
add_action( 'admin_notices', array( self::instance(), 'admin_notices' ) );
add_action( 'wp_ajax_woo_store_vacation_dismiss_upsell', array( self::instance(), 'dismiss_upsell' ) );
add_action( 'wp_ajax_woo_store_vacation_dismiss_rate', array( self::instance(), 'dismiss_rate' ) );
add_action( 'before_woocommerce_init', array( self::instance(), 'add_compatibility' ) );
add_action( 'before_woocommerce_init', array( self::instance(), 'add_compatibility' ), 99 );
add_action( 'admin_menu', array( self::instance(), 'add_submenu_page' ), 999 );
add_action( 'admin_init', array( self::instance(), 'register_settings' ) );
add_action( 'admin_enqueue_scripts', array( self::instance(), 'admin_enqueue' ) );
Expand Down Expand Up @@ -250,7 +249,7 @@ public function dismiss_rate() {
*/
public function add_compatibility() {
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', WOO_STORE_VACATION_DIR_PATH, true );
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', WOO_STORE_VACATION_FILE, true );
}
}

Expand Down

0 comments on commit 8dbae48

Please sign in to comment.