You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1020 B
PHP
33 lines
1020 B
PHP
<?php
|
|
/**
|
|
* Load variables and include view files.
|
|
*
|
|
* @package RankMath
|
|
* @subpackage RankMath\Version_Control
|
|
*/
|
|
|
|
namespace RankMath;
|
|
|
|
use RankMath\Helper;
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
if ( Rollback_Version::should_rollback() ) {
|
|
$rollback = new Rollback_Version();
|
|
$rollback->rollback();
|
|
return;
|
|
}
|
|
|
|
$directory = dirname( __FILE__ );
|
|
$beta_optin = boolval( Helper::get_settings( 'general.beta_optin' ) );
|
|
$update_notification = boolval( Helper::get_settings( 'general.update_notification_email' ) );
|
|
$auto_update = boolval( Helper::get_auto_update_setting() );
|
|
$versions = array_reverse( array_keys( Beta_Optin::get_available_versions( $beta_optin ) ) );
|
|
$current_version = rank_math()->version;
|
|
$latest_version = Beta_Optin::get_latest_version();
|
|
array_splice( $versions, 10 );
|
|
|
|
require_once $directory . '/views/version-control-panel.php';
|
|
require_once $directory . '/views/beta-optin-panel.php';
|
|
require_once $directory . '/views/auto-update-panel.php';
|