PluginProbe
Plugin Groups / 1.2.2
Plugin Groups v1.2.2
trunk 1.0.3 1.1.0 1.2.1 1.2.2 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.9 3.0.0
← All changes | plugincore.php +28 -27 2.0.91.2.2 View file →
@@ -1,15 +1,25 @@
1 1 <?php
2 -/*
2 +/**
3 + * @package Plugin_Groups
4 + * @author David Cramer <david@digilab.co.za>
5 + * @license GPL-2.0+
6 + * @link https://cramer.co.za
7 + * @copyright 2018 David Cramer <david@digilab.co.za>
8 + *
9 + * @wordpress-plugin
3 10 * Plugin Name: Plugin Groups
4 - * Plugin URI: https://cramer.co.za
5 - * Description: Organize Plugins in groups
6 - * Version: 2.0.9
7 - * Author: David Cramer
8 - * Author URI: https://cramer.co.za
11 + * Plugin URI: https://cramer.co.za
12 + * Description: Organize plugins in the Plugins Admin Page by creating groups and filter types.
13 + * Version: 1.2.2
14 + * Author: David Cramer <david@digilab.co.za>
15 + * Author URI: https://cramer.co.za/
9 16 * Text Domain: plugin-groups
10 - * License: GPL2+
11 -*/
17 + * License: GPL-2.0+
18 + * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
19 + * Domain Path: /languages
20 + * Network: true
21 + */
12 22
13 23 // If this file is called directly, abort.
14 24 if ( ! defined( 'WPINC' ) ) {
15 25 die;
@@ -14,25 +24,16 @@
14 24 if ( ! defined( 'WPINC' ) ) {
15 25 die;
16 26 }
17 27
18 -// Constants.
19 -define( 'PLGGRP_PATH', plugin_dir_path( __FILE__ ) );
20 -define( 'PLGGRP_CORE', __FILE__ );
21 -define( 'PLGGRP_URL', plugin_dir_url( __FILE__ ) );
22 -define( 'PLGGRP_SLUG', basename( __DIR__ ) . '/' . basename( __FILE__ ) );
28 +define( 'PLORG_PATH', plugin_dir_path( __FILE__ ) );
29 +define( 'PLORG_URL', plugin_dir_url( __FILE__ ) );
30 +define( 'PLORG_VER', '1.2.2' );
31 +define( 'PLORG_SLUG', 'plugin_groups' );
23 32
24 -if ( ! version_compare( PHP_VERSION, '5.6', '>=' ) ) {
25 - if ( is_admin() ) {
26 - add_action( 'admin_notices', 'plugin_groups_php_ver' );
27 - }
28 -} else {
29 - // Includes Plugin_Groups and starts instance.
30 - include_once PLGGRP_PATH . 'bootstrap.php';
31 -}
33 +// load internals
34 +require_once( PLORG_PATH . 'classes/class-plugin-groups.php' );
35 +require_once( PLORG_PATH . 'classes/class-options.php' );
36 +require_once( PLORG_PATH . 'classes/class-settings.php' );
32 37
33 -function plugin_groups_php_ver() {
34 -
35 - $message = __( 'Plugin Groups requires PHP version 5.6 or later. We strongly recommend PHP 5.6 or later for security and performance reasons.', 'plugin-groups' );
36 - echo sprintf( '<div id="plugin_groups_error" class="error notice notice-error"><p>%s</p></div>', esc_html( $message ) );
37 -}
38 -
38 +// Load instance
39 +add_action( 'plugins_loaded', array( 'Plugin_Groups', 'get_instance' ) );