| @@ -1,16 +1,15 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Plugin Name: Plugins Condition | |
| 3 | + * Plugin Name: Plugins Condition & Site Check | |
| 4 | 4 | * Plugin URI: https://wordpress.org/plugins/plugins-condition/ |
| 5 | - * Description: Display plugins condition. | |
| 6 | - * Version: 1.05 | |
| 5 | + * Description: Displays plugin conditions and performs a basic site check. | |
| 6 | + * Version: 2.01 | |
| 7 | 7 | * Author: Katsushi Kawamori |
| 8 | 8 | * Author URI: https://riverforest-wp.info/ |
| 9 | - * License: GPL2 | |
| 9 | + * License: GPLv2 or later | |
| 10 | 10 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 | 11 | * Text Domain: plugins-condition |
| 12 | - * Domain Path: /languages | |
| 13 | 12 | * |
| 14 | 13 | * @package Plugins Condition |
| 15 | 14 | */ |
| 16 | 15 | |
| @@ -29,22 +28,14 @@ | ||
| 29 | 28 | along with this program; if not, write to the Free Software |
| 30 | 29 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 31 | 30 | */ |
| 32 | 31 | |
| 33 | -add_action( 'plugins_loaded', 'plugins_condition_load_textdomain' ); | |
| 34 | -/** ================================================== | |
| 35 | - * i18n | |
| 36 | - * | |
| 37 | - * @since 1.00 | |
| 38 | - */ | |
| 39 | -function plugins_condition_load_textdomain() { | |
| 40 | - load_plugin_textdomain( 'plugins-condition' ); | |
| 32 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 33 | + exit; | |
| 41 | 34 | } |
| 42 | 35 | |
| 43 | 36 | if ( ! class_exists( 'PluginsConditionAdmin' ) ) { |
| 44 | - require_once( dirname( __FILE__ ) . '/lib/class-pluginsconditionadmin.php' ); | |
| 37 | + require_once __DIR__ . '/lib/class-pluginsconditionadmin.php'; | |
| 45 | 38 | } |
| 46 | 39 | if ( ! class_exists( 'PluginsCondition' ) ) { |
| 47 | - require_once( dirname( __FILE__ ) . '/lib/class-pluginscondition.php' ); | |
| 40 | + require_once __DIR__ . '/lib/class-pluginscondition.php'; | |
| 48 | 41 | } |
| 49 | - | |
| 50 | - | |