| @@ -1,9 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | -use Elementor\Plugin; | |
| 5 | - | |
| 6 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 5 | exit; // Exit if accessed directly. |
| 8 | 6 | } |
| 9 | 7 | |
| @@ -71,25 +69,8 @@ | ||
| 71 | 69 | return admin_url( 'admin.php?page=' . static::PAGE_ID ); |
| 72 | 70 | } |
| 73 | 71 | |
| 74 | 72 | /** |
| 75 | - * Get settings tab URL. | |
| 76 | - * | |
| 77 | - * Retrieve the URL of a specific tab in the settings page. | |
| 78 | - * | |
| 79 | - * @since 3.23.0 | |
| 80 | - * @access public | |
| 81 | - * @static | |
| 82 | - * | |
| 83 | - * @param string $tab_id The ID of the settings tab. | |
| 84 | - * | |
| 85 | - * @return string Settings tab URL. | |
| 86 | - */ | |
| 87 | - final public static function get_settings_tab_url( $tab_id ): string { | |
| 88 | - return admin_url( "admin.php?page=elementor-settings#tab-$tab_id" ); | |
| 89 | - } | |
| 90 | - | |
| 91 | - /** | |
| 92 | 73 | * Settings page constructor. |
| 93 | 74 | * |
| 94 | 75 | * Initializing Elementor settings page. |
| 95 | 76 | * |
| @@ -378,9 +359,9 @@ | ||
| 378 | 359 | |
| 379 | 360 | echo '</div>'; |
| 380 | 361 | } |
| 381 | 362 | |
| 382 | - submit_button( __( 'Save Changes', 'elementor' ), 'primary', 'submit', true, [ 'data-id' => 'elementor-settings-button-save-changes' ] ); | |
| 363 | + submit_button(); | |
| 383 | 364 | ?> |
| 384 | 365 | </form> |
| 385 | 366 | </div><!-- /.wrap --> |
| 386 | 367 | <?php |
| @@ -388,9 +369,9 @@ | ||
| 388 | 369 | |
| 389 | 370 | public function get_usage_fields() { |
| 390 | 371 | return [ |
| 391 | 372 | 'allow_tracking' => [ |
| 392 | - 'label' => esc_html__( 'Data Sharing', 'elementor' ), | |
| 373 | + 'label' => esc_html__( 'Usage Data Sharing', 'elementor' ), | |
| 393 | 374 | 'field_args' => [ |
| 394 | 375 | 'type' => 'checkbox', |
| 395 | 376 | 'value' => 'yes', |
| 396 | 377 | 'default' => '', |
| @@ -395,9 +376,9 @@ | ||
| 395 | 376 | 'value' => 'yes', |
| 396 | 377 | 'default' => '', |
| 397 | 378 | 'sub_desc' => sprintf( |
| 398 | 379 | '%1$s <a href="https://go.elementor.com/usage-data-tracking/" target="_blank">%2$s</a>', |
| 399 | - esc_html__( 'Become a super contributor by helping us understand how you use our service to enhance your experience and improve our product.', 'elementor' ), | |
| 380 | + esc_html__( 'Become a super contributor by opting in to share non-sensitive plugin data and to receive periodic email updates from us.', 'elementor' ), | |
| 400 | 381 | esc_html__( 'Learn more', 'elementor' ) |
| 401 | 382 | ), |
| 402 | 383 | ], |
| 403 | 384 | 'setting_args' => [ __NAMESPACE__ . '\Tracker', 'check_for_settings_optin' ], |
| @@ -437,9 +418,9 @@ | ||
| 437 | 418 | |
| 438 | 419 | /** |
| 439 | 420 | * Should it render the settings tab |
| 440 | 421 | * |
| 441 | - * @param array $tab | |
| 422 | + * @param $tab | |
| 442 | 423 | * |
| 443 | 424 | * @return bool |
| 444 | 425 | */ |
| 445 | 426 | private function should_render_tab( $tab ) { |
| @@ -449,9 +430,9 @@ | ||
| 449 | 430 | |
| 450 | 431 | /** |
| 451 | 432 | * Should it render the settings section |
| 452 | 433 | * |
| 453 | - * @param array $section | |
| 434 | + * @param $section | |
| 454 | 435 | * |
| 455 | 436 | * Since 3.19.0 |
| 456 | 437 | * |
| 457 | 438 | * @return bool |