CSS & JavaScript Toolbox - Version 6.0.12

Version Description

Fix: PHP code is not getting evaluated when CJT code Block delegated using Shortcode.

Download this release

Release Info

Developer xpointer
Plugin Icon 128x128 CSS & JavaScript Toolbox
Version 6.0.12
Comparing to
See all releases

Code changes from version 6.0.11 to 6.0.12

controllers/blocks-coupling.php CHANGED
@@ -466,7 +466,7 @@ class CJTBlocksCouplingController extends CJTController {
466
  switch ($attributes['op']) {
467
  case 'get':
468
  // Import dependecies.
469
- cssJSToolbox::import('framework:db:mysql:xtable.inc.php');
470
  // Output block if 'force="true" or only if it wasn't already in the header/footer!
471
  if ((((isset($attributes['force'])) && ($attributes['force'] == "true")) || !in_array($attributes['id'], $this->onActionIds))) {
472
  // Id is being used!
@@ -481,7 +481,8 @@ class CJTBlocksCouplingController extends CJTController {
481
  if ($block->get('state') != 'active') {
482
  return;
483
  }
484
- $replacement = $block->get('code');
 
485
  }
486
  break;
487
  }
466
  switch ($attributes['op']) {
467
  case 'get':
468
  // Import dependecies.
469
+ cssJSToolbox::import('framework:db:mysql:xtable.inc.php', 'framework:php:evaluator:evaluator.inc.php');
470
  // Output block if 'force="true" or only if it wasn't already in the header/footer!
471
  if ((((isset($attributes['force'])) && ($attributes['force'] == "true")) || !in_array($attributes['id'], $this->onActionIds))) {
472
  // Id is being used!
481
  if ($block->get('state') != 'active') {
482
  return;
483
  }
484
+ // Get block code, execute it as PHP!
485
+ $replacement = CJTPHPCodeEvaluator::getInstance($block->getData())->exec()->getOutput();
486
  }
487
  break;
488
  }
css-js-toolbox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: http://css-javascript-toolbox.com/css-javascript-toolbox-free
5
  Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
6
- Version: 6.0.11
7
  Author: Wipeout Media
8
  Author URI: http://css-javascript-toolbox.com/
9
 
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: http://css-javascript-toolbox.com/css-javascript-toolbox-free
5
  Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
6
+ Version: 6.0.12
7
  Author: Wipeout Media
8
  Author URI: http://css-javascript-toolbox.com/
9
 
readme.txt CHANGED
@@ -7,7 +7,7 @@ License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Requires at least: 3.3
9
  Tested up to: 3.5.1
10
- Stable tag: 6.0.11
11
 
12
  Easily add custom CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them wherever you want.
13
 
@@ -127,6 +127,9 @@ Sometimes a bug decides to rear its ugly head and when this happens, this is whe
127
 
128
  == Changelog ==
129
 
 
 
 
130
  = 6.0.11 =
131
  * Fix: Add ACE Editor PHP Worker as it was missing.
132
  * Enhancement: List only Public Custom Posts that can be accessed through Wordpress URL under Assignment Panel Custom Posts Tab. Therefor enhance performance for sites that has 'Log' custom post that might has hundreds or records read for every code block.
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Requires at least: 3.3
9
  Tested up to: 3.5.1
10
+ Stable tag: 6.0.12
11
 
12
  Easily add custom CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them wherever you want.
13
 
127
 
128
  == Changelog ==
129
 
130
+ = 6.0.12 =
131
+ Fix: PHP code is not getting evaluated when CJT code Block delegated using Shortcode.
132
+
133
  = 6.0.11 =
134
  * Fix: Add ACE Editor PHP Worker as it was missing.
135
  * Enhancement: List only Public Custom Posts that can be accessed through Wordpress URL under Assignment Panel Custom Posts Tab. Therefor enhance performance for sites that has 'Log' custom post that might has hundreds or records read for every code block.