Updates to 7.7.0

This commit is contained in:
WooCommerce
2025-07-10 10:19:11 +00:00
parent c0994caaed
commit 8d2f68f6e7
128 changed files with 2152 additions and 1395 deletions

View File

@@ -21,10 +21,11 @@ if ( ! defined( 'ABSPATH' ) ) {
* in some cases, like WC_Subscriptions_Product::is_purchasable() and WC_Product_Subscription_Variation::is_purchasable(), both
* called within WC_Cart::get_cart_from_session(), which is run before query vars are setup.
*
* @return 2.0.13
* @return bool
**/
function wcs_is_order_received_page() {
return ( false !== strpos( $_SERVER['REQUEST_URI'], 'order-received' ) );
}
// @phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash
$request_uri = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( $_SERVER['REQUEST_URI'] ) : '';
return ( false !== strpos( $request_uri, 'order-received' ) );
}