Rename in more places
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo About Admin Page.
|
||||
* WP Multisite WaaS About Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo About Admin Page.
|
||||
* WP Multisite WaaS About Admin Page.
|
||||
*/
|
||||
class About_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
@ -98,7 +98,7 @@ class About_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('WP Ultimo', 'wp-ultimo');
|
||||
return __('Multisite WaaS', 'wp-ultimo');
|
||||
|
||||
} // end get_menu_title;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Addons_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Abstract class that makes it easy to create new admin pages.
|
||||
*
|
||||
* Most of WP Ultimo pages are implemented using this class, which means that the filters and hooks
|
||||
* Most of WP Multisite WaaS pages are implemented using this class, which means that the filters and hooks
|
||||
* listed below can be used to append content to all of our pages at once.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
@ -195,7 +195,7 @@ abstract class Base_Admin_Page {
|
||||
*
|
||||
* Unlike the wu_page_load, which only runs when a specific page
|
||||
* is being seen, this hook runs at registration for every admin page
|
||||
* being added using WP Ultimo code.
|
||||
* being added using WP Multisite WaaS code.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @param string $page_id The ID of this page.
|
||||
@ -494,7 +494,7 @@ abstract class Base_Admin_Page {
|
||||
} // end add_submenu_page;
|
||||
|
||||
/**
|
||||
* Adds WP Ultimo branding to this page, if that's the case.
|
||||
* Adds WP Multisite WaaS branding to this page, if that's the case.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
@ -532,7 +532,7 @@ abstract class Base_Admin_Page {
|
||||
} // end add_container_toggle;
|
||||
|
||||
/**
|
||||
* Adds the WP Ultimo branding header.
|
||||
* Adds the WP Multisite WaaS branding header.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
@ -546,7 +546,7 @@ abstract class Base_Admin_Page {
|
||||
} // end brand_header;
|
||||
|
||||
/**
|
||||
* Adds the WP Ultimo branding footer.
|
||||
* Adds the WP Multisite WaaS branding footer.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
@ -626,7 +626,7 @@ abstract class Base_Admin_Page {
|
||||
add_action("load-$this->page_hook", array($this, 'add_admin_body_classes'), 20);
|
||||
|
||||
/*
|
||||
* Add the page to WP Ultimo branding (aka top-bar and footer)
|
||||
* Add the page to WP Multisite WaaS branding (aka top-bar and footer)
|
||||
*/
|
||||
if (is_network_admin()) {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Broadcast Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Broadcast Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Models\Broadcast;
|
||||
|
||||
/**
|
||||
* WP Ultimo Broadcast Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Broadcast Edit/Add New Admin Page.
|
||||
*/
|
||||
class Broadcast_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Broadcast Admin Page.
|
||||
* WP Multisite WaaS Broadcast Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Managers\Broadcast_Manager;
|
||||
|
||||
/**
|
||||
* WP Ultimo Broadcast Admin Page.
|
||||
* WP Multisite WaaS Broadcast Admin Page.
|
||||
*/
|
||||
class Broadcast_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Checkout_Form Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Checkout_Form Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Managers\Signup_Fields_Manager;
|
||||
|
||||
/**
|
||||
* WP Ultimo Checkout_Form Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Checkout_Form Edit/Add New Admin Page.
|
||||
* Here we use the default WP Session to avoid errors with cookie size.
|
||||
*/
|
||||
class Checkout_Form_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Checkout Form Admin Page.
|
||||
* WP Multisite WaaS Checkout Form Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Models\Checkout_Form;
|
||||
|
||||
/**
|
||||
* WP Ultimo Checkout Form Admin Page.
|
||||
* WP Multisite WaaS Checkout Form Admin Page.
|
||||
*/
|
||||
class Checkout_Form_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Customer Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Customer Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Database\Memberships\Membership_Status;
|
||||
|
||||
/**
|
||||
* WP Ultimo Customer Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Customer Edit/Add New Admin Page.
|
||||
*/
|
||||
class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
@ -697,7 +697,7 @@ class Customer_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
),
|
||||
'custom_meta' => array(
|
||||
'title' => __('Custom Meta', 'wp-ultimo'),
|
||||
'desc' => __('Custom data collected via WP Ultimo forms.', 'wp-ultimo'),
|
||||
'desc' => __('Custom data collected via WP Multisite WaaS forms.', 'wp-ultimo'),
|
||||
'icon' => 'dashicons-wu-database wu-pt-px',
|
||||
'fields' => $this->generate_customer_meta_fields(),
|
||||
'state' => array(
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Customer_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Customize/Add New Template Previewer Page.
|
||||
* WP Multisite WaaS Customize/Add New Template Previewer Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Template Previewer Customize/Add New Admin Page.
|
||||
* WP Multisite WaaS Template Previewer Customize/Add New Admin Page.
|
||||
*/
|
||||
abstract class Customizer_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Dashboard_Statistics;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
@ -219,7 +219,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
*
|
||||
* @param string $tab The current tab.
|
||||
* @param \WP_Screen $screen The screen object.
|
||||
* @param \WP_Ultimo\Admin_Pages\Dashboard_Admin_Page $page WP Ultimo admin page instance.
|
||||
* @param \WP_Ultimo\Admin_Pages\Dashboard_Admin_Page $page WP Multisite WaaS admin page instance.
|
||||
*/
|
||||
do_action("wu_dashboard_{$this->tab}_widgets", $this->tab, $screen, $this);
|
||||
|
||||
@ -230,7 +230,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
*
|
||||
* @param string $tab The current tab.
|
||||
* @param \WP_Screen $screen The screen object.
|
||||
* @param \WP_Ultimo\Admin_Pages\Dashboard_Admin_Page $page WP Ultimo admin page instance.
|
||||
* @param \WP_Ultimo\Admin_Pages\Dashboard_Admin_Page $page WP Multisite WaaS admin page instance.
|
||||
*/
|
||||
do_action('wu_dashboard_widgets', $this->tab, $screen, $this);
|
||||
|
||||
@ -241,14 +241,14 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
'id' => 'your-dashboard',
|
||||
'title' => __('Our dashboard', 'wp-ultimo'),
|
||||
'text' => array(
|
||||
__('This is the <strong>WP Ultimo Dashboard</strong>, where you will find most of the important information you will need regarding your business\' performance.', 'wp-ultimo'),
|
||||
__('This is the <strong>WP Multisite WaaS Dashboard</strong>, where you will find most of the important information you will need regarding your business\' performance.', 'wp-ultimo'),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'id' => 'documentation',
|
||||
'title' => __('Learning more', 'wp-ultimo'),
|
||||
'text' => array(
|
||||
__('Most of the WP Ultimo admin pages will contain a link like this one at the top. These will link directly to the relevant knowledge base page on the WP Ultimo site.', 'wp-ultimo'),
|
||||
__('Most of the WP Multisite WaaS admin pages will contain a link like this one at the top. These will link directly to the relevant knowledge base page on the WP Multisite WaaS site.', 'wp-ultimo'),
|
||||
),
|
||||
'attachTo' => array(
|
||||
'element' => '#wp-ultimo-wrap > h1 > a:last-child',
|
||||
@ -554,7 +554,7 @@ class Dashboard_Admin_Page extends Base_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return __('WP Ultimo', 'wp-ultimo');
|
||||
return __('Multisite WaaS', 'wp-ultimo');
|
||||
|
||||
} // end get_menu_title;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Discount_Code Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Discount_Code Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -16,7 +16,7 @@ use \WP_Ultimo\Models\Discount_Code;
|
||||
use \WP_Ultimo\Managers\Discount_Code_Manager;
|
||||
|
||||
/**
|
||||
* WP Ultimo Discount_Code Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Discount_Code Edit/Add New Admin Page.
|
||||
*/
|
||||
class Discount_Code_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Discount Code Admin Page.
|
||||
* WP Multisite WaaS Discount Code Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Discount Code Admin Page.
|
||||
* WP Multisite WaaS Discount Code Admin Page.
|
||||
*/
|
||||
class Discount_Code_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Domain Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Domain Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Database\Domains\Domain_Stage;
|
||||
|
||||
/**
|
||||
* WP Ultimo Domain Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Domain Edit/Add New Admin Page.
|
||||
*/
|
||||
class Domain_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -16,7 +16,7 @@ use \WP_Ultimo\Models\Domain;
|
||||
use \WP_Ultimo\Database\Domains\Domain_Stage;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Domain_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
@ -88,7 +88,7 @@ class Domain_List_Admin_Page extends List_Admin_Page {
|
||||
));
|
||||
|
||||
// translators: %s is the URL to the add-on.
|
||||
$note_desc = sprintf(__('To activate this feature you need to install the <a href="%s" target="_blank" class="wu-no-underline">WP Ultimo: Domain Seller</a> add-on.', 'wp-ultimo'), $addon_url);
|
||||
$note_desc = sprintf(__('To activate this feature you need to install the <a href="%s" target="_blank" class="wu-no-underline">WP Multisite WaaS: Domain Seller</a> add-on.', 'wp-ultimo'), $addon_url);
|
||||
|
||||
$fields = array(
|
||||
'type' => array(
|
||||
@ -130,7 +130,7 @@ class Domain_List_Admin_Page extends List_Admin_Page {
|
||||
'type' => 'select',
|
||||
'title' => __('Stage', 'wp-ultimo'),
|
||||
'placeholder' => __('Select Stage', 'wp-ultimo'),
|
||||
'desc' => __('The stage in the domain check lifecycle. Leave "Checking DNS" to have the domain go through WP Ultimo\'s automated tests.', 'wp-ultimo'),
|
||||
'desc' => __('The stage in the domain check lifecycle. Leave "Checking DNS" to have the domain go through WP Multisite WaaS\'s automated tests.', 'wp-ultimo'),
|
||||
'options' => Domain_Stage::to_array(),
|
||||
'value' => Domain_Stage::CHECKING_DNS,
|
||||
),
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Abstract class that makes it easy to create new admin pages.
|
||||
*
|
||||
* Most of WP Ultimo pages are implemented using this class, which means that the filters and hooks
|
||||
* Most of WP Multisite WaaS pages are implemented using this class, which means that the filters and hooks
|
||||
* listed below can be used to append content to all of our pages at once.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Email Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Email Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -16,7 +16,7 @@ use \WP_Ultimo\Models\Email;
|
||||
use \WP_Ultimo\Managers\Email_Manager;
|
||||
|
||||
/**
|
||||
* WP Ultimo Email Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Email Edit/Add New Admin Page.
|
||||
*/
|
||||
class Email_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Broadcast Admin Page.
|
||||
* WP Multisite WaaS Broadcast Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Broadcast Admin Page.
|
||||
* WP Multisite WaaS Broadcast Admin Page.
|
||||
*/
|
||||
class Email_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
@ -378,7 +378,7 @@ class Email_List_Admin_Page extends List_Admin_Page {
|
||||
$fields['import_emails'] = array(
|
||||
'type' => 'toggle',
|
||||
'title' => __('Import System Emails', 'wp-ultimo'),
|
||||
'desc' => __('Add new system emails based on WP Ultimo presets.'),
|
||||
'desc' => __('Add new system emails based on WP Multisite WaaS presets.'),
|
||||
'tooltip' => '',
|
||||
'value' => 0,
|
||||
'html_attr' => array(
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Customize/Add New Email Template Page.
|
||||
* WP Multisite WaaS Customize/Add New Email Template Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Email Template Customize/Add New Admin Page.
|
||||
* WP Multisite WaaS Email Template Customize/Add New Admin Page.
|
||||
*/
|
||||
class Email_Template_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Event Admin Page.
|
||||
* WP Multisite WaaS Event Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ use \WP_Ultimo\Models\Event;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Event Admin Page.
|
||||
* WP Multisite WaaS Event Admin Page.
|
||||
*/
|
||||
class Event_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Event View Admin Page.
|
||||
* WP Multisite WaaS Event View Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Models\Event;
|
||||
|
||||
/**
|
||||
* WP Ultimo Event View Admin Page.
|
||||
* WP Multisite WaaS Event View Admin Page.
|
||||
*/
|
||||
class Event_View_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Hosting_Integration_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Customize/Add New Invoice Template Page.
|
||||
* WP Multisite WaaS Customize/Add New Invoice Template Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ use \WP_Ultimo\Invoices\Invoice;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Invoice Template Customize/Add New Admin Page.
|
||||
* WP Multisite WaaS Invoice Template Customize/Add New Admin Page.
|
||||
*/
|
||||
class Invoice_Template_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Jobs Admin Page.
|
||||
* WP Multisite WaaS Jobs Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Jobs Admin Page.
|
||||
* WP Multisite WaaS Jobs Admin Page.
|
||||
*/
|
||||
class Jobs_List_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Abstract class that makes it easy to create new admin pages.
|
||||
*
|
||||
* Most of WP Ultimo pages are implemented using this class, which means that the filters and hooks
|
||||
* Most of WP Multisite WaaS pages are implemented using this class, which means that the filters and hooks
|
||||
* listed below can be used to append content to all of our pages at once.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
@ -223,7 +223,7 @@ abstract class List_Admin_Page extends Base_Admin_Page {
|
||||
} // end save_screen_option;
|
||||
|
||||
/**
|
||||
* Dumb function. Child classes need to implement this to set the table that WP Ultimo will use
|
||||
* Dumb function. Child classes need to implement this to set the table that WP Multisite WaaS will use
|
||||
*
|
||||
* @since 1.8.2
|
||||
* @return WP_List_Table
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Membership Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Membership Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Database\Memberships\Membership_Status;
|
||||
|
||||
/**
|
||||
* WP Ultimo Membership Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Membership Edit/Add New Admin Page.
|
||||
*/
|
||||
class Membership_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Membership Admin Page.
|
||||
* WP Multisite WaaS Membership Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -16,7 +16,7 @@ use \WP_Ultimo\Models\Membership;
|
||||
use \WP_Ultimo\Database\Memberships\Membership_Status;
|
||||
|
||||
/**
|
||||
* WP Ultimo Membership Admin Page.
|
||||
* WP Multisite WaaS Membership Admin Page.
|
||||
*/
|
||||
class Membership_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -19,7 +19,7 @@ use \WP_Ultimo\Installers\Default_Content_Installer;
|
||||
use \WP_Ultimo\Logger;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Migration_Alert_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
@ -124,7 +124,7 @@ class Migration_Alert_Admin_Page extends Wizard_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return WP_Ultimo()->is_loaded() ? __('WP Ultimo Migration Alert', 'wp-ultimo') : __('WP Ultimo', 'wp-ultimo');
|
||||
return WP_Ultimo()->is_loaded() ? __('WP Multisite WaaS Migration Alert', 'wp-ultimo') : __('WP Multisite WaaS', 'wp-ultimo');
|
||||
|
||||
} // end get_menu_title;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Payment Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Payment Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -16,7 +16,7 @@ use \WP_Ultimo\Models\Payment;
|
||||
use \WP_Ultimo\Database\Payments\Payment_Status;
|
||||
|
||||
/**
|
||||
* WP Ultimo Payment Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Payment Edit/Add New Admin Page.
|
||||
*/
|
||||
class Payment_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
@ -287,7 +287,7 @@ class Payment_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
),
|
||||
'refund_not_immediate_note' => array(
|
||||
'type' => 'note',
|
||||
'desc' => __('Confirming the refund might not immediately change the status of the payment, as each gateway handles refunds differently and WP Ultimo relies on the gateway reporting a successful refund before changing the status.', 'wp-ultimo'),
|
||||
'desc' => __('Confirming the refund might not immediately change the status of the payment, as each gateway handles refunds differently and WP Multisite WaaS relies on the gateway reporting a successful refund before changing the status.', 'wp-ultimo'),
|
||||
'classes' => 'wu-p-2 wu-bg-yellow-200 wu-text-yellow-700 wu-rounded wu-w-full',
|
||||
'wrapper_html_attr' => array(
|
||||
'v-show' => 'step === 2',
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Payment Admin Page.
|
||||
* WP Multisite WaaS Payment Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Database\Payments\Payment_Status;
|
||||
|
||||
/**
|
||||
* WP Ultimo Payment Admin Page.
|
||||
* WP Multisite WaaS Payment Admin Page.
|
||||
*/
|
||||
class Payment_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo About Admin Page.
|
||||
* WP Multisite WaaS About Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo About Admin Page.
|
||||
* WP Multisite WaaS About Admin Page.
|
||||
*/
|
||||
class Placeholders_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Product Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Product Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -16,7 +16,7 @@ use \WP_Ultimo\Models\Product;
|
||||
use \WP_Ultimo\Database\Products\Product_Type;
|
||||
|
||||
/**
|
||||
* WP Ultimo Product Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Product Edit/Add New Admin Page.
|
||||
*/
|
||||
class Product_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
@ -120,7 +120,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'id' => 'new-product-warning',
|
||||
'title' => __('On adding a new product...', 'wp-ultimo'),
|
||||
'text' => array(
|
||||
__("You just successfully added a new product to your WP Ultimo network and that's awesome!", 'wp-ultimo'),
|
||||
__("You just successfully added a new product to your WP Multisite WaaS network and that's awesome!", 'wp-ultimo'),
|
||||
__('Keep in mind that newly created products do not appear automatically in your checkout forms.', 'wp-ultimo'),
|
||||
__('To make a product available on registration, you will need to manually add it to the pricing table field of your checkout forms.', 'wp-ultimo'),
|
||||
),
|
||||
@ -641,7 +641,7 @@ class Product_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
),
|
||||
'modules[customer_user_role][limit]' => array(
|
||||
'title' => __('Customer Role', 'wp-ultimo'),
|
||||
'desc' => __('Select the role WP Ultimo should use when adding the user to their newly created site.', 'wp-ultimo'),
|
||||
'desc' => __('Select the role WP Multisite WaaS should use when adding the user to their newly created site.', 'wp-ultimo'),
|
||||
'type' => 'select',
|
||||
'value' => $this->get_object()->get_customer_role(),
|
||||
'default' => 'administrator',
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Product Admin Page.
|
||||
* WP Multisite WaaS Product Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Product Admin Page.
|
||||
* WP Multisite WaaS Product Admin Page.
|
||||
*/
|
||||
class Product_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Rollback Admin Page.
|
||||
* WP Multisite WaaS Rollback Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Rollback Admin Page.
|
||||
* WP Multisite WaaS Rollback Admin Page.
|
||||
*/
|
||||
class Rollback_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -17,7 +17,7 @@ use \WP_Ultimo\UI\Field;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
@ -203,15 +203,15 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
<div class="wu-p-4">
|
||||
|
||||
<span class="wu-text-gray-700 wu-font-bold wu-uppercase wu-tracking-wide wu-text-xs">
|
||||
<?php _e('WP Ultimo Add-ons', 'wp-ultimo'); ?>
|
||||
<?php _e('WP Multisite WaaS Add-ons', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
<div class="wu-py-2">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('WP Ultimo Add-ons', 'wp-ultimo'); ?>" src="<?php echo wu_get_asset('sidebar/add-ons.png'); ?>">
|
||||
<img class="wu-w-full" alt="<?php esc_attr_e('WP Multisite WaaS Add-ons', 'wp-ultimo'); ?>" src="<?php echo wu_get_asset('sidebar/add-ons.png'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-gray-600 wu-p-0 wu-m-0">
|
||||
<?php _e('You can extend WP Ultimo\'s functionality by installing one of our add-ons!', 'wp-ultimo'); ?>
|
||||
<?php _e('You can extend WP Multisite WaaS\'s functionality by installing one of our add-ons!', 'wp-ultimo'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@ -249,14 +249,14 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
<div class="wu-p-4">
|
||||
|
||||
<span class="wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-block">
|
||||
<?php _e('Your copy of WP Ultimo is not currently active. That means you will not have access to plugin updates and add-ons.', 'wp-ultimo'); ?>
|
||||
<?php _e('Your copy of WP Multisite WaaS is not currently active. That means you will not have access to plugin updates and add-ons.', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wu-p-4 wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-t wu-border-gray-300">
|
||||
<a id="wu-activate-license-key-button" class="button wu-w-full wu-text-center wubox" title="<?php esc_attr_e('Activate WP Ultimo', 'wp-ultimo'); ?>" href="<?php echo wu_get_form_url('license_activation'); ?>">
|
||||
<?php _e('Activate WP Ultimo →', 'wp-ultimo'); ?>
|
||||
<a id="wu-activate-license-key-button" class="button wu-w-full wu-text-center wubox" title="<?php esc_attr_e('Activate WP Multisite WaaS', 'wp-ultimo'); ?>" href="<?php echo wu_get_form_url('license_activation'); ?>">
|
||||
<?php _e('Activate WP Multisite WaaS →', 'wp-ultimo'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -281,7 +281,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
">
|
||||
<?php echo substr_replace((string) $license->secret_key, str_repeat('*', 16), 4, 24); ?>
|
||||
<a
|
||||
title="<?php esc_attr_e('Deactivate WP Ultimo License', 'wp-ultimo'); ?>"
|
||||
title="<?php esc_attr_e('Deactivate WP Multisite WaaS License', 'wp-ultimo'); ?>"
|
||||
class="dashicons dashicons-trash wu-text-red-600 wubox"
|
||||
href="<?php echo wu_get_form_url('license_deactivation'); ?>"
|
||||
></a>
|
||||
@ -535,7 +535,7 @@ class Settings_Admin_Page extends Wizard_Admin_Page {
|
||||
</div>
|
||||
|
||||
<p class="wu-text-gray-600 wu-p-0 wu-m-0">
|
||||
<?php _e('You can completely customize the contents of the emails sent out by WP Ultimo when particular events occur, such as Account Creation, Payment Failures, etc.', 'wp-ultimo'); ?>
|
||||
<?php _e('You can completely customize the contents of the emails sent out by WP Multisite WaaS when particular events occur, such as Account Creation, Payment Failures, etc.', 'wp-ultimo'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -19,7 +19,7 @@ use \WP_Ultimo\Installers\Default_Content_Installer;
|
||||
use \WP_Ultimo\Logger;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
@ -229,7 +229,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
} // end is_migration;
|
||||
|
||||
/**
|
||||
* Adds missing setup from settings when WP Ultimo is not fully loaded.
|
||||
* Adds missing setup from settings when WP Multisite WaaS is not fully loaded.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
@ -342,7 +342,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
*/
|
||||
public function get_menu_title() {
|
||||
|
||||
return WP_Ultimo()->is_loaded() ? __('WP Ultimo Install', 'wp-ultimo') : __('WP Ultimo', 'wp-ultimo');
|
||||
return WP_Ultimo()->is_loaded() ? __('WP Multisite WaaS Install', 'wp-ultimo') : __('WP Multisite WaaS', 'wp-ultimo');
|
||||
|
||||
} // end get_menu_title;
|
||||
|
||||
@ -360,8 +360,8 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
'welcome' => array(
|
||||
'title' => __('Welcome', 'wp-ultimo'),
|
||||
'description' => implode('<br><br>', array(
|
||||
__('...and thanks for choosing WP Ultimo!', 'wp-ultimo'),
|
||||
__('This quick setup wizard will make sure your server is correctly setup, help you configure your new network, and migrate data from previous WP Ultimo versions if necessary.', 'wp-ultimo'),
|
||||
__('...and thanks for choosing WP Multisite WaaS!', 'wp-ultimo'),
|
||||
__('This quick setup wizard will make sure your server is correctly setup, help you configure your new network, and migrate data from previous WP Multisite WaaS versions if necessary.', 'wp-ultimo'),
|
||||
__('You will also have the option of importing default content. It should take 10 minutes or less!', 'wp-ultimo')
|
||||
)),
|
||||
'next_label' => __('Get Started →', 'wp-ultimo'),
|
||||
@ -369,7 +369,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
),
|
||||
'checks' => array(
|
||||
'title' => __('Pre-install Checks', 'wp-ultimo'),
|
||||
'description' => __('Now it is time to see if this machine has what it takes to run WP Ultimo well!', 'wp-ultimo'),
|
||||
'description' => __('Now it is time to see if this machine has what it takes to run WP Multisite WaaS well!', 'wp-ultimo'),
|
||||
'next_label' => \WP_Ultimo\Requirements::met() ? __('Go to the Next Step →', 'wp-ultimo') : __('Check Again', 'wp-ultimo'),
|
||||
'handler' => array($this, 'handle_checks'),
|
||||
'back' => false,
|
||||
@ -380,40 +380,9 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
)
|
||||
),
|
||||
),
|
||||
'activation' => array(
|
||||
'title' => __('License Activation', 'wp-ultimo'),
|
||||
'description' => __('Let\'s make sure you are able to keep your copy up-to-date with our latest updates via admin panel notifications and more.', 'wp-ultimo'),
|
||||
'handler' => array($this, 'handle_activation'),
|
||||
'next_label' => __('Agree & Activate →', 'wp-ultimo'),
|
||||
'back' => false,
|
||||
'skip' => $allowed,
|
||||
'fields' => array(
|
||||
'terms' => array(
|
||||
'type' => 'note',
|
||||
'desc' => array($this, '_terms_of_support'),
|
||||
),
|
||||
'license_key' => array(
|
||||
'type' => 'text',
|
||||
'title' => __('License Key', 'wp-ultimo'),
|
||||
'placeholder' => __('E.g. sk_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Your WP Ultimo License Key', 'wp-ultimo'),
|
||||
'desc' => array($this, '_desc_and_validation_error'),
|
||||
'wrapper_classes' => $allowed ? 'wu-hidden' : '',
|
||||
'html_attr' => array(
|
||||
$allowed ? 'disabled' : 'data-none' => 'disabled',
|
||||
),
|
||||
),
|
||||
'license' => array(
|
||||
'wrapper_classes' => $allowed ? 'sm:wu-w-auto sm:wu-block' : 'sm:wu-w-auto wu-hidden',
|
||||
'classes' => 'sm:wu--mx-6 sm:wu--mt-4 sm:wu--mb-6',
|
||||
'type' => 'note',
|
||||
'desc' => array($this, '_current_license'),
|
||||
),
|
||||
),
|
||||
),
|
||||
'installation' => array(
|
||||
'title' => __('Installation', 'wp-ultimo'),
|
||||
'description' => __('Now, let\'s update your database and install the Sunrise.php file, which are necessary for the correct functioning of WP Ultimo.', 'wp-ultimo'),
|
||||
'description' => __('Now, let\'s update your database and install the Sunrise.php file, which are necessary for the correct functioning of WP Multisite WaaS.', 'wp-ultimo'),
|
||||
'next_label' => Core_Installer::get_instance()->all_done() ? __('Go to the Next Step →', 'wp-ultimo') : __('Install', 'wp-ultimo'),
|
||||
'fields' => array(
|
||||
'terms' => array(
|
||||
@ -445,7 +414,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
$next_label = __('Run Check', 'wp-ultimo');
|
||||
|
||||
$description = __('It seems that you were running WP Ultimo 1.X on this network. This migrator will convert the data from the old version to the new one.', 'wp-ultimo') . '<br><br>' . __('First, let\'s run a test migration to see if we can spot any potential errors.', 'wp-ultimo');
|
||||
$description = __('It seems that you were running WP Multisite WaaS 1.X on this network. This migrator will convert the data from the old version to the new one.', 'wp-ultimo') . '<br><br>' . __('First, let\'s run a test migration to see if we can spot any potential errors.', 'wp-ultimo');
|
||||
|
||||
} // end if;
|
||||
|
||||
@ -771,7 +740,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
'pass_requirements' => is_multisite(),
|
||||
),
|
||||
'wp-ultimo' => array(
|
||||
'name' => __('WP Ultimo', 'wp-ultimo'),
|
||||
'name' => __('WP Multisite WaaS', 'wp-ultimo'),
|
||||
'help' => wu_get_documentation_url('wp-ultimo-requirements'),
|
||||
'condition' => apply_filters('wp_ultimo_skip_network_active_check', false) ? __('Bypassed via filter', 'wp-ultimo') : __('Network Activated', 'wp-ultimo'),
|
||||
'pass_requirements' => \WP_Ultimo\Requirements::is_network_active(),
|
||||
@ -917,43 +886,6 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
|
||||
} // end handle_migration;
|
||||
|
||||
/**
|
||||
* Handles the activation of a given integration.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void|WP_Error
|
||||
*/
|
||||
public function handle_activation() {
|
||||
|
||||
$license = License::get_instance();
|
||||
|
||||
/*
|
||||
* Already activated.
|
||||
*/
|
||||
if ($license->allowed()) {
|
||||
|
||||
wp_redirect($this->get_next_section_link());
|
||||
|
||||
exit;
|
||||
|
||||
} // end if;
|
||||
|
||||
$activation_results = $license->activate(wu_request('license_key'));
|
||||
|
||||
if (is_wp_error($activation_results)) {
|
||||
|
||||
$_REQUEST['error'] = $activation_results->get_error_message();
|
||||
|
||||
} else {
|
||||
|
||||
wp_redirect($this->get_next_section_link());
|
||||
|
||||
exit;
|
||||
|
||||
} // end if;
|
||||
|
||||
} // end handle_activation;
|
||||
|
||||
/**
|
||||
* Handles the configuration of a given integration.
|
||||
*
|
||||
@ -996,7 +928,7 @@ class Setup_Wizard_Admin_Page extends Wizard_Admin_Page {
|
||||
} // end section_test;
|
||||
|
||||
/**
|
||||
* Adds the necessary missing scripts if WP Ultimo was not loaded.
|
||||
* Adds the necessary missing scripts if WP Multisite WaaS was not loaded.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Shortcodes Admin Page.
|
||||
* WP Multisite WaaS Shortcodes Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ use WP_Ultimo\UI\Base_Element;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Shortcodes Admin Page.
|
||||
* WP Multisite WaaS Shortcodes Admin Page.
|
||||
*/
|
||||
class Shortcodes_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Site Edit New Admin Page.
|
||||
* WP Multisite WaaS Site Edit New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -16,7 +16,7 @@ use \WP_Ultimo\Database\Sites\Site_Type;
|
||||
use \WP_Ultimo\Models\Site;
|
||||
|
||||
/**
|
||||
* WP Ultimo Site Edit New Admin Page.
|
||||
* WP Multisite WaaS Site Edit New Admin Page.
|
||||
*/
|
||||
class Site_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
@ -150,7 +150,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
'id' => 'new-site-template-warning',
|
||||
'title' => __('On adding a new Site Template...', 'wp-ultimo'),
|
||||
'text' => array(
|
||||
__("You just successfully added a new site template to your WP Ultimo network and that's awesome!", 'wp-ultimo'),
|
||||
__("You just successfully added a new site template to your WP Multisite WaaS network and that's awesome!", 'wp-ultimo'),
|
||||
__('Keep in mind that newly created site templates do not appear automatically in your checkout forms.', 'wp-ultimo'),
|
||||
__('To make a site template available on registration, you will need to manually add it to the template selection field of your checkout forms.', 'wp-ultimo'),
|
||||
),
|
||||
@ -541,7 +541,7 @@ class Site_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
),
|
||||
'scraper_message' => array(
|
||||
'type' => 'note',
|
||||
'desc' => sprintf('<span class="wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-block">%s</span>', __('We detected that this network might be running locally. If that\'s the case, WP Ultimo will not be able to take a screenshot of the site. A site needs to be publicly available to the outside world in order for this feature to work.', 'wp-ultimo')),
|
||||
'desc' => sprintf('<span class="wu-p-2 wu-bg-red-100 wu-text-red-600 wu-rounded wu-block">%s</span>', __('We detected that this network might be running locally. If that\'s the case, WP Multisite WaaS will not be able to take a screenshot of the site. A site needs to be publicly available to the outside world in order for this feature to work.', 'wp-ultimo')),
|
||||
'wrapper_classes' => \WP_Ultimo\Domain_Mapping\Helper::is_development_mode() ? '' : 'wu-hidden',
|
||||
),
|
||||
'scraper' => array(
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Sites Admin Page.
|
||||
* WP Multisite WaaS Sites Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Sites Admin Page.
|
||||
* WP Multisite WaaS Sites Admin Page.
|
||||
*/
|
||||
class Site_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo System Info Admin Page.
|
||||
* WP Multisite WaaS System Info Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ use WP_Ultimo\Logger;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo System Info Admin Page.
|
||||
* WP Multisite WaaS System Info Admin Page.
|
||||
*/
|
||||
class System_Info_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
@ -356,8 +356,8 @@ class System_Info_Admin_Page extends Base_Admin_Page {
|
||||
return apply_filters('wu_system_info_data', array(
|
||||
'WordPress and System Settings' => array(
|
||||
'wp-ultimo-version' => array(
|
||||
'tooltip' => 'WP Ultimo current version installed locally',
|
||||
'title' => 'WP Ultimo Version',
|
||||
'tooltip' => 'WP Multisite WaaS current version installed locally',
|
||||
'title' => 'WP Multisite WaaS Version',
|
||||
'value' => wu_get_version(),
|
||||
),
|
||||
'wordpress-version' => array(
|
||||
@ -578,9 +578,9 @@ class System_Info_Admin_Page extends Base_Admin_Page {
|
||||
'Active Plugins' => $array_active_plugins,
|
||||
'Active Plugins on Main Site' => $array_active_plugins_main_site,
|
||||
|
||||
'WP Ultimo Database Status' => $array_wu_tables,
|
||||
'WP Multisite WaaS Database Status' => $array_wu_tables,
|
||||
|
||||
'WP Ultimo Core Settings' => array_merge(
|
||||
'WP Multisite WaaS Core Settings' => array_merge(
|
||||
array(
|
||||
'logs-directory' => array(
|
||||
'tooltip' => '',
|
||||
@ -799,7 +799,7 @@ class System_Info_Admin_Page extends Base_Admin_Page {
|
||||
} // end get_all_options;
|
||||
|
||||
/**
|
||||
* Return all the desired WP Ultimo Settings
|
||||
* Return all the desired WP Multisite WaaS Settings
|
||||
*
|
||||
* @since 1.1.5
|
||||
* @return array
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo About Admin Page.
|
||||
* WP Multisite WaaS About Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ use \WP_Ultimo\Tax\Tax;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo About Admin Page.
|
||||
* WP Multisite WaaS About Admin Page.
|
||||
*/
|
||||
class Tax_Rates_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Customize/Add New Template Previewer Page.
|
||||
* WP Multisite WaaS Customize/Add New Template Previewer Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ use \WP_Ultimo\UI\Template_Previewer;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Template Previewer Customize/Add New Admin Page.
|
||||
* WP Multisite WaaS Template Previewer Customize/Add New Admin Page.
|
||||
*/
|
||||
class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
|
||||
@ -94,7 +94,7 @@ class Template_Previewer_Customize_Admin_Page extends Customizer_Admin_Page {
|
||||
'preview_url_parameter' => array(
|
||||
'type' => 'text',
|
||||
'title' => __('URL Parameter', 'wp-ultimo'),
|
||||
'desc' => __('This is the URL parameter WP Ultimo will use to generate the template preview URLs.', 'wp-ultimo'),
|
||||
'desc' => __('This is the URL parameter WP Multisite WaaS will use to generate the template preview URLs.', 'wp-ultimo'),
|
||||
'value' => Template_Previewer::get_instance()->get_setting('preview_url_parameter', 'template-preview'),
|
||||
),
|
||||
'enabled' => array(
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Adds the shortcuts menu to the admin bar.
|
||||
*
|
||||
* @category WP Ultimo
|
||||
* @category WP Multisite WaaS
|
||||
* @package WP_Ultimo
|
||||
* @author Gustavo Modesto <gustavo@wpultimo.com>
|
||||
* @since 2.0.0
|
||||
@ -37,7 +37,7 @@ class Top_Admin_Nav_Menu {
|
||||
} // end __construct;
|
||||
|
||||
/**
|
||||
* Adds the WP Ultimo top-bar shortcut menu
|
||||
* Adds the WP Multisite WaaS top-bar shortcut menu
|
||||
*
|
||||
* @since 1.1.0
|
||||
* @param \WP_Admin_Bar $wp_admin_bar The admin bar identifier.
|
||||
@ -55,7 +55,7 @@ class Top_Admin_Nav_Menu {
|
||||
// Add Parent element
|
||||
$parent = array(
|
||||
'id' => 'wp-ultimo',
|
||||
'title' => __('WP Ultimo', 'wp-ultimo'),
|
||||
'title' => __('Multisite Waas', 'wp-ultimo'),
|
||||
'href' => current_user_can('wu_read_dashboard') ? network_admin_url('admin.php?page=wp-ultimo') : '#',
|
||||
'meta' => array(
|
||||
'class' => 'wp-ultimo-top-menu',
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo System Info Admin Page.
|
||||
* WP Multisite WaaS System Info Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ use WP_Ultimo\Logger;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo System Info Admin Page.
|
||||
* WP Multisite WaaS System Info Admin Page.
|
||||
*/
|
||||
class View_Logs_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
@ -162,7 +162,7 @@ class View_Logs_Admin_Page extends Edit_Admin_Page {
|
||||
// Security check
|
||||
if ($file && !stristr((string) $file, Logger::get_logs_folder())) {
|
||||
|
||||
wp_die(__('You can see files that are not WP Ultimo\'s logs', 'wp-ultimo'));
|
||||
wp_die(__('You can see files that are not WP Multisite WaaS\'s logs', 'wp-ultimo'));
|
||||
|
||||
} // end if;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Webhook Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Webhook Edit/Add New Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Models\Webhook;
|
||||
|
||||
/**
|
||||
* WP Ultimo Webhook Edit/Add New Admin Page.
|
||||
* WP Multisite WaaS Webhook Edit/Add New Admin Page.
|
||||
*/
|
||||
class Webhook_Edit_Admin_Page extends Edit_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Webhook Admin Page.
|
||||
* WP Multisite WaaS Webhook Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Webhook Admin Page.
|
||||
* WP Multisite WaaS Webhook Admin Page.
|
||||
*/
|
||||
class Webhook_List_Admin_Page extends List_Admin_Page {
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Abstract class that makes it easy to create new admin pages.
|
||||
*
|
||||
* Most of WP Ultimo pages are implemented using this class, which means that the filters and hooks
|
||||
* Most of WP Multisite WaaS pages are implemented using this class, which means that the filters and hooks
|
||||
* listed below can be used to append content to all of our pages at once.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Add New Site Admin Page.
|
||||
* WP Multisite WaaS Add New Site Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Admin_Page;
|
||||
|
||||
/**
|
||||
* WP Ultimo Add New Site Admin Page.
|
||||
* WP Multisite WaaS Add New Site Admin Page.
|
||||
*/
|
||||
class Add_New_Site_Admin_Page extends Base_Customer_Facing_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Customer Checkout Admin Page.
|
||||
* WP Multisite WaaS Customer Checkout Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages\Customer_Panel;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Admin Page.
|
||||
* WP Multisite WaaS Dashboard Admin Page.
|
||||
*/
|
||||
class Checkout_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo My Sites Admin Page.
|
||||
* WP Multisite WaaS My Sites Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -15,7 +15,7 @@ defined('ABSPATH') || exit;
|
||||
use \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Admin_Page;
|
||||
|
||||
/**
|
||||
* WP Ultimo My Sites Admin Page.
|
||||
* WP Multisite WaaS My Sites Admin Page.
|
||||
*/
|
||||
class My_Sites_Admin_Page extends Base_Customer_Facing_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Switch Template Admin Page.
|
||||
* WP Multisite WaaS Switch Template Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Admin_Pages\Customer_Panel;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Switch Template Admin Page.
|
||||
* WP Multisite WaaS Switch Template Admin Page.
|
||||
*/
|
||||
class Template_Switching_Admin_Page extends \WP_Ultimo\Admin_Pages\Base_Customer_Facing_Admin_Page {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Debug Admin Page.
|
||||
* WP Multisite WaaS Debug Admin Page.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Pages\Debug
|
||||
@ -16,7 +16,7 @@ use WP_Ultimo\Admin_Pages\Base_Admin_Page;
|
||||
use WP_Ultimo\Debug\Debug;
|
||||
|
||||
/**
|
||||
* WP Ultimo Debug Admin Page.
|
||||
* WP Multisite WaaS Debug Admin Page.
|
||||
*/
|
||||
class Debug_Admin_Page extends Base_Admin_Page {
|
||||
|
||||
@ -93,7 +93,7 @@ class Debug_Admin_Page extends Base_Admin_Page {
|
||||
} // end register_widgets;
|
||||
|
||||
/**
|
||||
* Renders the list of WP Ultimo registered pages.
|
||||
* Renders the list of WP Multisite WaaS registered pages.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
|
@ -198,7 +198,7 @@ class Block_Editor_Widget_Manager {
|
||||
} // end consolidate_callables;
|
||||
|
||||
/**
|
||||
* Registers the block so WP Ultimo can add it on the JS side.
|
||||
* Registers the block so WP Multisite WaaS can add it on the JS side.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
|
@ -116,8 +116,8 @@ class Checkout_Pages {
|
||||
|
||||
<div class="misc-pub-section misc-pub-section-last" style="margin-top: 12px; margin-bottom: 6px; display: flex; align-items: center;">
|
||||
<label for="wu-compat-mode">
|
||||
<span style="display: block; font-weight: 600; margin-bottom: 3px;"><?php _e('WP Ultimo Compatibility Mode', 'wp-ultimo'); ?></span>
|
||||
<small style="display: block; line-height: 1.8em;"><?php _e('Toggle this option on if WP Ultimo elements are not loading correctly or at all.', 'wp-ultimo'); ?></small>
|
||||
<span style="display: block; font-weight: 600; margin-bottom: 3px;"><?php _e('WP Multisite WaaS Compatibility Mode', 'wp-ultimo'); ?></span>
|
||||
<small style="display: block; line-height: 1.8em;"><?php _e('Toggle this option on if WP Multisite WaaS elements are not loading correctly or at all.', 'wp-ultimo'); ?></small>
|
||||
</label>
|
||||
<div style="margin-left: 6px;">
|
||||
<input id="wu-compat-mode" type="checkbox" value="1" <?php checked($value, true, true); ?> name="_wu_force_elements_loading" />
|
||||
@ -629,7 +629,7 @@ class Checkout_Pages {
|
||||
} // end filter_login_url;
|
||||
|
||||
/**
|
||||
* Returns the ID of the pages being used for each WP Ultimo purpose.
|
||||
* Returns the ID of the pages being used for each WP Multisite WaaS purpose.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return array
|
||||
@ -691,7 +691,7 @@ class Checkout_Pages {
|
||||
} // end get_page_url;
|
||||
|
||||
/**
|
||||
* Tags the WP Ultimo pages on the main site.
|
||||
* Tags the WP Multisite WaaS pages on the main site.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
@ -708,11 +708,11 @@ class Checkout_Pages {
|
||||
} // end if;
|
||||
|
||||
$labels = array(
|
||||
'register' => __('WP Ultimo - Register Page', 'wp-ultimo'),
|
||||
'login' => __('WP Ultimo - Login Page', 'wp-ultimo'),
|
||||
'block_frontend' => __('WP Ultimo - Site Blocked Page', 'wp-ultimo'),
|
||||
'update' => __('WP Ultimo - Membership Update Page', 'wp-ultimo'),
|
||||
'new_site' => __('WP Ultimo - New Site Page', 'wp-ultimo'),
|
||||
'register' => __('WP Multisite WaaS - Register Page', 'wp-ultimo'),
|
||||
'login' => __('WP Multisite WaaS - Login Page', 'wp-ultimo'),
|
||||
'block_frontend' => __('WP Multisite WaaS - Site Blocked Page', 'wp-ultimo'),
|
||||
'update' => __('WP Multisite WaaS - Membership Update Page', 'wp-ultimo'),
|
||||
'new_site' => __('WP Multisite WaaS - New Site Page', 'wp-ultimo'),
|
||||
);
|
||||
|
||||
$pages = array_map('absint', $this->get_signup_pages());
|
||||
|
@ -1196,7 +1196,7 @@ class Checkout {
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @param array $meta_repository The list of meta fields, key => value structured.
|
||||
* @param Customer $customer The WP Ultimo customer object.
|
||||
* @param Customer $customer The WP Multisite WaaS customer object.
|
||||
* @param Checkout $this The checkout class.
|
||||
*/
|
||||
do_action('wu_handle_customer_meta_fields', $meta_repository, $customer, $this);
|
||||
@ -1230,7 +1230,7 @@ class Checkout {
|
||||
* @since 2.0.4
|
||||
* @param array $meta_repository The list of meta fields, key => value structured.
|
||||
* @param \WP_User $user The WordPress user object.
|
||||
* @param Customer $customer The WP Ultimo customer object.
|
||||
* @param Customer $customer The WP Multisite WaaS customer object.
|
||||
* @param Checkout $this The checkout class.
|
||||
*/
|
||||
do_action('wu_handle_user_meta_fields', $user_meta_repository, $user, $customer, $this);
|
||||
@ -2089,7 +2089,7 @@ class Checkout {
|
||||
/*
|
||||
* Checks if we are in the last step.
|
||||
*
|
||||
* WP Ultimo supports multi-step checkout
|
||||
* WP Multisite WaaS supports multi-step checkout
|
||||
* flows. That means that we do different
|
||||
* things on the intermediary steps (mostly
|
||||
* add things to the session) and on the final,
|
||||
@ -2295,7 +2295,7 @@ class Checkout {
|
||||
*
|
||||
* The gateway takes in the info about the transaction
|
||||
* and perform the necessary steps to make sure the
|
||||
* data on the gateway correctly reflects the data on WP Ultimo.
|
||||
* data on the gateway correctly reflects the data on WP Multisite WaaS.
|
||||
*/
|
||||
$status = $gateway->process_checkout($payment, $membership, $customer, $this->order, $type);
|
||||
|
||||
|
@ -95,7 +95,7 @@ class Legacy_Checkout {
|
||||
$this->session = wu_get_session('signup');
|
||||
|
||||
$this->templates = array(
|
||||
'signup-main.php' => __('WP Ultimo Legacy Signup', 'wp-ultimo'),
|
||||
'signup-main.php' => __('WP Multisite WaaS Legacy Signup', 'wp-ultimo'),
|
||||
);
|
||||
|
||||
// add_filter('request', array($this, 'maybe_render_legacy_signup'));
|
||||
@ -1240,7 +1240,7 @@ class Legacy_Checkout {
|
||||
*
|
||||
* @since 1.7.2
|
||||
* @param string Default domain being used right now, useful for manipulations
|
||||
* @param array List of all the domain options entered in the WP Ultimo Settings -> Network Settings -> Domain Options
|
||||
* @param array List of all the domain options entered in the WP Multisite WaaS Settings -> Network Settings -> Domain Options
|
||||
* @return string New domain to be used
|
||||
*/
|
||||
return apply_filters('get_site_url_for_previewer', $domain, $domain_options); // phpcs:ignore
|
||||
|
@ -68,7 +68,7 @@ class Signup_Field_Shortcode extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_description() {
|
||||
|
||||
return __('Displays the content of a given WordPress shortcode. Can be useful to inset content from other plugins inside a WP Ultimo checkout form.', 'wp-ultimo');
|
||||
return __('Displays the content of a given WordPress shortcode. Can be useful to inset content from other plugins inside a WP Multisite WaaS checkout form.', 'wp-ultimo');
|
||||
|
||||
} // end get_description;
|
||||
|
||||
@ -82,7 +82,7 @@ class Signup_Field_Shortcode extends Base_Signup_Field {
|
||||
*/
|
||||
public function get_tooltip() {
|
||||
|
||||
return __('Displays the content of a given WordPress shortcode. Can be useful to insert content from other plugins inside a WP Ultimo checkout form.', 'wp-ultimo');
|
||||
return __('Displays the content of a given WordPress shortcode. Can be useful to insert content from other plugins inside a WP Multisite WaaS checkout form.', 'wp-ultimo');
|
||||
|
||||
} // end get_tooltip;
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class Legacy_Period_Selection_Field_Template extends Base_Field_Template {
|
||||
*/
|
||||
public function get_description() {
|
||||
|
||||
return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'wp-ultimo');
|
||||
return __('Implementation of the layout that shipped with WP Multisite WaaS < 1.10.X.', 'wp-ultimo');
|
||||
|
||||
} // end get_description;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Handles the Admin Notices added by WP Ultimo.
|
||||
* Handles the Admin Notices added by WP Multisite WaaS.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Admin_Notices
|
||||
@ -22,7 +22,7 @@ class Admin_Notices {
|
||||
use \WP_Ultimo\Traits\Singleton;
|
||||
|
||||
/**
|
||||
* Holds the notices added by WP Ultimo.
|
||||
* Holds the notices added by WP Multisite WaaS.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var array
|
||||
@ -114,7 +114,7 @@ class Admin_Notices {
|
||||
} // end if;
|
||||
|
||||
/**
|
||||
* Allow developers to filter admin notices added by WP Ultimo.
|
||||
* Allow developers to filter admin notices added by WP Multisite WaaS.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
|
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Adds a Admin Themes Compatibility for WP Ultimo.
|
||||
* Adds a Admin Themes Compatibility for WP Multisite WaaS.
|
||||
*
|
||||
* @since 1.9.14
|
||||
*/
|
||||
|
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Adds a lighter ajax option to WP Ultimo.
|
||||
* Adds a lighter ajax option to WP Multisite WaaS.
|
||||
*
|
||||
* @since 1.9.14
|
||||
*/
|
||||
@ -313,7 +313,7 @@ class Ajax {
|
||||
|
||||
} // end search_all_models;
|
||||
/**
|
||||
* Search for WP Ultimo settings to help customers find them.
|
||||
* Search for WP Multisite WaaS settings to help customers find them.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
|
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Adds a lighter ajax option to WP Ultimo.
|
||||
* Adds a lighter ajax option to WP Multisite WaaS.
|
||||
*
|
||||
* @since 1.9.14
|
||||
*/
|
||||
@ -146,7 +146,7 @@ class API {
|
||||
public function add_settings() {
|
||||
/*
|
||||
* API & Webhooks
|
||||
* This section holds the API settings of the WP Ultimo Plugin.
|
||||
* This section holds the API settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
wu_register_settings_section('api', array(
|
||||
'title' => __('API & Webhooks', 'wp-ultimo'),
|
||||
@ -157,13 +157,13 @@ class API {
|
||||
|
||||
wu_register_settings_field('api', 'api_header', array(
|
||||
'title' => __('API Settings', 'wp-ultimo'),
|
||||
'desc' => __('Options related to WP Ultimo API endpoints.', 'wp-ultimo'),
|
||||
'desc' => __('Options related to WP Multisite WaaS API endpoints.', 'wp-ultimo'),
|
||||
'type' => 'header',
|
||||
));
|
||||
|
||||
wu_register_settings_field('api', 'enable_api', array(
|
||||
'title' => __('Enable API', 'wp-ultimo'),
|
||||
'desc' => __('Tick this box if you want WP Ultimo to add its own endpoints to the WordPress REST API. This is required for some integrations to work, most notabily, Zapier.', 'wp-ultimo'),
|
||||
'desc' => __('Tick this box if you want WP Multisite WaaS to add its own endpoints to the WordPress REST API. This is required for some integrations to work, most notabily, Zapier.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 1,
|
||||
));
|
||||
@ -235,7 +235,7 @@ class API {
|
||||
|
||||
wu_register_settings_field('api', 'api_log_calls', array(
|
||||
'title' => __('Log API calls (Advanced)', 'wp-ultimo'),
|
||||
'desc' => __('Tick this box if you want to log all calls received via WP Ultimo API endpoints. You can access the logs on WP Ultimo → System Info → Logs.', 'wp-ultimo'),
|
||||
'desc' => __('Tick this box if you want to log all calls received via WP Multisite WaaS API endpoints. You can access the logs on WP Multisite WaaS → System Info → Logs.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
'require' => array(
|
||||
@ -245,13 +245,13 @@ class API {
|
||||
|
||||
wu_register_settings_field('api', 'webhook_header', array(
|
||||
'title' => __('Webhook Settings', 'wp-ultimo'),
|
||||
'desc' => __('Options related to WP Ultimo API webhooks.', 'wp-ultimo'),
|
||||
'desc' => __('Options related to WP Multisite WaaS API webhooks.', 'wp-ultimo'),
|
||||
'type' => 'header',
|
||||
));
|
||||
|
||||
wu_register_settings_field('api', 'webhook_calls_blocking', array(
|
||||
'title' => __('Wait for Response (Advanced)', 'wp-ultimo'),
|
||||
'desc' => __('Tick this box if you want the WP Ultimo\'s webhook calls to wait for the remote server to respond. Keeping this option enabled can have huge effects on your network\'s performance, only enable it if you know what you are doing and need to debug webhook calls.', 'wp-ultimo'),
|
||||
'desc' => __('Tick this box if you want the WP Multisite WaaS\'s webhook calls to wait for the remote server to respond. Keeping this option enabled can have huge effects on your network\'s performance, only enable it if you know what you are doing and need to debug webhook calls.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
));
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Async Calls implementation.
|
||||
* WP Multisite WaaS Async Calls implementation.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Async_Calls
|
||||
@ -22,7 +22,7 @@ use \WP_Ultimo\Dependencies\Amp\Http\Client\HttpClientBuilder;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Async Calls implementation.
|
||||
* WP Multisite WaaS Async Calls implementation.
|
||||
*
|
||||
* @since 2.0.7
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo custom Autoloader.
|
||||
* WP Multisite WaaS custom Autoloader.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Autoloader
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Manages WP Ultimo Core Updates.
|
||||
* Manages WP Multisite WaaS Core Updates.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Core Updates
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Manages WP Ultimo Core Updates.
|
||||
* Manages WP Multisite WaaS Core Updates.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -67,7 +67,7 @@ class Core_Updates {
|
||||
$this->version = class_exists(\WP_Ultimo::class) ? \WP_Ultimo::VERSION : '';
|
||||
|
||||
/**
|
||||
* As WP Ultimo needs to load in wp-ultimo/ directory to work with Sunrise
|
||||
* As WP Multisite WaaS needs to load in wp-ultimo/ directory to work with Sunrise
|
||||
* we can assume the plugin as wp-ultimo/wp-ultimo.php. if it's a mu-plugin
|
||||
* we will assume as wp-ultimo.php.
|
||||
*
|
||||
@ -78,7 +78,7 @@ class Core_Updates {
|
||||
$this->plugin_slug = 'wp-multisite-waas/wp-multisite-waas.php';
|
||||
|
||||
/**
|
||||
* Check for a WP Ultimo Core Updates.
|
||||
* Check for a WP Multisite WaaS Core Updates.
|
||||
*/
|
||||
add_action('upgrader_process_complete', array($this, 'maybe_add_core_update_hooks'), 10, 2);
|
||||
|
||||
@ -92,7 +92,7 @@ class Core_Updates {
|
||||
} // end init;
|
||||
|
||||
/**
|
||||
* Checks if a WP Ultimo core update is being performed and triggers an action if that's the case.
|
||||
* Checks if a WP Multisite WaaS core update is being performed and triggers an action if that's the case.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
@ -120,7 +120,7 @@ class Core_Updates {
|
||||
|
||||
if ($is_a_wp_ultimo_update) {
|
||||
|
||||
function_exists('wu_log_add') && wu_log_add('wp-ultimo-core', __('Updating WP Ultimo Core...', 'wp-ultimo'));
|
||||
function_exists('wu_log_add') && wu_log_add('wp-ultimo-core', __('Updating WP Multisite WaaS Core...', 'wp-ultimo'));
|
||||
|
||||
try {
|
||||
|
||||
|
@ -70,7 +70,7 @@ class Cron {
|
||||
} // end init;
|
||||
|
||||
/**
|
||||
* Creates the recurring schedules for WP Ultimo.
|
||||
* Creates the recurring schedules for WP Multisite WaaS.
|
||||
*
|
||||
* By default, we create a hourly, daily, and monthly schedules.
|
||||
*
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo class to hold current objects
|
||||
* WP Multisite WaaS class to hold current objects
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Current
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo class to hold current objects
|
||||
* WP Multisite WaaS class to hold current objects
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Statistics.
|
||||
* WP Multisite WaaS Dashboard Statistics.
|
||||
*
|
||||
* Log string messages to a file with a timestamp. Useful for debugging.
|
||||
*
|
||||
@ -19,7 +19,7 @@ use \WP_Ultimo\Database\Payments\Payment_Status;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Statistics
|
||||
* WP Multisite WaaS Dashboard Statistics
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Dashboard Widgets
|
||||
* WP Multisite WaaS Dashboard Widgets
|
||||
*
|
||||
* Log string messages to a file with a timestamp. Useful for debugging.
|
||||
*
|
||||
@ -15,7 +15,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo Dashboard Widgets
|
||||
* WP Multisite WaaS Dashboard Widgets
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -91,13 +91,13 @@ class Dashboard_Widgets {
|
||||
*/
|
||||
public function register_network_widgets() {
|
||||
|
||||
add_meta_box('wp-ultimo-setup', __('WP Ultimo - First Steps', 'wp-ultimo'), array($this, 'output_widget_first_steps'), $this->screen_id, 'normal', 'high');
|
||||
add_meta_box('wp-ultimo-setup', __('WP Multisite WaaS - First Steps', 'wp-ultimo'), array($this, 'output_widget_first_steps'), $this->screen_id, 'normal', 'high');
|
||||
|
||||
add_meta_box('wp-ultimo-news', __('WP Ultimo - News & Discussions', 'wp-ultimo'), array($this, 'output_widget_news'), $this->screen_id, 'side', 'low');
|
||||
add_meta_box('wp-ultimo-news', __('WP Multisite WaaS - News & Discussions', 'wp-ultimo'), array($this, 'output_widget_news'), $this->screen_id, 'side', 'low');
|
||||
|
||||
add_meta_box('wp-ultimo-summary', __('WP Ultimo - Summary', 'wp-ultimo'), array($this, 'output_widget_summary'), $this->screen_id, 'normal', 'high');
|
||||
add_meta_box('wp-ultimo-summary', __('WP Multisite WaaS - Summary', 'wp-ultimo'), array($this, 'output_widget_summary'), $this->screen_id, 'normal', 'high');
|
||||
|
||||
add_meta_box('wp-ultimo-activity-stream', __('WP Ultimo - Activity Stream', 'wp-ultimo'), array($this, 'output_widget_activity_stream'), $this->screen_id, 'normal', 'high');
|
||||
add_meta_box('wp-ultimo-activity-stream', __('WP Multisite WaaS - Activity Stream', 'wp-ultimo'), array($this, 'output_widget_activity_stream'), $this->screen_id, 'normal', 'high');
|
||||
|
||||
\WP_Ultimo\UI\Tours::get_instance()->create_tour('dashboard', array(
|
||||
array(
|
||||
@ -105,7 +105,7 @@ class Dashboard_Widgets {
|
||||
'title' => __('Welcome!', 'wp-ultimo'),
|
||||
'text' => array(
|
||||
__('Welcome to your new network dashboard!', 'wp-ultimo'),
|
||||
__('You will notice that <strong>WP Ultimo</strong> adds a couple of useful widgets here so you can keep an eye on how your network is doing.', 'wp-ultimo'),
|
||||
__('You will notice that <strong>WP Multisite WaaS</strong> adds a couple of useful widgets here so you can keep an eye on how your network is doing.', 'wp-ultimo'),
|
||||
),
|
||||
),
|
||||
array(
|
||||
@ -123,7 +123,7 @@ class Dashboard_Widgets {
|
||||
'id' => 'wp-ultimo-menu',
|
||||
'title' => __('Our home', 'wp-ultimo'),
|
||||
'text' => array(
|
||||
__('You can always find WP Ultimo settings and other pages under our menu item, here on the Network-level dashboard. 😃', 'wp-ultimo'),
|
||||
__('You can always find WP Multisite WaaS settings and other pages under our menu item, here on the Network-level dashboard. 😃', 'wp-ultimo'),
|
||||
),
|
||||
'attachTo' => array(
|
||||
'element' => '.toplevel_page_wp-ultimo',
|
||||
|
@ -47,7 +47,7 @@ class Documentation {
|
||||
|
||||
$links = array();
|
||||
|
||||
// WP Ultimo Dashboard
|
||||
// WP Multisite WaaS Dashboard
|
||||
$links['wp-ultimo'] = 'https://help.wpultimo.com/en/articles/4803213-understanding-the-wp-ultimo-dashboard';
|
||||
|
||||
// Settings Page
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Handles Domain Mapping in WP Ultimo.
|
||||
* Handles Domain Mapping in WP Multisite WaaS.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Domain_Mapping
|
||||
@ -15,7 +15,7 @@ use WP_Ultimo\Models\Domain;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Handles Domain Mapping in WP Ultimo.
|
||||
* Handles Domain Mapping in WP Multisite WaaS.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -150,7 +150,7 @@ class Domain_Mapping {
|
||||
// add_action('allowed_http_origin', array($this, 'add_mapped_domains_as_allowed_origins'));
|
||||
|
||||
/**
|
||||
* On WP Ultimo 1.X builds we used Mercator. The Mercator actions and filters are now deprecated.
|
||||
* On WP Multisite WaaS 1.X builds we used Mercator. The Mercator actions and filters are now deprecated.
|
||||
*/
|
||||
if (has_action('mercator_load')) {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo faker
|
||||
* WP Multisite WaaS faker
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Helper
|
||||
@ -15,7 +15,7 @@ use Faker as Lib_Faker;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo faker
|
||||
* WP Multisite WaaS faker
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo helper methods for including and rendering files, assets, etc
|
||||
* WP Multisite WaaS helper methods for including and rendering files, assets, etc
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Helper
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo helper methods for including and rendering files, assets, etc
|
||||
* WP Multisite WaaS helper methods for including and rendering files, assets, etc
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -167,7 +167,7 @@ class Helper {
|
||||
} // end get_folder_url;
|
||||
|
||||
/**
|
||||
* Creates a WP Ultimo folder inside the uploads folder. Returns the path to the folder.
|
||||
* Creates a WP Multisite WaaS folder inside the uploads folder. Returns the path to the folder.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo activation and deactivation hooks
|
||||
* WP Multisite WaaS activation and deactivation hooks
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Hooks
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo activation and deactivation hooks
|
||||
* WP Multisite WaaS activation and deactivation hooks
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -33,12 +33,12 @@ class Hooks {
|
||||
public static function init() {
|
||||
|
||||
/**
|
||||
* Runs on WP Ultimo activation
|
||||
* Runs on WP Multisite WaaS activation
|
||||
*/
|
||||
register_activation_hook(WP_ULTIMO_PLUGIN_FILE, array('WP_Ultimo\Hooks', 'on_activation'));
|
||||
|
||||
/**
|
||||
* Runs on WP Ultimo deactivation
|
||||
* Runs on WP Multisite WaaS deactivation
|
||||
*/
|
||||
register_deactivation_hook(WP_ULTIMO_PLUGIN_FILE, array('WP_Ultimo\Hooks', 'on_deactivation'));
|
||||
|
||||
@ -50,14 +50,14 @@ class Hooks {
|
||||
} // end init;
|
||||
|
||||
/**
|
||||
* Runs when WP Ultimo is activated
|
||||
* Runs when WP Multisite WaaS is activated
|
||||
*
|
||||
* @since 1.9.6 It now uses hook-based approach, it is up to each sub-class to attach their own routines.
|
||||
* @since 1.2.0
|
||||
*/
|
||||
public static function on_activation() {
|
||||
|
||||
wu_log_add('wp-ultimo-core', __('Activating WP Ultimo...', 'wp-ultimo'));
|
||||
wu_log_add('wp-ultimo-core', __('Activating WP Multisite WaaS...', 'wp-ultimo'));
|
||||
|
||||
/*
|
||||
* Set the activation flag
|
||||
@ -97,14 +97,14 @@ class Hooks {
|
||||
} // end on_activation_do;
|
||||
|
||||
/**
|
||||
* Runs when WP Ultimo is deactivated
|
||||
* Runs when WP Multisite WaaS is deactivated
|
||||
*
|
||||
* @since 1.9.6 It now uses hook-based approach, it is up to each sub-class to attach their own routines.
|
||||
* @since 1.2.0
|
||||
*/
|
||||
public static function on_deactivation() {
|
||||
|
||||
wu_log_add('wp-ultimo-core', __('Deactivating WP Ultimo...', 'wp-ultimo'));
|
||||
wu_log_add('wp-ultimo-core', __('Deactivating WP Multisite WaaS...', 'wp-ultimo'));
|
||||
|
||||
/*
|
||||
* Update the sunrise meta file.
|
||||
|
@ -2,7 +2,7 @@
|
||||
/**
|
||||
* License Handler
|
||||
*
|
||||
* Handles WP Ultimo activation.
|
||||
* Handles WP Multisite WaaS activation.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage License
|
||||
@ -18,7 +18,7 @@ use WP_Ultimo\Dependencies\Psr\Log\LogLevel;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Handles WP Ultimo activation.
|
||||
* Handles WP Multisite WaaS activation.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -134,7 +134,7 @@ class License {
|
||||
|
||||
if (wu_request('wp-ultimo-activation') === 'success') {
|
||||
|
||||
WP_Ultimo()->notices->add(__('WP Ultimo successfully activated!', 'wp-ultimo'), 'success', 'network-admin', false, array());
|
||||
WP_Ultimo()->notices->add(__('WP Multisite WaaS successfully activated!', 'wp-ultimo'), 'success', 'network-admin', false, array());
|
||||
|
||||
} // end if;
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Adds a lighter ajax option to WP Ultimo.
|
||||
* Adds a lighter ajax option to WP Multisite WaaS.
|
||||
*
|
||||
* @since 1.9.14
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Logger
|
||||
* WP Multisite WaaS Logger
|
||||
*
|
||||
* Log string messages to a file with a timestamp. Useful for debugging.
|
||||
*
|
||||
@ -18,7 +18,7 @@ use WP_Ultimo\Dependencies\Psr\Log\AbstractLogger;
|
||||
use WP_Ultimo\Dependencies\Psr\Log\LogLevel;
|
||||
|
||||
/**
|
||||
* WP Ultimo Logger
|
||||
* WP Multisite WaaS Logger
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -194,7 +194,7 @@ class Maintenance_Mode {
|
||||
} // end toggle_maintenance_mode;
|
||||
|
||||
/**
|
||||
* Filter the WP Ultimo settings to add Jumper options
|
||||
* Filter the WP Multisite WaaS settings to add Jumper options
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
|
@ -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);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo helper class to handle global registering of scripts and styles.
|
||||
* WP Multisite WaaS helper class to handle global registering of scripts and styles.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Scripts
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo helper class to handle global registering of scripts and styles.
|
||||
* WP Multisite WaaS helper class to handle global registering of scripts and styles.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -76,7 +76,7 @@ class Scripts {
|
||||
} // end register_style;
|
||||
|
||||
/**
|
||||
* Registers the default WP Ultimo scripts.
|
||||
* Registers the default WP Multisite WaaS scripts.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
@ -234,7 +234,7 @@ class Scripts {
|
||||
$long_date_formats = array_map('wu_convert_php_date_format_to_moment_js_format', array(
|
||||
'LT' => $time_format,
|
||||
'LTS' => str_replace(':i', ':i:s', (string) $time_format),
|
||||
/* translators: the day/month/year date format used by WP Ultimo. You can changed it to localize this date format to your language. the default value is d/m/Y, which is the format 31/12/2021. */
|
||||
/* translators: the day/month/year date format used by WP Multisite WaaS. You can changed it to localize this date format to your language. the default value is d/m/Y, which is the format 31/12/2021. */
|
||||
'L' => __('d/m/Y', 'wp-ultimo'),
|
||||
'LL' => $date_format,
|
||||
'LLL' => sprintf('%s %s', $date_format, $time_format),
|
||||
@ -272,7 +272,7 @@ class Scripts {
|
||||
} // end localize_moment;
|
||||
|
||||
/**
|
||||
* Registers the default WP Ultimo styles.
|
||||
* Registers the default WP Multisite WaaS styles.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo settings helper class.
|
||||
* WP Multisite WaaS settings helper class.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Settings
|
||||
@ -16,7 +16,7 @@ use WP_Ultimo\UI\Field;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo settings helper class.
|
||||
* WP Multisite WaaS settings helper class.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -56,10 +56,6 @@ class Settings {
|
||||
*/
|
||||
public function init() {
|
||||
|
||||
$this->get_all();
|
||||
|
||||
add_action('wp_ultimo_load', array($this, 'default_sections'), 1);
|
||||
|
||||
add_action('init', array($this, 'handle_legacy_filters'), 2);
|
||||
|
||||
add_action('wu_render_settings', array($this, 'handle_legacy_scripts'));
|
||||
@ -149,7 +145,7 @@ class Settings {
|
||||
} // end force_plugins_menu;
|
||||
|
||||
/**
|
||||
* Get all the settings from WP Ultimo
|
||||
* Get all the settings from WP Multisite WaaS
|
||||
*
|
||||
* @param bool $check_caps If we should remove the settings the user does not have rights to see.
|
||||
* @return array Array containing all the settings
|
||||
@ -231,7 +227,7 @@ class Settings {
|
||||
} // end save_setting;
|
||||
|
||||
/**
|
||||
* Save WP Ultimo Settings
|
||||
* Save WP Multisite WaaS Settings
|
||||
*
|
||||
* This function loops through the settings sections and saves the settings
|
||||
* after validating them.
|
||||
@ -239,7 +235,7 @@ class Settings {
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param array $settings_to_save Array containing the settings to save.
|
||||
* @param boolean $reset If true, WP Ultimo will override the saved settings with the default values.
|
||||
* @param boolean $reset If true, WP Multisite WaaS will override the saved settings with the default values.
|
||||
* @return array
|
||||
*/
|
||||
public function save_settings($settings_to_save = array(), $reset = false) {
|
||||
@ -288,7 +284,7 @@ class Settings {
|
||||
} // end foreach;
|
||||
|
||||
/**
|
||||
* Allow developers to filter settings before save by WP Ultimo.
|
||||
* Allow developers to filter settings before save by WP Multisite WaaS.
|
||||
*
|
||||
* @since 2.0.18
|
||||
*
|
||||
@ -318,6 +314,10 @@ class Settings {
|
||||
*/
|
||||
public function get_sections() {
|
||||
|
||||
if ( $this->sections ) {
|
||||
return $this->sections;
|
||||
}
|
||||
$this->default_sections();
|
||||
$this->sections = apply_filters('wu_settings_get_sections', array(
|
||||
|
||||
/*
|
||||
@ -522,10 +522,11 @@ class Settings {
|
||||
|
||||
});
|
||||
|
||||
$settings = $this->get_all();
|
||||
/*
|
||||
* Makes sure we install the default value if it is not set yet.
|
||||
*/
|
||||
if (isset($atts['default']) && $atts['default'] !== null && !isset($this->settings[$field_slug])) {
|
||||
if (isset($atts['default']) && $atts['default'] !== null && !isset($settings[$field_slug])) {
|
||||
|
||||
$this->save_setting($field_slug, $atts['default']);
|
||||
|
||||
@ -534,7 +535,7 @@ class Settings {
|
||||
} // end add_field;
|
||||
|
||||
/**
|
||||
* Register the WP Ultimo default sections and fields.
|
||||
* Register the WP Multisite WaaS default sections and fields.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return void
|
||||
@ -542,7 +543,7 @@ class Settings {
|
||||
public function default_sections() {
|
||||
/*
|
||||
* General Settings
|
||||
* This section holds the General settings of the WP Ultimo Plugin.
|
||||
* This section holds the General settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
|
||||
// Comma separated string of page ids that are already being used as default option
|
||||
@ -607,7 +608,7 @@ class Settings {
|
||||
|
||||
$this->add_field('general', 'currency_symbol', array(
|
||||
'title' => __('Currency', 'wp-ultimo'),
|
||||
'desc' => __('Select the currency to be used in WP Ultimo.', 'wp-ultimo'),
|
||||
'desc' => __('Select the currency to be used in WP Multisite WaaS.', 'wp-ultimo'),
|
||||
'type' => 'select',
|
||||
'default' => 'USD',
|
||||
'options' => 'wu_get_currencies',
|
||||
@ -652,7 +653,7 @@ class Settings {
|
||||
|
||||
/*
|
||||
* Login & Registration
|
||||
* This section holds the Login & Registration settings of the WP Ultimo Plugin.
|
||||
* This section holds the Login & Registration settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
|
||||
$this->add_section('login-and-registration', array(
|
||||
@ -774,7 +775,7 @@ class Settings {
|
||||
|
||||
$this->add_field('login-and-registration', 'main_site_default_role', array(
|
||||
'title' => __('Add to Main Site with Role...', 'wp-ultimo'),
|
||||
'desc' => __('Select the role WP Ultimo should use when adding the user to the main site of your network. Be careful.', 'wp-ultimo'),
|
||||
'desc' => __('Select the role WP Multisite WaaS should use when adding the user to the main site of your network. Be careful.', 'wp-ultimo'),
|
||||
'type' => 'select',
|
||||
'default' => 'subscriber',
|
||||
'options' => 'wu_get_roles_as_options',
|
||||
@ -787,7 +788,7 @@ class Settings {
|
||||
|
||||
/*
|
||||
* Memberships
|
||||
* This section holds the Membership settings of the WP Ultimo Plugin.
|
||||
* This section holds the Membership settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
|
||||
$this->add_section('memberships', array(
|
||||
@ -823,7 +824,7 @@ class Settings {
|
||||
|
||||
$this->add_field('memberships', 'block_frontend_grace_period', array(
|
||||
'title' => __('Frontend Block Grace Period', 'wp-ultimo'),
|
||||
'desc' => __('Select the number of days WP Ultimo should wait after the membership goes inactive before blocking the frontend access. Leave 0 to block immediately after the membership becomes inactive.', 'wp-ultimo'),
|
||||
'desc' => __('Select the number of days WP Multisite WaaS should wait after the membership goes inactive before blocking the frontend access. Leave 0 to block immediately after the membership becomes inactive.', 'wp-ultimo'),
|
||||
'type' => 'number',
|
||||
'default' => 0,
|
||||
'min' => 0,
|
||||
@ -865,7 +866,7 @@ class Settings {
|
||||
|
||||
$this->add_field('memberships', 'block_sites_on_downgrade', array(
|
||||
'title' => __('Block Sites on Downgrade', 'wp-ultimo'),
|
||||
'desc' => __('Choose how WP Ultimo should handle client sites above their plan quota on downgrade.', 'wp-ultimo'),
|
||||
'desc' => __('Choose how WP Multisite WaaS should handle client sites above their plan quota on downgrade.', 'wp-ultimo'),
|
||||
'type' => 'select',
|
||||
'default' => 'none',
|
||||
'options' => array(
|
||||
@ -899,7 +900,7 @@ class Settings {
|
||||
|
||||
$this->add_field('memberships', 'emulated_post_types_explanation', array(
|
||||
'type' => 'note',
|
||||
'desc' => __('By default, WP Ultimo only allows super admins to limit post types that are registered on the main site. This makes sense from a technical stand-point but it also forces you to have plugins network-activated in order to be able to set limitations for their custom post types. Using this option, you can emulate the registering of a post type. This will register them on the main site and allow you to create limits for them on your products.', 'wp-ultimo'),
|
||||
'desc' => __('By default, WP Multisite WaaS only allows super admins to limit post types that are registered on the main site. This makes sense from a technical stand-point but it also forces you to have plugins network-activated in order to be able to set limitations for their custom post types. Using this option, you can emulate the registering of a post type. This will register them on the main site and allow you to create limits for them on your products.', 'wp-ultimo'),
|
||||
'classes' => '',
|
||||
'wrapper_classes' => '',
|
||||
));
|
||||
@ -977,7 +978,7 @@ class Settings {
|
||||
|
||||
/*
|
||||
* Site Templates
|
||||
* This section holds the Site Templates settings of the WP Ultimo Plugin.
|
||||
* This section holds the Site Templates settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
|
||||
$this->add_section('sites', array(
|
||||
@ -1018,7 +1019,7 @@ class Settings {
|
||||
|
||||
$this->add_field('sites', 'enable_screenshot_generator', array(
|
||||
'title' => __('Enable Screenshot Generator', 'wp-ultimo'),
|
||||
'desc' => __('With this option is enabled, WP Ultimo will take a screenshot for every newly created site on your network and set the resulting image as that site\'s featured image. This features requires a valid license key to work and it is not supported for local sites.', 'wp-ultimo'),
|
||||
'desc' => __('With this option is enabled, WP Multisite WaaS will take a screenshot for every newly created site on your network and set the resulting image as that site\'s featured image. This features requires a valid license key to work and it is not supported for local sites.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 1,
|
||||
));
|
||||
@ -1086,7 +1087,7 @@ class Settings {
|
||||
|
||||
/*
|
||||
* Payment Gateways
|
||||
* This section holds the Payment Gateways settings of the WP Ultimo Plugin.
|
||||
* This section holds the Payment Gateways settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
|
||||
$this->add_section('payment-gateways', array(
|
||||
@ -1112,7 +1113,7 @@ class Settings {
|
||||
|
||||
$this->add_field('payment-gateways', 'allow_trial_without_payment_method', array(
|
||||
'title' => __('Allow Trials without Payment Method', 'wp-ultimo'),
|
||||
'desc' => __('By default, WP Ultimo asks customers to add a payment method on sign-up even if a trial period is present. Enable this option to only ask for a payment method when the trial period is over.', 'wp-ultimo'),
|
||||
'desc' => __('By default, WP Multisite WaaS asks customers to add a payment method on sign-up even if a trial period is present. Enable this option to only ask for a payment method when the trial period is over.', 'wp-ultimo'),
|
||||
'tooltip' => '',
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
@ -1128,7 +1129,7 @@ class Settings {
|
||||
|
||||
$this->add_field('payment-gateways', 'invoice_numbering_scheme', array(
|
||||
'title' => __('Invoice Numbering Scheme', 'wp-ultimo'),
|
||||
'desc' => __('What should WP Ultimo use as the invoice number?', 'wp-ultimo'),
|
||||
'desc' => __('What should WP Multisite WaaS use as the invoice number?', 'wp-ultimo'),
|
||||
'type' => 'select',
|
||||
'default' => 'reference_code',
|
||||
'tooltip' => '',
|
||||
@ -1172,7 +1173,7 @@ class Settings {
|
||||
|
||||
/*
|
||||
* Emails
|
||||
* This section holds the Email settings of the WP Ultimo Plugin.
|
||||
* This section holds the Email settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
$this->add_section('emails', array(
|
||||
'title' => __('Emails', 'wp-ultimo'),
|
||||
@ -1184,7 +1185,7 @@ class Settings {
|
||||
|
||||
/*
|
||||
* Domain Mapping
|
||||
* This section holds the Domain Mapping settings of the WP Ultimo Plugin.
|
||||
* This section holds the Domain Mapping settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
|
||||
$this->add_section('domain-mapping', array(
|
||||
@ -1210,7 +1211,7 @@ class Settings {
|
||||
|
||||
/*
|
||||
* Integrations
|
||||
* This section holds the Integrations settings of the WP Ultimo Plugin.
|
||||
* This section holds the Integrations settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
|
||||
$this->add_section('integrations', array(
|
||||
@ -1230,7 +1231,7 @@ class Settings {
|
||||
|
||||
/*
|
||||
* Other Options
|
||||
* This section holds the Other Options settings of the WP Ultimo Plugin.
|
||||
* This section holds the Other Options settings of the WP Multisite WaaS Plugin.
|
||||
*/
|
||||
|
||||
$this->add_section('other', array(
|
||||
@ -1250,7 +1251,7 @@ class Settings {
|
||||
|
||||
$this->add_field('other', 'hide_tours', array(
|
||||
'title' => __('Hide UI Tours', 'wp-ultimo') . $preview_image,
|
||||
'desc' => __('The UI tours showed by WP Ultimo should permanently hide themselves after being seen but if they persist for whatever reason, toggle this option to force them into their viewed state - which will prevent them from showing up again.', 'wp-ultimo'),
|
||||
'desc' => __('The UI tours showed by WP Multisite WaaS should permanently hide themselves after being seen but if they persist for whatever reason, toggle this option to force them into their viewed state - which will prevent them from showing up again.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
));
|
||||
@ -1259,14 +1260,14 @@ class Settings {
|
||||
|
||||
$this->add_field('other', 'disable_image_zoom', array(
|
||||
'title' => __('Disable "Hover to Zoom"', 'wp-ultimo') . $preview_image_2,
|
||||
'desc' => __('By default, WP Ultimo adds a "hover to zoom" feature, allowing network admins to see larger version of site screenshots and other images across the UI in full-size when hovering over them. You can disable that feature here. Preview tags like the above are not affected.', 'wp-ultimo'),
|
||||
'desc' => __('By default, WP Multisite WaaS adds a "hover to zoom" feature, allowing network admins to see larger version of site screenshots and other images across the UI in full-size when hovering over them. You can disable that feature here. Preview tags like the above are not affected.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
));
|
||||
|
||||
$this->add_field('other', 'error_reporting_header', array(
|
||||
'title' => __('Logging', 'wp-ultimo'),
|
||||
'desc' => __('Log WP Ultimo data. This is useful for debugging purposes.', 'wp-ultimo'),
|
||||
'desc' => __('Log WP Multisite WaaS data. This is useful for debugging purposes.', 'wp-ultimo'),
|
||||
'type' => 'header',
|
||||
));
|
||||
|
||||
@ -1284,8 +1285,8 @@ class Settings {
|
||||
));
|
||||
|
||||
$this->add_field('other', 'enable_error_reporting', array(
|
||||
'title' => __('Send Error Data to WP Ultimo Developers', 'wp-ultimo'),
|
||||
'desc' => __('With this option enabled, every time your installation runs into an error related to WP Ultimo, that error data will be sent to us. No sensitive data gets collected, only environmental stuff (e.g. if this is this is a subdomain network, etc).', 'wp-ultimo'),
|
||||
'title' => __('Send Error Data to WP Multisite WaaS Developers', 'wp-ultimo'),
|
||||
'desc' => __('With this option enabled, every time your installation runs into an error related to WP Multisite WaaS, that error data will be sent to us. No sensitive data gets collected, only environmental stuff (e.g. if this is this is a subdomain network, etc).', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 1,
|
||||
));
|
||||
@ -1332,7 +1333,7 @@ class Settings {
|
||||
$this->add_field('other', 'security_mode', array(
|
||||
'title' => __('Security Mode', 'wp-ultimo'),
|
||||
// Translators: Placeholder adds the security mode key and current site url with query string
|
||||
'desc' => sprintf(__('Only WP Ultimo and other must-use plugins will run on your WordPress install while this option is enabled.<div class="wu-mt-2"><b>Important:</b> Copy the following URL to disable security mode if something goes wrong and this page becomes unavailable:<code>%2$s</code></div>', 'wp-ultimo'), $security_mode_key, get_site_url() . $security_mode_key),
|
||||
'desc' => sprintf(__('Only WP Multisite WaaS and other must-use plugins will run on your WordPress install while this option is enabled.<div class="wu-mt-2"><b>Important:</b> Copy the following URL to disable security mode if something goes wrong and this page becomes unavailable:<code>%2$s</code></div>', 'wp-ultimo'), $security_mode_key, get_site_url() . $security_mode_key),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
));
|
||||
@ -1341,7 +1342,7 @@ class Settings {
|
||||
|
||||
$this->add_field('other', 'uninstall_wipe_tables', array(
|
||||
'title' => __('Remove Data on Uninstall', 'wp-ultimo'),
|
||||
'desc' => __('Remove all saved data for WP Ultimo when the plugin is uninstalled.', 'wp-ultimo'),
|
||||
'desc' => __('Remove all saved data for WP Multisite WaaS when the plugin is uninstalled.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
));
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo activation and deactivation hooks
|
||||
* WP Multisite WaaS activation and deactivation hooks
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Sunrise
|
||||
@ -15,7 +15,7 @@ use WP_Ultimo\Dependencies\Psr\Log\LogLevel;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo activation and deactivation hooks
|
||||
* WP Multisite WaaS activation and deactivation hooks
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ -178,7 +178,7 @@ class Sunrise {
|
||||
\WP_Ultimo\Sunrise::load_dependencies();
|
||||
|
||||
/*
|
||||
* Handles WP Ultimo core updates
|
||||
* Handles WP Multisite WaaS core updates
|
||||
*/
|
||||
\WP_Ultimo\Core_Updates::get_instance();
|
||||
|
||||
@ -198,7 +198,7 @@ class Sunrise {
|
||||
\WP_Ultimo\Limits\Theme_Limits::get_instance();
|
||||
|
||||
/**
|
||||
* Define the WP Ultimo main debug constant.
|
||||
* Define the WP Multisite WaaS main debug constant.
|
||||
*/
|
||||
!defined('WP_ULTIMO_DEBUG') && define('WP_ULTIMO_DEBUG', false);
|
||||
|
||||
@ -215,7 +215,7 @@ class Sunrise {
|
||||
|
||||
} else {
|
||||
/**
|
||||
* Disable all plugins except WP Ultimo
|
||||
* Disable all plugins except WP Multisite WaaS
|
||||
*/
|
||||
add_filter('option_active_plugins', fn() => array());
|
||||
|
||||
@ -369,7 +369,7 @@ class Sunrise {
|
||||
* Method for imputing Sunrise data at wp-ultimo-system-info table.
|
||||
*
|
||||
* @since 2.0.11
|
||||
* @param array $sys_info Array containing WP Ultimo installation info.
|
||||
* @param array $sys_info Array containing WP Multisite WaaS installation info.
|
||||
* @return array Returns the array, modified with the sunrise data.
|
||||
*/
|
||||
public static function system_info($sys_info) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Manages WP Ultimo v1 Unsupported notices and other checks.
|
||||
* Manages WP Multisite WaaS v1 Unsupported notices and other checks.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Unsupported
|
||||
@ -15,14 +15,14 @@ use WP_Ultimo\Installers\Migrator;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Manages WP Ultimo v1 Unsupported notices and other checks.
|
||||
* Manages WP Multisite WaaS v1 Unsupported notices and other checks.
|
||||
*
|
||||
* @since 2.0.5
|
||||
*/
|
||||
class Unsupported {
|
||||
|
||||
/**
|
||||
* Keeps track of add-ons that if left activated would cause WP Ultimo to crash.
|
||||
* Keeps track of add-ons that if left activated would cause WP Multisite WaaS to crash.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
@ -204,7 +204,7 @@ class Unsupported {
|
||||
} // end force_updater;
|
||||
|
||||
/**
|
||||
* Maybe add necessary admin notices about installing WP Ultimo version 2.
|
||||
* Maybe add necessary admin notices about installing WP Multisite WaaS version 2.
|
||||
*
|
||||
* @since 2.0.5
|
||||
* @return void
|
||||
@ -228,7 +228,7 @@ class Unsupported {
|
||||
*/
|
||||
if (Migrator::is_migration_done() === false && Requirements::run_setup() === false) {
|
||||
|
||||
$message[] = '<p>' . __('It seems that you have not run the WP Ultimo upgrader yet. That is the first thing we need to do.', 'wp-ultimo') . '</p>';
|
||||
$message[] = '<p>' . __('It seems that you have not run the WP Multisite WaaS upgrader yet. That is the first thing we need to do.', 'wp-ultimo') . '</p>';
|
||||
|
||||
$message[] = sprintf('<a class="button" href="%s">%s</a>', network_admin_url('admin.php?page=wp-ultimo-setup'), __('Visit the Installer to finish the upgrade →', 'wp-ultimo'));
|
||||
|
||||
@ -296,7 +296,7 @@ class Unsupported {
|
||||
|
||||
} // end if;
|
||||
|
||||
$message = array_merge(array('<p>' . __('<strong>Thanks for updating to WP Ultimo version 2.0</strong>!', 'wp-ultimo') . '</p>'), $message);
|
||||
$message = array_merge(array('<p>' . __('<strong>Thanks for updating to WP Multisite WaaS version 2.0</strong>!', 'wp-ultimo') . '</p>'), $message);
|
||||
|
||||
$message = implode('', $message);
|
||||
|
||||
@ -313,7 +313,7 @@ class Unsupported {
|
||||
} // end maybe_add_notices;
|
||||
|
||||
/**
|
||||
* A fallback way to display admin notices when WP Ultimo is not fully loaded yet.
|
||||
* A fallback way to display admin notices when WP Multisite WaaS is not fully loaded yet.
|
||||
*
|
||||
* @since 2.0.5
|
||||
*
|
||||
@ -344,7 +344,7 @@ class Unsupported {
|
||||
'slug' => 'wp-ultimo-woocommerce',
|
||||
'version' => '2.0.0',
|
||||
// translators: %s is a link to the plugins page.
|
||||
'desc' => __('A new version with full support for WP Ultimo 2.0 is already out. An update will appear on your %s page.', 'wp-ultimo'),
|
||||
'desc' => __('A new version with full support for WP Multisite WaaS 2.0 is already out. An update will appear on your %s page.', 'wp-ultimo'),
|
||||
),
|
||||
'\WP_Ultimo_PTM' => array(
|
||||
'name' => __('Plugin and Theme Manager', 'wp-ultimo'),
|
||||
@ -352,20 +352,20 @@ class Unsupported {
|
||||
'slug' => 'wp-ultimo-plugin-and-theme-manager',
|
||||
'version' => '2.0.0',
|
||||
// translators: %s is a link to the plugins page.
|
||||
'desc' => __('Although still supported, a new version fully compatible with WP Ultimo 2.0 is available. An update will appear on your %s page.', 'wp-ultimo'),
|
||||
'desc' => __('Although still supported, a new version fully compatible with WP Multisite WaaS 2.0 is available. An update will appear on your %s page.', 'wp-ultimo'),
|
||||
),
|
||||
'\WU_Multiple_Logins' => array(
|
||||
'name' => __('Multiple Accounts', 'wp-ultimo'),
|
||||
'replacement' => 'core',
|
||||
'version' => '2.0.0',
|
||||
'desc' => __('Multiple Accounts is now part of WP Ultimo core. It needs to be activated on WP Ultimo → Settings → Login and Registration, though. You can safely remove this add-on after turning the new option on.', 'wp-ultimo'),
|
||||
'desc' => __('Multiple Accounts is now part of WP Multisite WaaS core. It needs to be activated on WP Multisite WaaS → Settings → Login and Registration, though. You can safely remove this add-on after turning the new option on.', 'wp-ultimo'),
|
||||
),
|
||||
'\WP_Ultimo_Blocks' => array(
|
||||
'name' => __('Blocks', 'wp-ultimo'),
|
||||
'replacement' => 'core',
|
||||
'version' => '2.0.0',
|
||||
// translators: %s is a link to the plugins page.
|
||||
'desc' => __('Blocks are now part of WP Ultimo core, although with different blocks available. You can safely delete this add-on on your %s page.', 'wp-ultimo'),
|
||||
'desc' => __('Blocks are now part of WP Multisite WaaS core, although with different blocks available. You can safely delete this add-on on your %s page.', 'wp-ultimo'),
|
||||
),
|
||||
'\WU_Ultimo_Domain_Seller' => array(
|
||||
'name' => __('Domain Seller', 'wp-ultimo'),
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo User_Switching
|
||||
* WP Multisite WaaS User_Switching
|
||||
*
|
||||
* Log string messages to a file with a timestamp. Useful for debugging.
|
||||
*
|
||||
@ -15,7 +15,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo User_Switching
|
||||
* WP Multisite WaaS User_Switching
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -13,7 +13,7 @@ namespace WP_Ultimo;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Adds a lighter ajax option to WP Ultimo.
|
||||
* Adds a lighter ajax option to WP Multisite WaaS.
|
||||
*
|
||||
* @since 1.9.14
|
||||
*/
|
||||
|
@ -244,7 +244,7 @@ class Whitelabel {
|
||||
|
||||
wu_register_settings_field('whitelabel', 'hide_sites_menu', array(
|
||||
'title' => __('Hide Sites Admin Menu', 'wp-ultimo'),
|
||||
'desc' => __('We recommend that you manage all of your sites using the WP Ultimo → Sites page. To avoid confusion, you can hide the default "Sites" item from the WordPress admin menu by toggling this option.', 'wp-ultimo'),
|
||||
'desc' => __('We recommend that you manage all of your sites using the WP Multisite WaaS → Sites page. To avoid confusion, you can hide the default "Sites" item from the WordPress admin menu by toggling this option.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
));
|
||||
|
@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Discount Code Compatibility Layer
|
||||
*
|
||||
* Handles discount code compatibility back-ports to WP Ultimo 1.X builds.
|
||||
* Handles discount code compatibility back-ports to WP Multisite WaaS 1.X builds.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Compat/Discount_Code_Compat
|
||||
@ -15,7 +15,7 @@ namespace WP_Ultimo\Compat;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Handles discount code compatibility back-ports to WP Ultimo 1.X builds.
|
||||
* Handles discount code compatibility back-ports to WP Multisite WaaS 1.X builds.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -227,7 +227,7 @@ class General_Compat {
|
||||
*
|
||||
* This plugin has a setting that replaces quotes on the content.
|
||||
* This breaks our moment configuration strings, and is generally
|
||||
* not compatible with WP Ultimo vue templates.
|
||||
* not compatible with WP Multisite WaaS vue templates.
|
||||
*
|
||||
* Here on this filter, we manually disable the smart quotes
|
||||
* settings to prevent that kind of processing, as well as add
|
||||
@ -255,7 +255,7 @@ class General_Compat {
|
||||
*/
|
||||
public function add_wp_typography_warning_message() {
|
||||
|
||||
WP_Ultimo()->notices->add(__('WP Typography "Smart Quotes" replacement is not compatible with WP Ultimo and will be automatically disabled.', 'wp-ultimo'), 'warning');
|
||||
WP_Ultimo()->notices->add(__('WP Typography "Smart Quotes" replacement is not compatible with WP Multisite WaaS and will be automatically disabled.', 'wp-ultimo'), 'warning');
|
||||
|
||||
} // end add_wp_typography_warning_message;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Gutenberg Support
|
||||
*
|
||||
* Allows WP Ultimo to filter Gutenberg thingys.
|
||||
* Allows WP Multisite WaaS to filter Gutenberg thingys.
|
||||
*
|
||||
* @since 1.9.14
|
||||
* @author Arindo Duque
|
||||
|
@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Legacy Shortcodes
|
||||
*
|
||||
* Handles WP Ultimo 1.X Legacy Shortcodes
|
||||
* Handles WP Multisite WaaS 1.X Legacy Shortcodes
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Compat
|
||||
@ -17,7 +17,7 @@ defined('ABSPATH') || exit;
|
||||
use WP_Ultimo\Database\Memberships\Membership_Status;
|
||||
|
||||
/**
|
||||
* Handles WP Ultimo 1.X Legacy Shortcodes
|
||||
* Handles WP Multisite WaaS 1.X Legacy Shortcodes
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Products Compatibility Layer
|
||||
*
|
||||
* Handles product compatibility back-ports to WP Ultimo 1.X builds.
|
||||
* Handles product compatibility back-ports to WP Multisite WaaS 1.X builds.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Compat/Product_Compat
|
||||
@ -15,7 +15,7 @@ namespace WP_Ultimo\Compat;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Handles product compatibility back-ports to WP Ultimo 1.X builds.
|
||||
* Handles product compatibility back-ports to WP Multisite WaaS 1.X builds.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo ENUM base class.
|
||||
* WP Multisite WaaS ENUM base class.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage WP_Ultimo\Database\Engine
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Database\Engine;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* WP Ultimo ENUM base class.
|
||||
* WP Multisite WaaS ENUM base class.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
@ -24,7 +24,7 @@ class Debug {
|
||||
use \WP_Ultimo\Traits\Singleton;
|
||||
|
||||
/**
|
||||
* The registry of WP Ultimo admin pages.
|
||||
* The registry of WP Multisite WaaS admin pages.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @var array
|
||||
@ -415,7 +415,7 @@ class Debug {
|
||||
$fields = array(
|
||||
'reset_only_fake_data' => array(
|
||||
'title' => __('Only reset generated data.', 'wp-ultimo'),
|
||||
'desc' => __('Toggle this option to only remove data that was added by the generator previously. Untoggling this option will reset ALL data in WP Ultimo tables.', 'wp-ultimo'),
|
||||
'desc' => __('Toggle this option to only remove data that was added by the generator previously. Untoggling this option will reset ALL data in WP Multisite WaaS tables.', 'wp-ultimo'),
|
||||
'type' => 'toggle',
|
||||
'value' => true,
|
||||
'html_attr' => array(
|
||||
@ -502,7 +502,7 @@ class Debug {
|
||||
$fields = array(
|
||||
'reset_note' => array(
|
||||
'type' => 'note',
|
||||
'desc' => __('This action will drop the WP Ultimo database tables and is irreversable.', 'wp-ultimo'),
|
||||
'desc' => __('This action will drop the WP Multisite WaaS database tables and is irreversable.', 'wp-ultimo'),
|
||||
),
|
||||
'submit_button' => array(
|
||||
'title' => __('Drop Database Tables →', 'wp-ultimo'),
|
||||
@ -603,7 +603,7 @@ class Debug {
|
||||
} // end load;
|
||||
|
||||
/**
|
||||
* Add a WP Ultimo page to the registry.
|
||||
* Add a WP Multisite WaaS page to the registry.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
@ -1007,7 +1007,7 @@ class Debug {
|
||||
$the_prefix = 'wp-ultimo_';
|
||||
|
||||
/*
|
||||
* List of WP Ultimo options.
|
||||
* List of WP Multisite WaaS options.
|
||||
* Format: $option_name => $should_use_prefix
|
||||
*/
|
||||
$options = array(
|
||||
|
@ -447,7 +447,7 @@ class WU_Multi_Network {
|
||||
* There is plans to re-add something like this in the future.
|
||||
* For now, this is deprecated and declaring it have no side-effects.
|
||||
* This class is here to prevent fatal errors when plugin developers
|
||||
* used it on their WP Ultimo extensions.
|
||||
* used it on their WP Multisite WaaS extensions.
|
||||
*
|
||||
* @deprecated 2.0.0
|
||||
*/
|
||||
|
@ -374,7 +374,7 @@ class Toolkit {
|
||||
} // end add_overview_panel;
|
||||
|
||||
/**
|
||||
* Manually enqueues query monitor and WP Ultimo styles.
|
||||
* Manually enqueues query monitor and WP Multisite WaaS styles.
|
||||
*
|
||||
* @since 2.0.11
|
||||
*
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo overview collector.
|
||||
* WP Multisite WaaS overview collector.
|
||||
*
|
||||
* @package query-monitor
|
||||
* @since 2.0.11
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* The WP Ultimo Overview QM Panel
|
||||
* The WP Multisite WaaS Overview QM Panel
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Development\Query_Monitor\Panel
|
||||
@ -13,7 +13,7 @@ namespace WP_Ultimo\Development\Query_Monitor\Panel;
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* The WP Ultimo Overview QM Panel
|
||||
* The WP Multisite WaaS Overview QM Panel
|
||||
*
|
||||
* @since 2.0.11
|
||||
*/
|
||||
@ -44,7 +44,7 @@ class Overview extends \QM_Output_Html {
|
||||
*/
|
||||
public function name() {
|
||||
|
||||
return __('WP Ultimo', 'wp-ultimo');
|
||||
return __('WP Multisite WaaS', 'wp-ultimo');
|
||||
|
||||
} // end name;
|
||||
|
||||
@ -108,7 +108,7 @@ class Overview extends \QM_Output_Html {
|
||||
|
||||
$new_menu = array(
|
||||
'wp-ultimo' => $this->menu(array(
|
||||
'title' => esc_html__('WP Ultimo', 'wp-ultimo'),
|
||||
'title' => esc_html__('WP Multisite WaaS', 'wp-ultimo'),
|
||||
'id' => 'wp-ultimo',
|
||||
)),
|
||||
);
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Ultimo Runtime Exception
|
||||
* WP Multisite WaaS Runtime Exception
|
||||
*
|
||||
* @package WP_Ultimo\Exception
|
||||
* @since 2.0.11
|
||||
|
@ -10,7 +10,7 @@
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Get all the currencies we use in WP Ultimo
|
||||
* Get all the currencies we use in WP Multisite WaaS
|
||||
*
|
||||
* @return array Return the currencies array.
|
||||
*/
|
||||
@ -270,7 +270,7 @@ function wu_format_currency($value, $currency = null, $format = null, $thousands
|
||||
} // end wu_format_currency;
|
||||
|
||||
/**
|
||||
* Determines if WP Ultimo is using a zero-decimal currency.
|
||||
* Determines if WP Multisite WaaS is using a zero-decimal currency.
|
||||
*
|
||||
* @param string $currency The currency code to check.
|
||||
*
|
||||
|
@ -36,7 +36,7 @@ function wu_get_main_site_upload_dir() {
|
||||
} // end wu_get_main_site_upload_dir;
|
||||
|
||||
/**
|
||||
* Creates a WP Ultimo folder inside the uploads folder - if needed - and return its path.
|
||||
* Creates a WP Multisite WaaS folder inside the uploads folder - if needed - and return its path.
|
||||
*
|
||||
* @since 2.0.11
|
||||
*
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user