| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | */ |
| 28 | 28 | class Visualizer_Plugin { |
| 29 | 29 | |
| 30 | 30 | const NAME = 'visualizer'; |
| 31 | - const VERSION = '3.1.1'; | |
| 31 | + const VERSION = '3.0.2'; | |
| 32 | 32 | |
| 33 | 33 | // custom post types |
| 34 | 34 | const CPT_VISUALIZER = 'visualizer'; |
| 35 | 35 | |
| @@ -48,8 +48,9 @@ | ||
| 48 | 48 | const ACTION_EDIT_CHART = 'visualizer-edit-chart'; |
| 49 | 49 | const ACTION_CLONE_CHART = 'visualizer-clone-chart'; |
| 50 | 50 | const ACTION_DELETE_CHART = 'visualizer-delete-chart'; |
| 51 | 51 | const ACTION_UPLOAD_DATA = 'visualizer-upload-data'; |
| 52 | + // Added by Ash/Upwork | |
| 52 | 53 | const ACTION_EXPORT_DATA = 'visualizer-export-data'; |
| 53 | 54 | |
| 54 | 55 | /** |
| 55 | 56 | *Action used for fetching specific users/roles for permissions. |
| @@ -55,25 +56,14 @@ | ||
| 55 | 56 | *Action used for fetching specific users/roles for permissions. |
| 56 | 57 | */ |
| 57 | 58 | const ACTION_FETCH_PERMISSIONS_DATA = 'visualizer-fetch-permissions-data'; |
| 58 | 59 | |
| 59 | - /** | |
| 60 | - *Action used for fetching db import data. | |
| 61 | - */ | |
| 62 | - const ACTION_FETCH_DB_DATA = 'visualizer-fetch-db-data'; | |
| 63 | - const ACTION_SAVE_DB_QUERY = 'visualizer-save-db-query'; | |
| 64 | - | |
| 65 | 60 | // custom filters |
| 66 | 61 | const FILTER_CHART_WRAPPER_CLASS = 'visualizer-chart-wrapper-class'; |
| 67 | 62 | const FILTER_GET_CHART_SERIES = 'visualizer-get-chart-series'; |
| 68 | 63 | const FILTER_GET_CHART_DATA = 'visualizer-get-chart-data'; |
| 69 | 64 | const FILTER_GET_CHART_SETTINGS = 'visualizer-get-chart-settings'; |
| 70 | - const FILTER_UNDO_REVISIONS = 'visualizer-undo-revisions'; | |
| 71 | - const FILTER_HANDLE_REVISIONS = 'visualizer-handle-revisions'; | |
| 72 | 65 | |
| 73 | - const CF_DB_SCHEDULE = 'visualizer-db-schedule'; | |
| 74 | - const CF_DB_QUERY = 'visualizer-db-query'; | |
| 75 | - | |
| 76 | 66 | const CF_CHART_URL = 'visualizer-chart-url'; |
| 77 | 67 | const CF_CHART_SCHEDULE = 'visualizer-chart-schedule'; |
| 78 | 68 | // Added by Ash/Upwork |
| 79 | 69 | const PRO_TEASER_URL = 'http://themeisle.com/plugins/visualizer-charts-and-graphs-pro-addon/'; |
| @@ -106,11 +96,8 @@ | ||
| 106 | 96 | * |
| 107 | 97 | * @access private |
| 108 | 98 | */ |
| 109 | 99 | private function __construct() { |
| 110 | - if ( VISUALIZER_DEBUG ) { | |
| 111 | - add_action( 'themeisle_log_event', array( $this, 'themeisle_log_event_debug' ), 10, 5 ); | |
| 112 | - } | |
| 113 | 100 | } |
| 114 | 101 | |
| 115 | 102 | /** |
| 116 | 103 | * Returns singletone instance of the plugin. |
| @@ -194,17 +181,7 @@ | ||
| 194 | 181 | * |
| 195 | 182 | * @access private |
| 196 | 183 | */ |
| 197 | 184 | private function __clone() { |
| 198 | - } | |
| 199 | - | |
| 200 | - /** | |
| 201 | - * For local testing, overrides the 'themeisle_log_event' hook and redirects to error.log. | |
| 202 | - */ | |
| 203 | - final function themeisle_log_event_debug( $name, $message, $type, $file, $line ) { | |
| 204 | - if ( Visualizer_Plugin::NAME !== $name ) { | |
| 205 | - return; | |
| 206 | - } | |
| 207 | - error_log( sprintf( '%s (%s): %s in %s:%s', $name, $type, $message, $file, $line ) ); | |
| 208 | 185 | } |
| 209 | 186 | |
| 210 | 187 | } |