| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: UsersWP |
| 4 | 4 | Plugin URI: https://userswp.io/ |
| 5 | -Description: User management plugin. | |
| 6 | -Version: 1.0.21 | |
| 5 | +Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form. | |
| 6 | +Version: 1.2.11 | |
| 7 | 7 | Author: AyeCode Ltd |
| 8 | 8 | Author URI: https://userswp.io |
| 9 | 9 | License: GPL-2.0+ |
| 10 | 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| @@ -9,43 +9,47 @@ | ||
| 9 | 9 | License: GPL-2.0+ |
| 10 | 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 11 | 11 | Text Domain: userswp |
| 12 | 12 | Domain Path: /languages |
| 13 | -Requires at least: 3.1 | |
| 14 | -Tested up to: 5.0 | |
| 13 | +Requires at least: 4.9 | |
| 14 | +Tested up to: 6.5 | |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | 17 | // If this file is called directly, abort. |
| 18 | -if (!defined('WPINC')) { | |
| 19 | - die; | |
| 18 | +if ( ! defined( 'WPINC' ) ) { | |
| 19 | + die; | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | if ( ! defined( 'USERSWP_NAME' ) ) { |
| 23 | - define( 'USERSWP_NAME', 'userswp' ); | |
| 23 | + define( 'USERSWP_NAME', 'userswp' ); | |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | if ( ! defined( 'USERSWP_VERSION' ) ) { |
| 27 | - define('USERSWP_VERSION', '1.0.21'); | |
| 27 | + define( 'USERSWP_VERSION', '1.2.11' ); | |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if ( ! defined( 'USERSWP_PATH' ) ) { |
| 31 | - define('USERSWP_PATH', plugin_dir_path(__FILE__)); | |
| 31 | + define( 'USERSWP_PATH', plugin_dir_path( __FILE__ ) ); | |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | if ( ! defined( 'USERSWP_PLUGIN_URL' ) ) { |
| 35 | - define('USERSWP_PLUGIN_URL', plugin_dir_url(__FILE__)); | |
| 35 | + define( 'USERSWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); | |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | if ( ! defined( 'USERSWP_PLUGIN_FILE' ) ) { |
| 39 | - define( 'USERSWP_PLUGIN_FILE', __FILE__ ); | |
| 39 | + define( 'USERSWP_PLUGIN_FILE', __FILE__ ); | |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | +if ( ! defined( 'USERSWP_PLUGIN_BASENAME' ) ) { | |
| 43 | + define( 'USERSWP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); | |
| 44 | +} | |
| 45 | + | |
| 42 | 46 | /** |
| 43 | 47 | * The core plugin class that is used to define internationalization, |
| 44 | 48 | * admin-specific hooks, and public-facing site hooks. |
| 45 | 49 | */ |
| 46 | 50 | if ( ! class_exists( 'UsersWP' ) ) { |
| 47 | - include_once dirname( __FILE__ ) . '/includes/class-userswp.php'; | |
| 51 | + include_once dirname( __FILE__ ) . '/includes/class-userswp.php'; | |
| 48 | 52 | } |
| 49 | 53 | /** |
| 50 | 54 | * Begins execution of the plugin. |
| 51 | 55 | * |
| @@ -55,8 +59,9 @@ | ||
| 55 | 59 | * |
| 56 | 60 | * @since 1.0.0 |
| 57 | 61 | */ |
| 58 | 62 | function run_users_wp() { |
| 59 | - $plugin = new UsersWP(); | |
| 60 | - $plugin->run(); | |
| 63 | + global $userswp; | |
| 64 | + $userswp = new UsersWP(); | |
| 61 | 65 | } |
| 66 | + | |
| 62 | 67 | run_users_wp(); |