Skip to content

Commit 381e3b1

Browse files
committed
Update since statements
1 parent 214f953 commit 381e3b1

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

includes/class-mailchimp-form-submission.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Class Mailchimp_Form_Submission
1515
*
16-
* @since x.x.x
16+
* @since 1.8.0
1717
*/
1818
class Mailchimp_Form_Submission {
1919

@@ -504,7 +504,7 @@ protected function validate_form_submission() {
504504
/**
505505
* Filter to allow for custom validation of the form submission.
506506
*
507-
* @since x.x.x
507+
* @since 1.8.0
508508
* @param bool $is_valid True if valid, false if invalid, return WP_Error to provide error message.
509509
* @param array $post_data The $_POST data.
510510
*/

includes/mailchimp-deprecated-functions.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/**
1919
* Prepare the merge fields body for the API request.
2020
*
21-
* @deprecated x.x.x
21+
* @deprecated 1.8.0
2222
* @param array $merge_fields Merge fields.
2323
* @return stdClass|WP_Error
2424
*/
2525
function mailchimp_sf_merge_submit( $merge_fields ) {
26-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::prepare_merge_fields_body()' );
26+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::prepare_merge_fields_body()' );
2727

2828
$form_submission = new Mailchimp_Form_Submission();
2929
return $form_submission->prepare_merge_fields_body( $merge_fields );
@@ -32,12 +32,12 @@ function mailchimp_sf_merge_submit( $merge_fields ) {
3232
/**
3333
* Prepare the interest groups body for the API request.
3434
*
35-
* @deprecated x.x.x
35+
* @deprecated 1.8.0
3636
* @param array $interest_groups Interest groups.
3737
* @return stdClass
3838
*/
3939
function mailchimp_sf_groups_submit( $interest_groups ) {
40-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::prepare_groups_body()' );
40+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::prepare_groups_body()' );
4141

4242
$form_submission = new Mailchimp_Form_Submission();
4343
return $form_submission->prepare_groups_body( $interest_groups );
@@ -46,11 +46,11 @@ function mailchimp_sf_groups_submit( $interest_groups ) {
4646
/**
4747
* Set all groups to false
4848
*
49-
* @deprecated x.x.x
49+
* @deprecated 1.8.0
5050
* @return StdClass
5151
*/
5252
function mailchimp_sf_set_all_groups_to_false() {
53-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::set_all_groups_to_false()' );
53+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::set_all_groups_to_false()' );
5454

5555
$interest_groups = get_option( 'mc_interest_groups' );
5656
$form_submission = new Mailchimp_Form_Submission();
@@ -60,11 +60,11 @@ function mailchimp_sf_set_all_groups_to_false() {
6060
/**
6161
* Get signup form URL.
6262
*
63-
* @deprecated x.x.x
63+
* @deprecated 1.8.0
6464
* @return string
6565
*/
6666
function mailchimp_sf_signup_form_url() {
67-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::get_signup_form_url()' );
67+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::get_signup_form_url()' );
6868

6969
$list_id = get_option( 'mc_list_id' );
7070
$form_submission = new Mailchimp_Form_Submission();
@@ -78,12 +78,12 @@ function mailchimp_sf_signup_form_url() {
7878
* This sets a global message, that is then used in the widget
7979
* output to retrieve and display that message.
8080
*
81-
* @deprecated x.x.x
81+
* @deprecated 1.8.0
8282
*
8383
* @return bool
8484
*/
8585
function mailchimp_sf_signup_submit() {
86-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::handle_form_submission()' );
86+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::handle_form_submission()' );
8787

8888
$form_submission = new Mailchimp_Form_Submission();
8989
$response = $form_submission->handle_form_submission();
@@ -102,11 +102,13 @@ function mailchimp_sf_signup_submit() {
102102
/**
103103
* Remove empty merge fields from the request body.
104104
*
105+
* @deprecated 1.8.0
106+
*
105107
* @param object $merge Merge fields request body.
106108
* @return object The modified merge fields request body.
107109
*/
108110
function mailchimp_sf_merge_remove_empty( $merge ) {
109-
_deprecated_function( __FUNCTION__, 'x.x.x', 'Mailchimp_Form_Submission::remove_empty_merge_fields()' );
111+
_deprecated_function( __FUNCTION__, '1.8.0', 'Mailchimp_Form_Submission::remove_empty_merge_fields()' );
110112

111113
$form_submission = new Mailchimp_Form_Submission();
112114
return $form_submission->remove_empty_merge_fields( $merge );

0 commit comments

Comments
 (0)