Skip to content

Commit c2a4c18

Browse files
authored
Improve loaded check (#687)
1 parent 7df5c9c commit c2a4c18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

remote-data-blocks.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818

1919
defined( 'ABSPATH' ) || exit();
2020

21-
// Check if the plugin is already loaded, if so, return early to prevent duplicate plugin instances.
22-
if ( defined( 'REMOTE_DATA_BLOCKS__LOADED' ) ) {
21+
// Check if the plugin is already loaded, if so, return early to prevent
22+
// duplicate plugin instances. REMOTE_DATA_BLOCKS__LOADED was not introduced
23+
// until v0.10.0.
24+
if ( defined( 'REMOTE_DATA_BLOCKS__LOADED' ) || defined( 'REMOTE_DATA_BLOCKS__PLUGIN_VERSION' ) ) {
2325
return;
2426
}
2527

0 commit comments

Comments
 (0)