CSS & JavaScript Toolbox - Version 8.0.2

Version Description

  • Remove: CJT License Setup form as CJT is now 100% FREE.
  • Fix: Multi site CJT Network Extensions is not loaded.
Download this release

Release Info

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

Code changes from version 8.0.1 to 8.0.2

access.points/extensions.accesspoint.php CHANGED
@@ -14,7 +14,7 @@ class CJTExtensionsAccessPoint extends CJTAccessPoint {
14
  /**
15
  *
16
  */
17
- const MENU_POSITION_INDEX = 3;
18
 
19
  /**
20
  *
14
  /**
15
  *
16
  */
17
+ const MENU_POSITION_INDEX = 2;
18
 
19
  /**
20
  *
access.points/setup.accesspoint.php DELETED
@@ -1,69 +0,0 @@
1
- <?php
2
- /**
3
- *
4
- */
5
-
6
- // Disallow direct access.
7
- defined('ABSPATH') or die("Access denied");
8
-
9
- /**
10
- *
11
- */
12
- class CJTSetupAccessPoint extends CJTPageAccessPoint {
13
-
14
- /**
15
- * put your comment there...
16
- *
17
- */
18
- public function __construct() {
19
- // Initialize Access Point base!
20
- parent::__construct();
21
- // Set access point name!
22
- $this->name = 'setup';
23
- }
24
-
25
- /**
26
- * put your comment there...
27
- *
28
- */
29
- protected function doListen() {
30
- // Only if permitted!
31
- if ($this->hasAccess()) {
32
- // Add menu page.
33
- add_action('admin_menu', array(&$this, 'menu'), 12);
34
- }
35
- }
36
-
37
- /**
38
- * put your comment there...
39
- *
40
- */
41
- public function menu() {
42
- // Setup Page.
43
- $pageHookId = add_submenu_page(
44
- CJTPlugin::PLUGIN_REQUEST_ID,
45
- cssJSToolbox::getText('CSS & Javascript Toolbox - Setup'),
46
- cssJSToolbox::getText('Setup'),
47
- 'administrator',
48
- CJTPlugin::PLUGIN_REQUEST_ID . '-setup',
49
- array(&$this->controller, '_doAction')
50
- );
51
- // Process when its installed!!
52
- add_action("load-{$pageHookId}", array($this, 'getPage'));
53
- }
54
-
55
- /**
56
- * put your comment there...
57
- *
58
- */
59
- public function route($loadView = null, $request = array('view' => 'setup/setup')) {
60
- // Set MVC request parameters.
61
- parent::route($loadView, $request)
62
- // Set action name.
63
- ->setAction('setup');
64
- }
65
-
66
- } // End class.
67
-
68
- // Hookable!
69
- CJTSetupAccessPoint::define('CJTSetupAccessPoint', array('hookType' => CJTWordpressEvents::HOOK_FILTER));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css-js-toolbox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: http://css-javascript-toolbox.com/
5
  Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
6
- Version: 8.0.1
7
  Author: Wipeout Media
8
  Author URI: http://css-javascript-toolbox.com
9
  License:
@@ -89,7 +89,7 @@ class CJTPlugin extends CJTHookableClass {
89
  /**
90
  *
91
  */
92
- const VERSION = '8.0.1' ;
93
 
94
  /**
95
  *
3
  Plugin Name: CSS & JavaScript Toolbox
4
  Plugin URI: http://css-javascript-toolbox.com/
5
  Description: CJT Plugin for WordPress to easily add custom CSS and JavaScript to individual pages
6
+ Version: 8.0.2
7
  Author: Wipeout Media
8
  Author URI: http://css-javascript-toolbox.com
9
  License:
89
  /**
90
  *
91
  */
92
+ const VERSION = '8.0.2' ;
93
 
94
  /**
95
  *
framework/extensions/extensions.class.php CHANGED
@@ -191,8 +191,14 @@ class CJTExtensions extends CJTHookableClass {
191
  //Resting!
192
  $this->file2Classmap = array();
193
  $extensions = array();
 
 
 
 
 
 
194
  // filter all installed Plugins to fetch all out Extensions!
195
- $activePlugins = $this->ongetactiveplugins(wp_get_active_and_valid_plugins());
196
  foreach ($activePlugins as $file) {
197
  $pluginDir = dirname($file);
198
  $pluginName = basename($pluginDir);
191
  //Resting!
192
  $this->file2Classmap = array();
193
  $extensions = array();
194
+ # Get all active plugins
195
+ $activePlugins = wp_get_active_and_valid_plugins();
196
+ # Get Network plugins
197
+ if (is_multisite()) {
198
+ $activePlugins = array_merge(wp_get_active_network_plugins(), $activePlugins);
199
+ }
200
  // filter all installed Plugins to fetch all out Extensions!
201
+ $activePlugins = $this->ongetactiveplugins($activePlugins);
202
  foreach ($activePlugins as $file) {
203
  $pluginDir = dirname($file);
204
  $pluginName = basename($pluginDir);
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.9
9
  Tested up to: 4.0
10
- Stable tag: 8.0.1
11
 
12
  Easily add custom CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them wherever you want.
13
 
@@ -132,6 +132,10 @@ Due to the overwhelming amount of emails we get for users requesting support for
132
  21. See Code Block information at a glance
133
 
134
  == Changelog ==
 
 
 
 
135
  = 8.0.1 =
136
  * Fix: Fresh installer stopped when 'Adding Wordpress built-in scripts and styles as CJT Templates'
137
  * Fix: Dashboard metabox notices when CJT is not yet installed
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
  Requires at least: 3.9
9
  Tested up to: 4.0
10
+ Stable tag: 8.0.2
11
 
12
  Easily add custom CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them wherever you want.
13
 
132
  21. See Code Block information at a glance
133
 
134
  == Changelog ==
135
+ = 8.0.2 =
136
+ * Remove: CJT License Setup form as CJT is now 100% FREE.
137
+ * Fix: Multi site CJT Network Extensions is not loaded.
138
+
139
  = 8.0.1 =
140
  * Fix: Fresh installer stopped when 'Adding Wordpress built-in scripts and styles as CJT Templates'
141
  * Fix: Dashboard metabox notices when CJT is not yet installed