@@ -23,7 +23,6 @@ public function __construct() {
2323 'default_options ' => array (
2424 'enabled ' => 'on ' ,
2525 'vip_features ' => $ this ->is_vip_site () ? 'on ' : 'off ' ,
26- 'analytics ' => $ this ->is_vip_site ( true ) ? 'on ' : 'off ' ,
2726 ),
2827 'configure_page_cb ' => 'print_default_settings ' ,
2928 'autoload ' => true ,
@@ -161,7 +160,6 @@ public function settings_page_controller() {
161160 */
162161 public function register_settings () {
163162 add_settings_section ( $ this ->module ->options_group_name . '_general ' , false , '__return_false ' , $ this ->module ->options_group_name );
164- add_settings_field ( 'analytics ' , __ ( 'Turn on analytics ' , 'edit-flow ' ), array ( $ this , 'settings_analytics_option ' ), $ this ->module ->options_group_name , $ this ->module ->options_group_name . '_general ' );
165163 add_settings_field ( 'vip_features ' , __ ( 'Turn on WordPress VIP features ' , 'edit-flow ' ), array ( $ this , 'settings_vip_features_option ' ), $ this ->module ->options_group_name , $ this ->module ->options_group_name . '_general ' );
166164 }
167165
@@ -258,20 +256,6 @@ public function settings_vip_features_option() {
258256 echo '</select> ' ;
259257 }
260258
261- public function settings_analytics_option () {
262- $ options = array (
263- 'off ' => __ ( 'Disabled ' , 'edit-flow ' ),
264- 'on ' => __ ( 'Enabled ' , 'edit-flow ' ),
265- );
266- echo '<select id="analytics" name=" ' . esc_attr ( $ this ->module ->options_group_name ) . '[analytics]"> ' ;
267- foreach ( $ options as $ value => $ label ) {
268- echo '<option value=" ' . esc_attr ( $ value ) . '" ' ;
269- echo selected ( $ this ->module ->options ->analytics , $ value );
270- echo '> ' . esc_html ( $ label ) . '</option> ' ;
271- }
272- echo '</select> ' ;
273- }
274-
275259 public function print_default_footer ( $ current_module ) {
276260 ?>
277261 <?php if ( 'settings ' == $ current_module ->slug ) : ?>
0 commit comments