18
18
/**
19
19
* Prepare the merge fields body for the API request.
20
20
*
21
- * @deprecated x.x.x
21
+ * @deprecated 1.8.0
22
22
* @param array $merge_fields Merge fields.
23
23
* @return stdClass|WP_Error
24
24
*/
25
25
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() ' );
27
27
28
28
$ form_submission = new Mailchimp_Form_Submission ();
29
29
return $ form_submission ->prepare_merge_fields_body ( $ merge_fields );
@@ -32,12 +32,12 @@ function mailchimp_sf_merge_submit( $merge_fields ) {
32
32
/**
33
33
* Prepare the interest groups body for the API request.
34
34
*
35
- * @deprecated x.x.x
35
+ * @deprecated 1.8.0
36
36
* @param array $interest_groups Interest groups.
37
37
* @return stdClass
38
38
*/
39
39
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() ' );
41
41
42
42
$ form_submission = new Mailchimp_Form_Submission ();
43
43
return $ form_submission ->prepare_groups_body ( $ interest_groups );
@@ -46,11 +46,11 @@ function mailchimp_sf_groups_submit( $interest_groups ) {
46
46
/**
47
47
* Set all groups to false
48
48
*
49
- * @deprecated x.x.x
49
+ * @deprecated 1.8.0
50
50
* @return StdClass
51
51
*/
52
52
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() ' );
54
54
55
55
$ interest_groups = get_option ( 'mc_interest_groups ' );
56
56
$ form_submission = new Mailchimp_Form_Submission ();
@@ -60,11 +60,11 @@ function mailchimp_sf_set_all_groups_to_false() {
60
60
/**
61
61
* Get signup form URL.
62
62
*
63
- * @deprecated x.x.x
63
+ * @deprecated 1.8.0
64
64
* @return string
65
65
*/
66
66
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() ' );
68
68
69
69
$ list_id = get_option ( 'mc_list_id ' );
70
70
$ form_submission = new Mailchimp_Form_Submission ();
@@ -78,12 +78,12 @@ function mailchimp_sf_signup_form_url() {
78
78
* This sets a global message, that is then used in the widget
79
79
* output to retrieve and display that message.
80
80
*
81
- * @deprecated x.x.x
81
+ * @deprecated 1.8.0
82
82
*
83
83
* @return bool
84
84
*/
85
85
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() ' );
87
87
88
88
$ form_submission = new Mailchimp_Form_Submission ();
89
89
$ response = $ form_submission ->handle_form_submission ();
@@ -102,11 +102,13 @@ function mailchimp_sf_signup_submit() {
102
102
/**
103
103
* Remove empty merge fields from the request body.
104
104
*
105
+ * @deprecated 1.8.0
106
+ *
105
107
* @param object $merge Merge fields request body.
106
108
* @return object The modified merge fields request body.
107
109
*/
108
110
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() ' );
110
112
111
113
$ form_submission = new Mailchimp_Form_Submission ();
112
114
return $ form_submission ->remove_empty_merge_fields ( $ merge );
0 commit comments