From a3853914cb553eeaf04db22f2ecb590735084822 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sun, 12 May 2019 22:39:47 -0700 Subject: [PATCH] Introduce loader as part of modernizing --- .editorconfig | 3 --- inc/class-wp-revisions-control.php | 34 ++++++++---------------------- wp-revisions-control.php | 33 +++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 28 deletions(-) create mode 100644 wp-revisions-control.php diff --git a/.editorconfig b/.editorconfig index 79207a4..0fcdf7f 100755 --- a/.editorconfig +++ b/.editorconfig @@ -17,6 +17,3 @@ indent_size = 4 [{.jshintrc,*.json,*.yml}] indent_style = space indent_size = 2 - -[{*.txt,wp-config-sample.php}] -end_of_line = crlf diff --git a/inc/class-wp-revisions-control.php b/inc/class-wp-revisions-control.php index 4049892..eef3f5e 100644 --- a/inc/class-wp-revisions-control.php +++ b/inc/class-wp-revisions-control.php @@ -1,29 +1,13 @@ <?php -/* -Plugin Name: WP Revisions Control -Plugin URI: https://ethitter.com/plugins/wp-revisions-control/ -Description: Control how many revisions are stored for each post type -Author: Erick Hitter -Version: 1.2.1 -Author URI: https://ethitter.com/ -Text Domain: wp_revisions_control -Domain Path: /languages/ - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ - +/** + * Main plugin functionality. + * + * @package WP_Revisions_Control + */ + +/** + * Class WP_Revisions_Control. + */ class WP_Revisions_Control { /** * Singleton diff --git a/wp-revisions-control.php b/wp-revisions-control.php new file mode 100644 index 0000000..cd49b5a --- /dev/null +++ b/wp-revisions-control.php @@ -0,0 +1,33 @@ +<?php +/** + * Load plugin. + * + * @package WP_Revisions_Control + */ + +/** + * Plugin Name: WP Revisions Control + * Plugin URI: https://ethitter.com/plugins/wp-revisions-control/ + * Description: Control how many revisions are stored for each post type + * Author: Erick Hitter + * Version: 1.2.1 + * Author URI: https://ethitter.com/ + * Text Domain: wp_revisions_control + * Domain Path: /languages/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +require_once __DIR__ . '/inc/class-wp-revisions-control.php'; -- GitLab