Merge pull request #25477 from woocommerce/fix/25475

Added @version flag in updated notice functions
This commit is contained in:
Rodrigo Primo 2020-01-24 10:39:11 -03:00 committed by GitHub
commit 99d957dd2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,7 @@ function wc_has_notice( $message, $notice_type = 'success' ) {
* Add and store a notice.
*
* @since 2.1
* @version 3.9.0
* @param string $message The text to display in the notice.
* @param string $notice_type Optional. The name of the notice type - either error, success or notice.
* @param array $data Optional notice data.
@ -171,6 +172,7 @@ function wc_print_notices( $return = false ) {
* Print a single notice immediately.
*
* @since 2.1
* @version 3.9.0
* @param string $message The text to display in the notice.
* @param string $notice_type Optional. The singular name of the notice type - either error, success or notice.
* @param array $data Optional notice data. @since 3.9.0.
@ -200,6 +202,7 @@ function wc_print_notice( $message, $notice_type = 'success', $data = array() )
* Returns all queued notices, optionally filtered by a notice type.
*
* @since 2.1
* @version 3.9.0
* @param string $notice_type Optional. The singular name of the notice type - either error, success or notice.
* @return array[]
*/