Deprecate method instead of removing it

This commit is contained in:
roykho 2021-04-13 19:53:00 -07:00
parent e1c6c540d7
commit 6ed847a7b9
No known key found for this signature in database
GPG Key ID: 7B36C0EA25795714
1 changed files with 13 additions and 0 deletions

View File

@ -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
*/