-
Notifications
You must be signed in to change notification settings - Fork 0
/
super-admin-performance-boost.php
44 lines (39 loc) · 1.23 KB
/
super-admin-performance-boost.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Super Admin Performance Boost.
*
* @package Super_Admin_Performance_Boost
* @author Per Soderlind
* @copyright 2023 Per Soderlind
* @license GPL-2.0+
*
* @wordpress-plugin
* Plugin Name: Super Admin Performance Boost.
* Plugin URI: https://github.com/soderlind/super-admin-performance
* GitHub Plugin URI: https://github.com/soderlind/super-admin-performance
* Description: Try to aviod using switch_to_blog() and restore_current_blog() when possible.
* Version: 1.1.3
* Author: Per Soderlind
* Author URI: https://soderlind.no
* Network: true
* Text Domain: super-admin-performance
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
declare( strict_types = 1 );
if ( ! defined( 'ABSPATH' ) ) {
wp_die();
}
if ( ! is_multisite() ) {
return;
}
if ( ! class_exists( 'Super_Admin_Sites_List_Table' ) ) {
require_once __DIR__ . '/class-super-admin-sites-list-table.php';
}
if ( ! class_exists( 'Super_Admin_Users_List_Table' ) ) {
require_once __DIR__ . '/class-super-admin-users-list-table.php';
}
if ( ! class_exists( 'Super_Admin_Performance_Boost' ) ) {
require_once __DIR__ . '/class-super-admin-performance-boost.php';
}
new Super_Admin_Performance_Boost();