@@ 121-125 (lines=5) @@ | ||
118 | ||
119 | $tracking_answers = array(); |
|
120 | ||
121 | if ( isset( $_REQUEST['personal'] ) && is_string( $_REQUEST['personal'] ) ) { |
|
122 | $value = 'true' === $_REQUEST['personal'] ? true : false; |
|
123 | $data['site-type-personal'] = $value; |
|
124 | $tracking_answers['personal'] = $value; |
|
125 | } |
|
126 | ||
127 | if ( isset( $_REQUEST['business'] ) && is_string( $_REQUEST['business'] ) ) { |
|
128 | $value = 'true' === $_REQUEST['business'] ? true : false; |
|
@@ 127-131 (lines=5) @@ | ||
124 | $tracking_answers['personal'] = $value; |
|
125 | } |
|
126 | ||
127 | if ( isset( $_REQUEST['business'] ) && is_string( $_REQUEST['business'] ) ) { |
|
128 | $value = 'true' === $_REQUEST['business'] ? true : false; |
|
129 | $data['site-type-business'] = $value; |
|
130 | $tracking_answers['business'] = $value; |
|
131 | } |
|
132 | ||
133 | if ( isset( $_REQUEST['store'] ) && is_string( $_REQUEST['store'] ) ) { |
|
134 | $value = 'true' === $_REQUEST['store'] ? true : false; |
|
@@ 133-137 (lines=5) @@ | ||
130 | $tracking_answers['business'] = $value; |
|
131 | } |
|
132 | ||
133 | if ( isset( $_REQUEST['store'] ) && is_string( $_REQUEST['store'] ) ) { |
|
134 | $value = 'true' === $_REQUEST['store'] ? true : false; |
|
135 | $data['site-type-store'] = $value; |
|
136 | $tracking_answers['store'] = $value; |
|
137 | } |
|
138 | ||
139 | if ( isset( $_REQUEST['other'] ) && is_string( $_REQUEST['other'] ) ) { |
|
140 | $value = 'true' === $_REQUEST['other'] ? true : false; |
|
@@ 139-143 (lines=5) @@ | ||
136 | $tracking_answers['store'] = $value; |
|
137 | } |
|
138 | ||
139 | if ( isset( $_REQUEST['other'] ) && is_string( $_REQUEST['other'] ) ) { |
|
140 | $value = 'true' === $_REQUEST['other'] ? true : false; |
|
141 | $data['site-type-other'] = $value; |
|
142 | $tracking_answers['other'] = $value; |
|
143 | } |
|
144 | ||
145 | Jetpack_Recommendations::update_recommendations_data( $data ); |
|
146 | Jetpack_Options::update_option( 'recommendations_step', 'banner-completed' ); |