PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0.7
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0.7
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
← All changes | Inc/Classes/Multisite_Helper.php +10 -10 4.2.214.0.7 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2
3 -namespace PXLBSAdminify\Inc\Classes;
3 +namespace WPAdminify\Inc\Classes;
4 4
5 5 // no direct access allowed
6 6 if ( ! defined( 'ABSPATH' ) ) {
7 7 exit;
@@ -7,9 +7,9 @@
7 7 exit;
8 8 }
9 9
10 10 /**
11 - * @package PXLBSAdminify
11 + * @package WPAdminify
12 12 * Multisite Helper
13 13 *
14 14 * @author Jewel Theme <support@jeweltheme.com>
15 15 */
@@ -29,9 +29,9 @@
29 29 *
30 30 * @return void
31 31 */
32 32 public function is_multisite_supported() {
33 - return ( $this->is_network_active() && apply_filters( 'pxlbsadminify_ms_support', false ) ? true : false );
33 + return ( $this->is_network_active() && apply_filters( 'wp_adminify_ms_support', false ) ? true : false );
34 34 }
35 35
36 36 /**
37 37 * Check if it needed to switch blog
@@ -42,11 +42,11 @@
42 42 if ( ! $this->is_multisite_supported() ) {
43 43 return false;
44 44 }
45 45
46 - global $pxlbsadminify_blueprint;
46 + global $blueprint;
47 47
48 - if ( empty( $pxlbsadminify_blueprint ) || get_current_blog_id() === $pxlbsadminify_blueprint ) {
48 + if ( empty( $blueprint ) || get_current_blog_id() === $blueprint ) {
49 49 return false;
50 50 }
51 51
52 52 return true;
@@ -57,19 +57,19 @@
57 57 *
58 58 * @return array The array of excluded sites.
59 59 */
60 60 public function get_excluded_sites() {
61 - global $pxlbsadminify_blueprint;
61 + global $blueprint;
62 62
63 63 $array = [];
64 64
65 65 // Include blueprint site if it is defined.
66 - if ( ! empty( $pxlbsadminify_blueprint ) ) {
67 - $array[] = $pxlbsadminify_blueprint;
66 + if ( ! empty( $blueprint ) ) {
67 + $array[] = $blueprint;
68 68 }
69 69
70 - if ( get_site_option( 'pxlbsadminify_multisite_exclude' ) ) {
71 - $excluded_sites = get_site_option( 'pxlbsadminify_multisite_exclude' );
70 + if ( get_site_option( 'wp_adminify_multisite_exclude' ) ) {
71 + $excluded_sites = get_site_option( 'wp_adminify_multisite_exclude' );
72 72 $excluded_sites = str_replace( ' ', '', $excluded_sites );
73 73 $excluded_sites = explode( ',', $excluded_sites );
74 74 } else {
75 75 $excluded_sites = [];