Skip to content

Commit fb6e5e7

Browse files
author
Matthias Günter
committed
fix: prepare for RML 4.6
1 parent 163b38c commit fb6e5e7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

inc/base/Base.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ abstract class Base {
1313
* @returns boolean
1414
*/
1515
public function rmlVersionReached() {
16-
return defined('RML_VERSION') && version_compare(RML_VERSION, WPLR_RML_MIN_RML, '>=');
16+
$isPro = defined('RML_IS_PRO') ? RML_IS_PRO : true;
17+
return defined('RML_VERSION') && version_compare(RML_VERSION, WPLR_RML_MIN_RML, '>=') && $isPro;
1718
}
1819

1920
/**

inc/others/fallback-rml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function wplr_rml_skip_rml_admin_notice() {
1111
extract(get_plugin_data(WPLR_RML_FILE, true, false));
1212
global $wp_version;
1313
echo '<div class=\'notice notice-error\'>
14-
<p>The plugin <strong>' . $Name . '</strong> (Add-On) could not be initialized because <a href="https://codecanyon.net/item/wordpress-real-media-library-media-categories-folders/13155134" target="_blank"><b>Real Media Library</b></a> is not active (maybe not installed neither) or the version of Real Media Library is < ' . WPLR_RML_MIN_RML . ' (please update).</p>
14+
<p>The plugin <strong>' . $Name . '</strong> (Add-On) could not be initialized because <a href="https://codecanyon.net/item/wordpress-real-media-library-media-categories-folders/13155134" target="_blank"><b>Real Media Library</b></a> is not active (maybe not installed neither), the version of Real Media Library is < ' . WPLR_RML_MIN_RML . ' (please update) or you are using the free version (Pro needed).</p>
1515
</div>';
1616
}
1717
}

0 commit comments

Comments
 (0)