Changeset 1993427
- Timestamp:
- 12/13/2018 08:43:15 AM (7 years ago)
- Location:
- frontend-admin-menu/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
frontend-admin-menu.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend-admin-menu/trunk/README.txt
r1793015 r1993427 4 4 Tags: admin menu, backend menu, frontend menu, roles menu administration, administration menu 5 5 Requires at least: 3.4 6 Tested up to: 4.97 Stable tag: 3.2 6 Tested up to: 5.0.1 7 Stable tag: 3.2.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 43 43 44 44 == Changelog == 45 46 = Version 3.2.2 = 47 * Add: Compatibility with WordPress 5.0.1 48 49 = Version 3.2.1 = 50 * Fixed: Hook activation, desactivation 51 * Fixed: Code standards 52 * Add: Define ABSPATH 45 53 46 54 = Version 3.2 = -
frontend-admin-menu/trunk/frontend-admin-menu.php
r1793015 r1993427 3 3 Plugin Name: Frontend admin menu 4 4 Description: Create different menus for manage your site and then mapping user roles for each menus to display them as administration menu. 5 Version: 3.2 5 Version: 3.2.2 6 6 Author: Alberto Pérez 7 7 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UJ7J929GYWKLY … … 9 9 */ 10 10 11 define( 'FRONTEND_ADMIN_MENU_VERSION', '3.2' ); 11 if ( ! defined ( 'ABSPATH' ) ) { 12 exit; 13 } // Exit if accessed directly 12 14 13 define( 'FRONTEND_ADMIN_MENU_DIR', plugin_dir_path(__FILE__) ); 15 define( 'FRONTEND_ADMIN_MENU_VERSION', '3.2.2' ); 16 define( 'FRONTEND_ADMIN_MENU_DIR', plugin_dir_path( __FILE__ ) ); 17 define( 'FRONTEND_ADMIN_MENU_URL', plugin_dir_url( __FILE__ ) ); 18 define( 'FRONTEND_ADMIN_MENU_BASENAME', plugin_basename( __FILE__ ) ); 14 19 15 define( 'FRONTEND_ADMIN_MENU_URL', plugin_dir_url(__FILE__) ); 20 21 //////////////////////////////////////////////////////////////////////////////// 22 // ACTIVATION - DESACTIVATION 23 //////////////////////////////////////////////////////////////////////////////// 24 register_activation_hook( __FILE__, 'frontend_admin_menu_activation' ); 25 register_deactivation_hook( __FILE__, 'frontend_admin_menu_deactivation' ); 26 27 function frontend_admin_menu_activation() { 28 if ( ! current_user_can( 'activate_plugins' ) ) 29 return; 30 } 31 32 function frontend_admin_menu_deactivation() { 33 flush_rewrite_rules(); 34 } 16 35 17 36 require_once FRONTEND_ADMIN_MENU_DIR . 'settings.php';
Note: See TracChangeset
for help on using the changeset viewer.