Changeset 3087634
- Timestamp:
- 05/16/2024 09:57:40 AM (19 months ago)
- Location:
- woocommerce-legacy-rest-api/trunk
- Files:
-
- 3 edited
-
includes/class-wc-legacy-rest-api-plugin.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
woocommerce-legacy-rest-api.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-legacy-rest-api/trunk/includes/class-wc-legacy-rest-api-plugin.php
r3087088 r3087634 109 109 private static function maybe_remove_hpos_incompatibility_admin_notice() { 110 110 if ( WC_Admin_Notices::has_notice( 'legacy_rest_api_is_incompatible_with_hpos' ) && ! self::hpos_is_enabled() ) { 111 self::remove_notice( 'legacy_rest_api_is_incompatible_with_hpos' );111 WC_Admin_Notices::remove_notice( 'legacy_rest_api_is_incompatible_with_hpos' ); 112 112 } 113 113 } … … 127 127 128 128 if ( WC_Admin_Notices::has_notice( 'legacy_rest_api_is_incompatible_with_hpos' ) ) { 129 self::remove_notice( 'legacy_rest_api_is_incompatible_with_hpos' );129 WC_Admin_Notices::remove_notice( 'legacy_rest_api_is_incompatible_with_hpos' ); 130 130 } 131 131 } … … 169 169 */ 170 170 private static function user_has_dismissed_admin_notice( $notice_id ) { 171 return '' !== get_user_meta( get_current_user_id(), "dismissed_${notice_id}_notice", true ); 171 if ( method_exists( 'WC_Admin_Notices', 'user_has_dismissed_notice' ) ) { 172 return WC_Admin_Notices::user_has_dismissed_notice( $notice_id ); 173 } else { 174 return (bool) get_user_meta( get_current_user_id(), "dismissed_{$notice_id}_notice", true ); 175 } 172 176 } 173 177 } -
woocommerce-legacy-rest-api/trunk/readme.txt
r3087088 r3087634 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 36 36 First version, replicates the WooCommerce Legacy REST API v3.1.0 present in WooCommerce 8.3. 37 37 38 39 38 = 1.0.1 2024-01-08 = 40 39 … … 42 41 - Add sanitization for data received via query string arguments and the $_SERVER array. 43 42 43 = 1.0.2 2024-05-01 = 44 44 45 = 1.0.2 2024-05-01 45 - Add a dismissable admin notice indicating that the Legacy REST API is not compatible with HPOS. 46 - The notice will appear if the orders table is (or has been) selected as the orders data store in the WooCommerce features settings page, and will disappear when that ceases to be true. Once the notice is dismissed it will never appear again. 46 47 47 Add a dismissable admin notice indicating that the Legacy REST API is not compatible with HPOS. 48 The notice will appear if the orders table is (or has been) selected as the orders data store in the WooCommerce features settings page, 49 and will disappear when that ceases to be true. Once the notice is dismissed it will never appear again. 48 = 1.0.3 2024-05-15 = 50 49 50 - Fix a bug introduced in 1.0.2 that caused a fatal error when checking if HPOS is enabled. 51 51 52 = 1.0. 3 2024-05-1552 = 1.0.4 2024-05-16 = 53 53 54 Fix a bug introduced in 1.0.2 that caused a fatal error when checking if HPOS is enabled.54 - Correct a problem in which the attempted removal of admin notices (warning of HPOS incompatibility) could lead to a fatal error during plugin deactivation. -
woocommerce-legacy-rest-api/trunk/woocommerce-legacy-rest-api.php
r3087088 r3087634 4 4 * Plugin URI: https://github.com/woocommerce/woocommerce-legacy-rest-api 5 5 * Description: The legacy WooCommerce REST API, which used to be part of WooCommerce itself but is removed as of WooCommerce 9.0. 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Author: WooCommerce 8 8 * Author URI: https://woocommerce.com
Note: See TracChangeset
for help on using the changeset viewer.