PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
← All changes | libraries/cmb2/init.php +16 -14 6.0.0 → 6.0.3 View file →
@@ -19,9 +19,9 @@
19 19 * Jared Atchison (@jaredatch / jaredatchison.com)
20 20 * Bill Erickson (@billerickson / billerickson.net)
21 21 * Andrew Norcross (@norcross / andrewnorcross.com)
22 22 *
23 - * Version: 2.10.1
23 + * Version: 2.12.0
24 24 *
25 25 * Text Domain: cmb2
26 26 * Domain Path: languages
27 27 *
@@ -52,10 +52,13 @@
52 52 * or things might explode!
53 53 * ***********************************************************************
54 54 */
55 55
56 -if ( ! class_exists( 'CMB2_Bootstrap_2101', false ) ) {
56 +// Exit if accessed directly
57 +if( !defined( 'ABSPATH' ) ) exit;
57 58
59 +if ( ! class_exists( 'CMB2_Bootstrap_2120', false ) ) {
60 +
58 61 /**
59 62 * Handles checking for and loading the newest version of CMB2
60 63 *
61 64 * @since 2.0.0
@@ -65,9 +68,9 @@
65 68 * @author CMB2 team
66 69 * @license GPL-2.0+
67 70 * @link https://cmb2.io
68 71 */
69 - class CMB2_Bootstrap_2101 {
72 + class CMB2_Bootstrap_2120 {
70 73
71 74 /**
72 75 * Current version number
73 76 *
@@ -73,9 +76,9 @@
73 76 *
74 77 * @var string
75 78 * @since 1.0.0
76 79 */
77 - const VERSION = '2.10.1';
80 + const VERSION = '2.12.0';
78 81
79 82 /**
80 83 * Current version hook priority.
81 84 * Will decrement with each release
@@ -82,22 +85,22 @@
82 85 *
83 86 * @var int
84 87 * @since 2.0.0
85 88 */
86 - const PRIORITY = 9957;
89 + const PRIORITY = 9956;
87 90
88 91 /**
89 - * Single instance of the CMB2_Bootstrap_2101 object
92 + * Single instance of the CMB2_Bootstrap_2120 object
90 93 *
91 - * @var CMB2_Bootstrap_2101
94 + * @var CMB2_Bootstrap_2120
92 95 */
93 96 public static $single_instance = null;
94 97
95 98 /**
96 - * Creates/returns the single instance CMB2_Bootstrap_2101 object
99 + * Creates/returns the single instance CMB2_Bootstrap_2120 object
97 100 *
98 101 * @since 2.0.0
99 - * @return CMB2_Bootstrap_2101 Single instance object
102 + * @return CMB2_Bootstrap_2120 Single instance object
100 103 */
101 104 public static function initiate() {
102 105 if ( null === self::$single_instance ) {
103 106 self::$single_instance = new self();
@@ -146,9 +149,9 @@
146 149 define( 'CMB2_VERSION', self::VERSION );
147 150 }
148 151
149 152 if ( ! defined( 'CMB2_DIR' ) ) {
150 - define( 'CMB2_DIR', trailingslashit( dirname( __FILE__ ) ) );
153 + define( 'CMB2_DIR', trailingslashit( __DIR__ ) );
151 154 }
152 155
153 156 $this->l10ni18n();
154 157
@@ -160,9 +163,9 @@
160 163 // Now kick off the class autoloader.
161 164 spl_autoload_register( 'cmb2_autoload_classes' );
162 165
163 166 // Kick the whole thing off.
164 - require_once( cmb2_dir( 'bootstrap.php' ) );
167 + require_once cmb2_dir( 'bootstrap.php' );
165 168 cmb2_bootstrap();
166 169 }
167 170
168 171 /**
@@ -183,16 +186,15 @@
183 186 }
184 187
185 188 if ( ! $loaded ) {
186 189 $locale = apply_filters( 'plugin_locale', function_exists( 'determine_locale' ) ? determine_locale() : get_locale(), 'cmb2' );
187 - $mofile = dirname( __FILE__ ) . '/languages/cmb2-' . $locale . '.mo';
190 + $mofile = __DIR__ . '/languages/cmb2-' . $locale . '.mo';
188 191 load_textdomain( 'cmb2', $mofile );
189 192 }
190 -
191 193 }
192 194
193 195 }
194 196
195 197 // Make it so...
196 - CMB2_Bootstrap_2101::initiate();
198 + CMB2_Bootstrap_2120::initiate();
197 199
198 200 }// End if().