PluginProbe
LoginPress | wp-login Custom Login Page Customizer / trunk
LoginPress | wp-login Custom Login Page Customizer vtrunk
6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.3 1.0.4 All 118 releases
loginpress / lib / wpb-sdk / require.php

require.php in LoginPress | wp-login Custom Login Page Customizer trunk, at lib/wpb-sdk/require.php

48 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Loads WPBrigade SDK core classes (single runtime).
4 *
5 * @package wpbrigade_sdk
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11
12 require_once __DIR__ . '/config.php';
13
14 $incoming_sdk_version = defined( 'WPBRIGADE_SDK_VERSION' ) ? WPBRIGADE_SDK_VERSION : '3.2.0';
15
16 if ( ! defined( 'WP_WPBRIGADE_SDK_VERSION' ) ) {
17 define( 'WP_WPBRIGADE_SDK_VERSION', $incoming_sdk_version );
18 }
19
20 $wpb_sdk_runtime_includes = __DIR__ . '/includes';
21
22 // Always merge helpers from this bundle (function_exists guards).
23 require_once $wpb_sdk_runtime_includes . '/wpb-sdk-essential-functions.php';
24
25 if ( ! class_exists( 'WPBRIGADE_Optin_Verification', false ) ) {
26 require_once $wpb_sdk_runtime_includes . '/class-wpb-sdk-optin-verification.php';
27 }
28
29 if ( ! class_exists( 'WPBRIGADE_Opt_Manager', false ) ) {
30 require_once $wpb_sdk_runtime_includes . '/class-wpb-opt-manager.php';
31 }
32
33 if ( class_exists( 'WPBRIGADE_Logger', false ) ) {
34 $loaded_sdk_version = defined( 'WP_WPBRIGADE_SDK_VERSION' ) ? WP_WPBRIGADE_SDK_VERSION : '0';
35 if (
36 version_compare( $loaded_sdk_version, $incoming_sdk_version, '<' )
37 || version_compare( $loaded_sdk_version, '3.2.0', '<' )
38 ) {
39 if ( ! isset( $GLOBALS['wpb_sdk_registry'] ) || ! is_array( $GLOBALS['wpb_sdk_registry'] ) ) {
40 $GLOBALS['wpb_sdk_registry'] = array();
41 }
42 $GLOBALS['wpb_sdk_registry']['legacy_logger_conflict'] = true;
43 }
44 return;
45 }
46
47 require_once $wpb_sdk_runtime_includes . '/class-wpb-sdk-logger.php';
48