PluginProbe
CSS & JavaScript Toolbox / 12
CSS & JavaScript Toolbox v12
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | framework/extensions/extensions.class.php +3 -4 1112 View file →
@@ -293,9 +293,9 @@
293 293 foreach ($this->getExtensions() as $class => $extension) {
294 294 // Filters!
295 295 extract($this->onload($extension, compact('class', 'extension')));
296 296 // Build Extension plugin path
297 - $pluginPath = ABSPATH . PLUGINDIR . "/{$extension['name']}";
297 + $pluginPath = WP_PLUGIN_DIR . "/{$extension['name']}";
298 298 // Set runtime variables.
299 299 $this->extensions[$class]['runtime']['classFile'] = "{$pluginPath}/{$extension['name']}.class.php";
300 300 // Load definition.
301 301 $definitionXML = $extension['defDoc'];
@@ -328,11 +328,10 @@
328 328 $incomapatibleAddon = $this->incompatibleAddons[$extension['name']];
329 329 $addonVersion = get_plugin_data($extension['pluginFile'], false, false)['Version'];
330 330 $currentVersion = get_plugin_data( CJTOOLBOX_PLUGIN_FILE )['Version'];
331 331
332 - if (version_compare($addonVersion,
333 - $currentVersion,
334 - $incomapatibleAddon[1])) {
332 + // Only show notice if addon version is less than 11.
333 + if ( $addonVersion < 11) {
335 334
336 335 $extension['incompatibleMessage']['flag'] = $incomapatibleAddon[2];
337 336 $extension['incompatibleMessage']['msg'] = $incomapatibleAddon[3];
338 337