| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | /** |
| 4 | 4 | * Plugin Name: Debug Log Manager |
| 5 | 5 | * Plugin URI: https://wordpress.org/plugins/debug-log-manager/ |
| 6 | 6 | * Description: Log errors via WP_DEBUG. Create, view and clear debug.log file. |
| 7 | - * Version: 2.5.2 | |
| 7 | + * Version: 2.3.1 | |
| 8 | 8 | * Author: Bowo |
| 9 | 9 | * Author URI: https://bowo.io |
| 10 | 10 | * License: GPL-2.0+ |
| 11 | 11 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| @@ -17,12 +17,12 @@ | ||
| 17 | 17 | if ( ! defined( 'ABSPATH' ) ) { |
| 18 | 18 | exit; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | -define( 'DLM__VERSION', '2.5.2' ); | |
| 22 | -define( 'DLM__SLUG', 'debug-log-manager' ); | |
| 23 | -define( 'DLM__URL', plugins_url( '/', __FILE__ ) ); // e.g. https://www.example.com/wp-content/plugins/this-plugin/ | |
| 24 | -define( 'DLM__PATH', plugin_dir_path( __FILE__ ) ); // e.g. /home/user/apps/wp-root/wp-content/plugins/this-plugin/ | |
| 21 | +define( 'DLM_VERSION', '2.3.1' ); | |
| 22 | +define( 'DLM_SLUG', 'debug-log-manager' ); | |
| 23 | +define( 'DLM_URL', plugins_url( '/', __FILE__ ) ); // e.g. https://www.example.com/wp-content/plugins/this-plugin/ | |
| 24 | +define( 'DLM_PATH', plugin_dir_path( __FILE__ ) ); // e.g. /home/user/apps/wp-root/wp-content/plugins/this-plugin/ | |
| 25 | 25 | // define( 'DLM_BASE', plugin_basename( __FILE__ ) ); // e.g. plugin-slug/this-file.php |
| 26 | 26 | // define( 'DLM_FILE', __FILE__ ); // /home/user/apps/wp-root/wp-content/plugins/this-plugin/this-file.php |
| 27 | 27 | |
| 28 | 28 | // Register autoloading classes |
| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | // Remove first '/' |
| 60 | 60 | $path = substr( $path, 1 ); |
| 61 | 61 | |
| 62 | 62 | // Get /plugin-path/classes/class-the-name.php |
| 63 | - $path = DLM__PATH . $path; | |
| 63 | + $path = DLM_PATH . $path; | |
| 64 | 64 | |
| 65 | 65 | if ( file_exists( $path ) ) { |
| 66 | 66 | require_once( $path ); |
| 67 | 67 | } |
| @@ -96,5 +96,5 @@ | ||
| 96 | 96 | // Register code that runs on plugin deactivation |
| 97 | 97 | register_deactivation_hook( __FILE__, 'dlm_on_deactivation' ); |
| 98 | 98 | |
| 99 | 99 | // Bootstrap the core functionalities of this plugin |
| 100 | -require DLM__PATH . 'bootstrap.php'; | |
| 100 | +require DLM_PATH . 'bootstrap.php'; | |