diff --git a/.editorconfig b/.editorconfig index 79207a40cb9326b8c6b8c958fa864b5345f94e68..0fcdf7fd4fc5705384ea40f93be21e0fc85ac557 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 4049892213802e5fd3a4cffa0c2958a2aa53080e..eef3f5e497e66728d78262d786df69b0d83cdbb6 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 0000000000000000000000000000000000000000..cd49b5a6e4da42fb69a43ba518da8b54302786d8 --- /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';