← All changes
|
admin/section/class-convertkit-admin-section-restrict-content.php
+0
-34
3.3.2
→
3.4.3
View file →
| @@ -165,22 +165,8 @@ | ||
| 165 | 165 | ), |
| 166 | 166 | ) |
| 167 | 167 | ); |
| 168 | 168 | |
| 169 | - add_settings_field( | |
| 170 | - 'require_tag_login', | |
| 171 | - __( 'Require Login', 'convertkit' ), | |
| 172 | - array( $this, 'require_tag_login_callback' ), | |
| 173 | - $this->settings_key, | |
| 174 | - $this->name . '-tags', | |
| 175 | - array( | |
| 176 | - 'name' => 'require_tag_login', | |
| 177 | - 'label_for' => 'require_tag_login', | |
| 178 | - 'label' => __( 'When checked, subscribers are sent a code in an email to login after being subscribed and tagged.', 'convertkit' ), | |
| 179 | - 'description' => '', | |
| 180 | - ) | |
| 181 | - ); | |
| 182 | - | |
| 183 | 169 | // All. |
| 184 | 170 | add_settings_field( |
| 185 | 171 | 'subscribe_button_label', |
| 186 | 172 | __( 'Subscribe Button Label', 'convertkit' ), |
| @@ -446,28 +432,8 @@ | ||
| 446 | 432 | $this->output_checkbox_field( |
| 447 | 433 | $args['name'], |
| 448 | 434 | 'on', |
| 449 | 435 | $this->settings->permit_crawlers(), |
| 450 | - $args['label'], | |
| 451 | - $args['description'] | |
| 452 | - ); | |
| 453 | - | |
| 454 | - } | |
| 455 | - | |
| 456 | - /** | |
| 457 | - * Renders the input for the Require Login setting. | |
| 458 | - * | |
| 459 | - * @since 2.7.2 | |
| 460 | - * | |
| 461 | - * @param array $args Setting field arguments (name,description). | |
| 462 | - */ | |
| 463 | - public function require_tag_login_callback( $args ) { | |
| 464 | - | |
| 465 | - // Output field. | |
| 466 | - $this->output_checkbox_field( | |
| 467 | - $args['name'], | |
| 468 | - 'on', | |
| 469 | - $this->settings->require_tag_login(), | |
| 470 | 436 | $args['label'], |
| 471 | 437 | $args['description'] |
| 472 | 438 | ); |
| 473 | 439 | |