From 6ed847a7b9fa1f30442281d0e50bfc81aa6f799a Mon Sep 17 00:00:00 2001 From: roykho Date: Tue, 13 Apr 2021 19:53:00 -0700 Subject: [PATCH] Deprecate method instead of removing it --- includes/admin/class-wc-admin-notices.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/includes/admin/class-wc-admin-notices.php b/includes/admin/class-wc-admin-notices.php index 70c76ee6120..b543c698472 100644 --- a/includes/admin/class-wc-admin-notices.php +++ b/includes/admin/class-wc-admin-notices.php @@ -64,6 +64,19 @@ class WC_Admin_Notices { } } + /** + * Parses query to create nonces when available. + * + * @deprecated 5.4.0 + * @param object $response The WP_REST_Response we're working with. + * @return object $response The prepared WP_REST_Response object. + */ + public static function prepare_note_with_nonce( $response ) { + wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '5.4.0' ); + + return $response; + } + /** * Store notices to DB */