Rename in more places
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Check if all the pre-requisites to run WP Ultimo are in place.
|
||||
* Check if all the pre-requisites to run WP Multisite WaaS are in place.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Requirements
|
||||
@ -16,7 +16,7 @@ use \WP_Ultimo\Installers\Core_Installer;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Check if all the pre-requisites to run WP Ultimo are in place.
|
||||
* Check if all the pre-requisites to run WP Multisite WaaS are in place.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -31,7 +31,7 @@ class Requirements {
|
||||
public static $met;
|
||||
|
||||
/**
|
||||
* Minimum PHP version required to run WP Ultimo.
|
||||
* Minimum PHP version required to run WP Multisite WaaS.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var string
|
||||
@ -47,7 +47,7 @@ class Requirements {
|
||||
public static $php_recommended_version = '7.4.1';
|
||||
|
||||
/**
|
||||
* Minimum WordPress version required to run WP Ultimo.
|
||||
* Minimum WordPress version required to run WP Multisite WaaS.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var string
|
||||
@ -68,12 +68,12 @@ class Requirements {
|
||||
private function __construct() {} // end __construct;
|
||||
|
||||
/**
|
||||
* Check if the minimum pre-requisites to run WP Ultimo are present.
|
||||
* Check if the minimum pre-requisites to run WP Multisite WaaS are present.
|
||||
*
|
||||
* - Check if the PHP version requirements are met;
|
||||
* - Check if the WordPress version requirements are met;
|
||||
* - Check if the install is a Multisite install;
|
||||
* - Check if WP Ultimo is network active.
|
||||
* - Check if WP Multisite WaaS is network active.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return boolean
|
||||
@ -258,7 +258,7 @@ class Requirements {
|
||||
|
||||
} // end is_multisite;
|
||||
/**
|
||||
* Check if WP Ultimo is network active.
|
||||
* Check if WP Multisite WaaS is network active.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -309,7 +309,7 @@ class Requirements {
|
||||
public static function notice_unsupported_php_version() {
|
||||
|
||||
// translators: the %1$s placeholder is the required PHP version, while the %2$s is the current PHP version.
|
||||
$message = sprintf(__('WP Ultimo requires at least PHP version %1$s to run. Your current PHP version is <strong>%2$s</strong>. Please, contact your hosting company support to upgrade your PHP version. If you want maximum performance consider upgrading your PHP to version 7.0 or later.', 'wp-ultimo'), self::$php_version, phpversion());
|
||||
$message = sprintf(__('WP Multisite WaaS requires at least PHP version %1$s to run. Your current PHP version is <strong>%2$s</strong>. Please, contact your hosting company support to upgrade your PHP version. If you want maximum performance consider upgrading your PHP to version 7.0 or later.', 'wp-ultimo'), self::$php_version, phpversion());
|
||||
|
||||
printf('<div class="notice notice-error"><p>%s</p></div>', $message);
|
||||
|
||||
@ -326,7 +326,7 @@ class Requirements {
|
||||
global $wp_version;
|
||||
|
||||
// translators: the %1$s placeholder is the required WP version, while the %2$s is the current WP version.
|
||||
$message = sprintf(__('WP Ultimo requires at least WordPress version %1$s to run. Your current WordPress version is <strong>%2$s</strong>.', 'wp-ultimo'), self::$wp_version, $wp_version);
|
||||
$message = sprintf(__('WP Multisite WaaS requires at least WordPress version %1$s to run. Your current WordPress version is <strong>%2$s</strong>.', 'wp-ultimo'), self::$wp_version, $wp_version);
|
||||
|
||||
printf('<div class="notice notice-error"><p>%s</p></div>', $message);
|
||||
|
||||
@ -340,14 +340,14 @@ class Requirements {
|
||||
*/
|
||||
public static function notice_not_multisite() {
|
||||
|
||||
$message = __('WP Ultimo requires a multisite install to run properly. To know more about WordPress Networks, visit this link: <a href="https://wordpress.org/support/article/create-a-network/">Create a Network →</a>', 'wp-ultimo');
|
||||
$message = __('WP Multisite WaaS requires a multisite install to run properly. To know more about WordPress Networks, visit this link: <a href="https://wordpress.org/support/article/create-a-network/">Create a Network →</a>', 'wp-ultimo');
|
||||
|
||||
printf('<div class="notice notice-error"><p>%s</p></div>', $message);
|
||||
|
||||
} // end notice_not_multisite;
|
||||
|
||||
/**
|
||||
* Adds a network admin notice about the WP Ultimo not being network-active
|
||||
* Adds a network admin notice about the WP Multisite WaaS not being network-active
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
@ -355,7 +355,7 @@ class Requirements {
|
||||
public static function notice_not_network_active() {
|
||||
|
||||
// translators: %s is a placeholder for the Network Admin plugins page URL.
|
||||
$message = sprintf(__('WP Ultimo needs to be network active to run properly. You can "Network Activate" it <a href="%s">here</a>', 'wp-ultimo'), network_admin_url('plugins.php'));
|
||||
$message = sprintf(__('WP Multisite WaaS needs to be network active to run properly. You can "Network Activate" it <a href="%s">here</a>', 'wp-ultimo'), network_admin_url('plugins.php'));
|
||||
|
||||
printf('<div class="notice notice-error"><p>%s</p></div>', $message);
|
||||
|
||||
|
Reference in New Issue
Block a user