1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin */
if ( ! defined( 'WPSEO_VERSION' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit(); }
if ( isset( $_GET['allow_tracking'] ) && check_admin_referer( 'wpseo_activate_tracking', 'nonce' ) ) { WPSEO_Options::set( 'yoast_tracking', ( $_GET['allow_tracking'] === 'yes' ) );
if ( isset( $_SERVER['HTTP_REFERER'] ) ) { wp_safe_redirect( wp_unslash( $_SERVER['HTTP_REFERER'] ), 307 ); exit; } }
$yform = Yoast_Form::get_instance(); $yform->admin_header( true, 'wpseo' );
do_action( 'wpseo_all_admin_notices' );
$tabs = new WPSEO_Option_Tabs( 'dashboard' ); $tabs->add_tab( new WPSEO_Option_Tab( 'dashboard', __( 'Dashboard', 'wordpress-seo' ), [ 'save_button' => false, ] ) ); $tabs->add_tab( new WPSEO_Option_Tab( 'features', __( 'Features', 'wordpress-seo' ) ) ); $tabs->add_tab( new WPSEO_Option_Tab( 'integrations', __( 'Integrations', 'wordpress-seo' ) ) ); $tabs->add_tab( new WPSEO_Option_Tab( 'webmaster-tools', __( 'Webmaster Tools', 'wordpress-seo' ) ) );
do_action( 'wpseo_settings_tabs_dashboard', $tabs );
$tabs->display( $yform );
do_action( 'wpseo_dashboard' );
$yform->admin_footer();
|