| @@ -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']; |
| @@ -325,10 +325,11 @@ | ||
| 325 | 325 | DIRECTORY_SEPARATOR . 'includes' . |
| 326 | 326 | DIRECTORY_SEPARATOR . 'plugin.php'; |
| 327 | 327 | |
| 328 | 328 | $incomapatibleAddon = $this->incompatibleAddons[$extension['name']]; |
| 329 | + // Pass 'false' as the third parameter to get_plugin_data to prevent translation | |
| 329 | 330 | $addonVersion = get_plugin_data($extension['pluginFile'], false, false)['Version']; |
| 330 | - $currentVersion = get_plugin_data( CJTOOLBOX_PLUGIN_FILE )['Version']; | |
| 331 | + $currentVersion = get_plugin_data(CJTOOLBOX_PLUGIN_FILE, false, false)['Version']; | |
| 331 | 332 | |
| 332 | 333 | // Only show notice if addon version is less than 11. |
| 333 | 334 | if ( $addonVersion < 11) { |
| 334 | 335 | |