PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 4.0.8
Visualizer – Tables & Charts Manager with Built-in AI Generator v4.0.8
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Plugin.php +7 -6 3.10.134.0.8 View file →
@@ -27,9 +27,9 @@
27 27 */
28 28 class Visualizer_Plugin {
29 29
30 30 const NAME = 'visualizer';
31 - const VERSION = '3.10.13';
31 + const VERSION = '4.0.8';
32 32
33 33 // custom post types
34 34 const CPT_VISUALIZER = 'visualizer';
35 35
@@ -56,8 +56,10 @@
56 56 const ACTION_DELETE_CHART = 'visualizer-delete-chart';
57 57 const ACTION_UPLOAD_DATA = 'visualizer-upload-data';
58 58 const ACTION_EXPORT_DATA = 'visualizer-export-data';
59 59
60 + const STORE_URL = 'https://store.themeisle.com/';
61 +
60 62 /**
61 63 *Action used for fetching specific users/roles for permissions.
62 64 */
63 65 const ACTION_FETCH_PERMISSIONS_DATA = 'visualizer-fetch-permissions-data';
@@ -219,12 +221,12 @@
219 221 * @since 1.0.0
220 222 *
221 223 * @access public
222 224 *
223 - * @param string $class The name of the module to use in the plugin.
225 + * @param string $class_name The name of the module to use in the plugin.
224 226 */
225 - public function setModule( $class ) {
226 - $this->_modules[ $class ] = new $class( $this );
227 + public function setModule( $class_name ) {
228 + $this->_modules[ $class_name ] = new $class_name( $this );
227 229 }
228 230
229 231 /**
230 232 * Private clone method.
@@ -238,12 +240,11 @@
238 240
239 241 /**
240 242 * For local testing, overrides the 'themeisle_log_event' hook and redirects to error.log.
241 243 */
242 - final function themeisle_log_event_debug( $name, $message, $type, $file, $line ) {
244 + final public function themeisle_log_event_debug( $name, $message, $type, $file, $line ) {
243 245 if ( Visualizer_Plugin::NAME !== $name ) {
244 246 return;
245 247 }
246 248 error_log( sprintf( '%s (%s): %s in %s:%s', $name, $type, $message, $file, $line ) );
247 249 }
248 -
249 250 }