-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-seo-premium.php
80 lines (70 loc) · 2.68 KB
/
wp-seo-premium.php
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Yoast SEO Plugin.
*
* WPSEO Premium plugin file.
*
* @package WPSEO\Main
* @copyright Copyright (C) 2008-2024, Yoast BV - support@yoast.com
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 or higher
*
* @wordpress-plugin
* Plugin Name: Yoast SEO Premium
* Version: 23.9
* Plugin URI: https://yoa.st/2jc
* Description: The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
* Author: Team Yoast
* Author URI: https://yoa.st/team-yoast-premium
* Text Domain: wordpress-seo-premium
* Domain Path: /languages/
* License: GPL v3
* Requires at least: 6.5
* Requires PHP: 7.2.5
* Requires Yoast SEO: 23.9
*
* WC requires at least: 7.1
* WC tested up to: 9.4
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
use Yoast\WP\SEO\Premium\Addon_Installer;
if ( ! defined( 'WPSEO_PREMIUM_FILE' ) ) {
define( 'WPSEO_PREMIUM_FILE', __FILE__ );
}
if ( ! defined( 'WPSEO_PREMIUM_PATH' ) ) {
define( 'WPSEO_PREMIUM_PATH', plugin_dir_path( WPSEO_PREMIUM_FILE ) );
}
if ( ! defined( 'WPSEO_PREMIUM_BASENAME' ) ) {
define( 'WPSEO_PREMIUM_BASENAME', plugin_basename( WPSEO_PREMIUM_FILE ) );
}
/**
* {@internal Nobody should be able to overrule the real version number as this can cause
* serious issues with the options, so no if ( ! defined() ).}}
*/
define( 'WPSEO_PREMIUM_VERSION', '23.9' );
// Initialize Premium autoloader.
$wpseo_premium_dir = WPSEO_PREMIUM_PATH;
$yoast_seo_premium_autoload_file = $wpseo_premium_dir . 'vendor/autoload.php';
if ( is_readable( $yoast_seo_premium_autoload_file ) ) {
require $yoast_seo_premium_autoload_file;
}
// This class has to exist outside of the container as the container requires Yoast SEO to exist.
$wpseo_addon_installer = new Addon_Installer( __DIR__ );
$wpseo_addon_installer->install_yoast_seo_from_repository();
// Load the container.
if ( ! wp_installing() ) {
require_once __DIR__ . '/src/functions.php';
YoastSEOPremium();
}
register_activation_hook( WPSEO_PREMIUM_FILE, [ 'WPSEO_Premium', 'install' ] );