Changeset 2972942
- Timestamp:
- 09/29/2023 09:29:42 AM (3 years ago)
- Location:
- woorule
- Files:
-
- 24 edited
- 1 copied
-
tags/3.0.3 (copied) (copied from woorule/trunk)
-
tags/3.0.3/README.txt (modified) (2 diffs)
-
tags/3.0.3/inc/class-productalert-api.php (modified) (2 diffs)
-
tags/3.0.3/inc/class-rulemailer-api.php (modified) (1 diff)
-
tags/3.0.3/inc/class-woorule-alert-shortcode.php (modified) (2 diffs)
-
tags/3.0.3/inc/class-woorule-alert.php (modified) (2 diffs)
-
tags/3.0.3/inc/class-woorule-options.php (modified) (1 diff)
-
tags/3.0.3/inc/class-woorule-order-hooks.php (modified) (1 diff)
-
tags/3.0.3/inc/class-woorule-shortcode.php (modified) (2 diffs)
-
tags/3.0.3/inc/partials/admin-settings.php (modified) (1 diff)
-
tags/3.0.3/index.php (modified) (1 diff)
-
tags/3.0.3/languages/woorule.pot (modified) (1 diff)
-
tags/3.0.3/woorule.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/inc/class-productalert-api.php (modified) (2 diffs)
-
trunk/inc/class-rulemailer-api.php (modified) (1 diff)
-
trunk/inc/class-woorule-alert-shortcode.php (modified) (2 diffs)
-
trunk/inc/class-woorule-alert.php (modified) (2 diffs)
-
trunk/inc/class-woorule-options.php (modified) (1 diff)
-
trunk/inc/class-woorule-order-hooks.php (modified) (1 diff)
-
trunk/inc/class-woorule-shortcode.php (modified) (2 diffs)
-
trunk/inc/partials/admin-settings.php (modified) (1 diff)
-
trunk/index.php (modified) (1 diff)
-
trunk/languages/woorule.pot (modified) (1 diff)
-
trunk/woorule.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woorule/tags/3.0.3/README.txt
r2963165 r2972942 3 3 Tags: rule, woocommerce, newsletter, marketing 4 4 Requires at least: 5.0.0 5 Tested up to: 6.3 5 Tested up to: 6.3.1 6 6 Requires PHP: 5.6+ 7 Stable tag: 3.0. 27 Stable tag: 3.0.3 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/MIT … … 108 108 109 109 For more information, check out our [releases](https://github.com/rulecom/woorule/releases). 110 111 = 3.0.3 = 112 * Added method for wakeup calls required by some plugins 110 113 111 114 = 3.0.2 = -
woorule/tags/3.0.3/inc/class-productalert-api.php
r2790316 r2972942 77 77 array( 78 78 'headers' => array( 79 'Authorization' => 'Bearer ' . Woorule_Options::get_api_key(),79 'Authorization' => 'Bearer ' . self::get_api_key(), 80 80 ), 81 81 ) … … 212 212 return $resp; 213 213 } 214 215 /** 216 * Get API Key. 217 * 218 * @return string 219 */ 220 private static function get_api_key() { 221 $api_key = getenv( 'RULE_API_KEY' ); 222 if ( ! $api_key ) { 223 $api_key = Woorule_Options::get_api_key(); 224 } 225 226 return $api_key; 227 } 214 228 } -
woorule/tags/3.0.3/inc/class-rulemailer-api.php
r2963165 r2972942 22 22 use Woorule_Logging; 23 23 24 const URL = 'https://app.rule.io/api/v2/subscribers?source=woorule&version=3.0. 2';24 const URL = 'https://app.rule.io/api/v2/subscribers?source=woorule&version=3.0.3'; 25 25 26 26 /** -
woorule/tags/3.0.3/inc/class-woorule-alert-shortcode.php
r2790316 r2972942 76 76 ); 77 77 } 78 79 78 } 80 79 … … 111 110 ), 112 111 '', 113 dirname( __FILE__ ). '/../templates/'112 __DIR__ . '/../templates/' 114 113 ); 115 114 -
woorule/tags/3.0.3/inc/class-woorule-alert.php
r2790316 r2972942 184 184 ), 185 185 '', 186 dirname( __FILE__ ). '/../templates/'186 __DIR__ . '/../templates/' 187 187 ); 188 188 } … … 255 255 */ 256 256 public function woocommerce_init() { 257 include_once ( dirname( __FILE__ ) . '/class-woorule-background-alert-queue.php' );257 include_once __DIR__ . '/class-woorule-background-alert-queue.php'; 258 258 259 259 self::$background_process = new Woorule_Background_Alert_Queue(); -
woorule/tags/3.0.3/inc/class-woorule-options.php
r2719394 r2972942 38 38 * @return void 39 39 */ 40 p rotectedfunction __wakeup() {40 public function __wakeup() { 41 41 } 42 42 -
woorule/tags/3.0.3/inc/class-woorule-order-hooks.php
r2719394 r2972942 210 210 switch ( $status_to ) { 211 211 case 'processing': 212 $order_date = date_format( $order->get_date_created(), 'Y-m-d H:i:s' ); 212 $date = $order->get_date_created(); 213 $order_date = date_format( $date ? $date : new \DateTime(), 'Y-m-d H:i:s' ); 213 214 break; 214 215 case 'completed': 215 $order_date = date_format( $order->get_date_completed(), 'Y-m-d H:i:s' ); 216 $date = $order->get_date_completed(); 217 $order_date = date_format( $date ? $date : new \DateTime(), 'Y-m-d H:i:s' ); 216 218 break; 217 219 default: -
woorule/tags/3.0.3/inc/class-woorule-shortcode.php
r2790316 r2972942 43 43 global $post; 44 44 45 if ( has_shortcode( $post->post_content, 'woorule' ) ) {45 if ( $post && has_shortcode( $post->post_content, 'woorule' ) ) { 46 46 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 47 47 … … 70 70 ); 71 71 } 72 73 72 } 74 73 -
woorule/tags/3.0.3/inc/partials/admin-settings.php
r2719394 r2972942 7 7 8 8 // phpcs:disable Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed 9 // phpcs:disable WordPress.WhiteSpace.PrecisionAlignment.Found9 // phpcs:disable Universal.WhiteSpace.PrecisionAlignment.Found 10 10 11 11 defined( 'ABSPATH' ) || exit; -
woorule/tags/3.0.3/index.php
r2637385 r2972942 1 1 <?php 2 -
woorule/tags/3.0.3/languages/woorule.pot
r2963165 r2972942 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooRule 3.0. 2\n"5 "Project-Id-Version: WooRule 3.0.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woorule\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
woorule/tags/3.0.3/woorule.php
r2963165 r2972942 9 9 * Plugin URI: http://github.com/rulecom/woorule 10 10 * Description: Rule integration for WooCommerce 11 * Version: 3.0. 211 * Version: 3.0.3 12 12 * Author: Rule 13 13 * Author URI: http://rule.se … … 16 16 * Domain Path: /languages 17 17 * WC requires at least: 3.0.0 18 * WC tested up to: 8. 0.318 * WC tested up to: 8.1.1 19 19 * 20 20 * @package WooRule 21 21 */ 22 22 23 define( 'WOORULE_VERSION', '3.0. 2' );23 define( 'WOORULE_VERSION', '3.0.3' ); 24 24 define( 'WOORULE_PATH', plugin_dir_path( __FILE__ ) ); 25 25 define( 'WOORULE_URL', plugin_dir_url( __FILE__ ) ); 26 26 27 add_action( 'before_woocommerce_init', function() { 28 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 29 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 30 } 31 } ); 27 add_action( 28 'before_woocommerce_init', 29 function () { 30 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 31 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 32 } 33 } 34 ); 32 35 33 36 require_once WOORULE_PATH . 'inc/class-woorule.php'; -
woorule/trunk/README.txt
r2963165 r2972942 3 3 Tags: rule, woocommerce, newsletter, marketing 4 4 Requires at least: 5.0.0 5 Tested up to: 6.3 5 Tested up to: 6.3.1 6 6 Requires PHP: 5.6+ 7 Stable tag: 3.0. 27 Stable tag: 3.0.3 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/MIT … … 108 108 109 109 For more information, check out our [releases](https://github.com/rulecom/woorule/releases). 110 111 = 3.0.3 = 112 * Added method for wakeup calls required by some plugins 110 113 111 114 = 3.0.2 = -
woorule/trunk/inc/class-productalert-api.php
r2790316 r2972942 77 77 array( 78 78 'headers' => array( 79 'Authorization' => 'Bearer ' . Woorule_Options::get_api_key(),79 'Authorization' => 'Bearer ' . self::get_api_key(), 80 80 ), 81 81 ) … … 212 212 return $resp; 213 213 } 214 215 /** 216 * Get API Key. 217 * 218 * @return string 219 */ 220 private static function get_api_key() { 221 $api_key = getenv( 'RULE_API_KEY' ); 222 if ( ! $api_key ) { 223 $api_key = Woorule_Options::get_api_key(); 224 } 225 226 return $api_key; 227 } 214 228 } -
woorule/trunk/inc/class-rulemailer-api.php
r2963165 r2972942 22 22 use Woorule_Logging; 23 23 24 const URL = 'https://app.rule.io/api/v2/subscribers?source=woorule&version=3.0. 2';24 const URL = 'https://app.rule.io/api/v2/subscribers?source=woorule&version=3.0.3'; 25 25 26 26 /** -
woorule/trunk/inc/class-woorule-alert-shortcode.php
r2790316 r2972942 76 76 ); 77 77 } 78 79 78 } 80 79 … … 111 110 ), 112 111 '', 113 dirname( __FILE__ ). '/../templates/'112 __DIR__ . '/../templates/' 114 113 ); 115 114 -
woorule/trunk/inc/class-woorule-alert.php
r2790316 r2972942 184 184 ), 185 185 '', 186 dirname( __FILE__ ). '/../templates/'186 __DIR__ . '/../templates/' 187 187 ); 188 188 } … … 255 255 */ 256 256 public function woocommerce_init() { 257 include_once ( dirname( __FILE__ ) . '/class-woorule-background-alert-queue.php' );257 include_once __DIR__ . '/class-woorule-background-alert-queue.php'; 258 258 259 259 self::$background_process = new Woorule_Background_Alert_Queue(); -
woorule/trunk/inc/class-woorule-options.php
r2719394 r2972942 38 38 * @return void 39 39 */ 40 p rotectedfunction __wakeup() {40 public function __wakeup() { 41 41 } 42 42 -
woorule/trunk/inc/class-woorule-order-hooks.php
r2719394 r2972942 210 210 switch ( $status_to ) { 211 211 case 'processing': 212 $order_date = date_format( $order->get_date_created(), 'Y-m-d H:i:s' ); 212 $date = $order->get_date_created(); 213 $order_date = date_format( $date ? $date : new \DateTime(), 'Y-m-d H:i:s' ); 213 214 break; 214 215 case 'completed': 215 $order_date = date_format( $order->get_date_completed(), 'Y-m-d H:i:s' ); 216 $date = $order->get_date_completed(); 217 $order_date = date_format( $date ? $date : new \DateTime(), 'Y-m-d H:i:s' ); 216 218 break; 217 219 default: -
woorule/trunk/inc/class-woorule-shortcode.php
r2790316 r2972942 43 43 global $post; 44 44 45 if ( has_shortcode( $post->post_content, 'woorule' ) ) {45 if ( $post && has_shortcode( $post->post_content, 'woorule' ) ) { 46 46 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 47 47 … … 70 70 ); 71 71 } 72 73 72 } 74 73 -
woorule/trunk/inc/partials/admin-settings.php
r2719394 r2972942 7 7 8 8 // phpcs:disable Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed 9 // phpcs:disable WordPress.WhiteSpace.PrecisionAlignment.Found9 // phpcs:disable Universal.WhiteSpace.PrecisionAlignment.Found 10 10 11 11 defined( 'ABSPATH' ) || exit; -
woorule/trunk/index.php
r2637385 r2972942 1 1 <?php 2 -
woorule/trunk/languages/woorule.pot
r2963165 r2972942 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooRule 3.0. 2\n"5 "Project-Id-Version: WooRule 3.0.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woorule\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
woorule/trunk/woorule.php
r2963165 r2972942 9 9 * Plugin URI: http://github.com/rulecom/woorule 10 10 * Description: Rule integration for WooCommerce 11 * Version: 3.0. 211 * Version: 3.0.3 12 12 * Author: Rule 13 13 * Author URI: http://rule.se … … 16 16 * Domain Path: /languages 17 17 * WC requires at least: 3.0.0 18 * WC tested up to: 8. 0.318 * WC tested up to: 8.1.1 19 19 * 20 20 * @package WooRule 21 21 */ 22 22 23 define( 'WOORULE_VERSION', '3.0. 2' );23 define( 'WOORULE_VERSION', '3.0.3' ); 24 24 define( 'WOORULE_PATH', plugin_dir_path( __FILE__ ) ); 25 25 define( 'WOORULE_URL', plugin_dir_url( __FILE__ ) ); 26 26 27 add_action( 'before_woocommerce_init', function() { 28 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 29 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 30 } 31 } ); 27 add_action( 28 'before_woocommerce_init', 29 function () { 30 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 31 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 32 } 33 } 34 ); 32 35 33 36 require_once WOORULE_PATH . 'inc/class-woorule.php';
Note: See TracChangeset
for help on using the changeset viewer.