Changeset 2540064
- Timestamp:
- 05/31/2021 08:55:58 AM (5 years ago)
- Location:
- editor-menu-and-widget-access
- Files:
-
- 34 added
- 5 edited
-
tags/3.1.1 (added)
-
tags/3.1.1/LICENSE (added)
-
tags/3.1.1/README.md (added)
-
tags/3.1.1/admin (added)
-
tags/3.1.1/admin/adminbar.php (added)
-
tags/3.1.1/admin/caps.php (added)
-
tags/3.1.1/admin/menus.php (added)
-
tags/3.1.1/admin/roles.php (added)
-
tags/3.1.1/editor-menu-and-widget-access.php (added)
-
tags/3.1.1/editor-menu-widget-access.php (added)
-
tags/3.1.1/lang (added)
-
tags/3.1.1/lang/en.mo (added)
-
tags/3.1.1/lang/en.po (added)
-
tags/3.1.1/lang/en_GB.mo (added)
-
tags/3.1.1/lang/en_GB.po (added)
-
tags/3.1.1/lang/en_US.mo (added)
-
tags/3.1.1/lang/en_US.po (added)
-
tags/3.1.1/lang/it.mo (added)
-
tags/3.1.1/lang/it.po (added)
-
tags/3.1.1/lang/it_IT.mo (added)
-
tags/3.1.1/lang/it_IT.po (added)
-
tags/3.1.1/messages.pot (added)
-
tags/3.1.1/options (added)
-
tags/3.1.1/options/adminbar.php (added)
-
tags/3.1.1/options/appearanceMenu.php (added)
-
tags/3.1.1/options/emwa.css (added)
-
tags/3.1.1/options/emwa.less (added)
-
tags/3.1.1/options/help.php (added)
-
tags/3.1.1/options/options.php (added)
-
tags/3.1.1/options/otherMenus.php (added)
-
tags/3.1.1/options/registerSettings.php (added)
-
tags/3.1.1/options/userRoles.php (added)
-
tags/3.1.1/readme.txt (added)
-
tags/3.1.1/screenshot-1.jpg (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/admin/caps.php (modified) (1 diff)
-
trunk/admin/roles.php (modified) (1 diff)
-
trunk/editor-menu-widget-access.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
editor-menu-and-widget-access/trunk/README.md
r2539694 r2540064 1 1 # Editor Menu and Widget Access 2 * Contributors: GuyPrimavera , designbymito2 * Contributors: GuyPrimavera 3 3 * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YVPWSJB4SPN5N 4 4 -
editor-menu-and-widget-access/trunk/admin/caps.php
r2539694 r2540064 35 35 $shopMan = get_role('shop_manager'); 36 36 $editor -> add_cap('edit_theme_options'); 37 $shopMan -> add_cap('edit_theme_options'); 37 if (!empty($shopMan)) { 38 $shopMan -> add_cap('edit_theme_options'); 39 } 38 40 39 41 foreach ($caps as $cap) { -
editor-menu-and-widget-access/trunk/admin/roles.php
r2539694 r2540064 5 5 $userRoles = get_option('emwa_roles'); 6 6 $roleString = get_option('emwa_role_string'); 7 $shopMan = get_role('shop_manager'); 7 8 8 9 if (empty($userRoles)) { 9 $userRoles = array ( 10 'editor' => 1, 11 'shop_manager' => 1 12 ); 10 if (!empty($shopMan)) { 11 $userRoles = array ( 12 'editor' => 1, 13 'shop_manager' => 1 14 ); 15 } else { 16 $userRoles = array ( 17 'editor' => 1 18 ); 19 } 13 20 } 14 21 -
editor-menu-and-widget-access/trunk/editor-menu-widget-access.php
r2539694 r2540064 6 6 * Author: Guy Primavera 7 7 * Author URI: https://guyprimavera.com/ 8 * Version: 3.1 8 * Version: 3.1.1 9 9 * Text Domain: editor-menu-and-widget-access 10 10 * Domain Path: /lang -
editor-menu-and-widget-access/trunk/readme.txt
r2539694 r2540064 4 4 Tags: widgets, widget, appearance, menus, menu, navigation, navigation menu, nav menu, admin, editor, editors, shop manager, woocommerce, users, wp-admin, theme options, options, customize, customise, wordpress, plugin 5 5 Requires at least: 3.0.1 6 Tested up to: 5.7 .27 Stable tag: 3.1 6 Tested up to: 5.7 7 Stable tag: 3.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 63 63 64 64 == Changelog == 65 66 = 3.1.1 = 67 * Bug fixed for WooCommerce shop_manager role. 65 68 66 69 = 3.1 = … … 131 134 == Upgrade Notice == 132 135 136 = 3.1.1 = 137 * Bug fixed for WooCommerce shop_manager role. 138 133 139 = 3.1 = 134 140 Code refactor and bug fixes.
Note: See TracChangeset
for help on using the changeset viewer.