| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | */ |
| 28 | 28 | class Visualizer_Plugin { |
| 29 | 29 | |
| 30 | 30 | const NAME = 'visualizer'; |
| 31 | - const VERSION = '4.0.6'; | |
| 31 | + const VERSION = '3.9.2'; | |
| 32 | 32 | |
| 33 | 33 | // custom post types |
| 34 | 34 | const CPT_VISUALIZER = 'visualizer'; |
| 35 | 35 | |
| @@ -56,10 +56,8 @@ | ||
| 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 | - | |
| 62 | 60 | /** |
| 63 | 61 | *Action used for fetching specific users/roles for permissions. |
| 64 | 62 | */ |
| 65 | 63 | const ACTION_FETCH_PERMISSIONS_DATA = 'visualizer-fetch-permissions-data'; |
| @@ -221,12 +219,12 @@ | ||
| 221 | 219 | * @since 1.0.0 |
| 222 | 220 | * |
| 223 | 221 | * @access public |
| 224 | 222 | * |
| 225 | - * @param string $class_name The name of the module to use in the plugin. | |
| 223 | + * @param string $class The name of the module to use in the plugin. | |
| 226 | 224 | */ |
| 227 | - public function setModule( $class_name ) { | |
| 228 | - $this->_modules[ $class_name ] = new $class_name( $this ); | |
| 225 | + public function setModule( $class ) { | |
| 226 | + $this->_modules[ $class ] = new $class( $this ); | |
| 229 | 227 | } |
| 230 | 228 | |
| 231 | 229 | /** |
| 232 | 230 | * Private clone method. |
| @@ -240,11 +238,12 @@ | ||
| 240 | 238 | |
| 241 | 239 | /** |
| 242 | 240 | * For local testing, overrides the 'themeisle_log_event' hook and redirects to error.log. |
| 243 | 241 | */ |
| 244 | - final public function themeisle_log_event_debug( $name, $message, $type, $file, $line ) { | |
| 242 | + final function themeisle_log_event_debug( $name, $message, $type, $file, $line ) { | |
| 245 | 243 | if ( Visualizer_Plugin::NAME !== $name ) { |
| 246 | 244 | return; |
| 247 | 245 | } |
| 248 | 246 | error_log( sprintf( '%s (%s): %s in %s:%s', $name, $type, $message, $file, $line ) ); |
| 249 | 247 | } |
| 248 | + | |
| 250 | 249 | } |