Changeset 704695
- Timestamp:
- 04/27/2013 02:15:01 PM (13 years ago)
- Location:
- developer-mode/tags/0.4.1
- Files:
-
- 3 deleted
- 12 copied
-
. (copied) (copied from developer-mode/trunk)
-
developer-mode.php (copied) (copied from developer-mode/trunk/developer-mode.php) (2 diffs)
-
lib/admin.php (copied) (copied from developer-mode/trunk/lib/admin.php)
-
lib/adminmenupage/adminmenu.php (copied) (copied from developer-mode/trunk/lib/adminmenupage/adminmenu.php)
-
lib/adminmenupage/options.php (copied) (copied from developer-mode/trunk/lib/adminmenupage/options.php)
-
lib/adminmenupage/plugins.php (copied) (copied from developer-mode/trunk/lib/adminmenupage/plugins.php)
-
lib/functions.php (copied) (copied from developer-mode/trunk/lib/functions.php) (1 diff)
-
lib/helper/roles.php (copied) (copied from developer-mode/trunk/lib/helper/roles.php)
-
lib/roles.php (copied) (copied from developer-mode/trunk/lib/roles.php) (1 diff)
-
public/js (copied) (copied from developer-mode/trunk/public/js)
-
readme.txt (copied) (copied from developer-mode/trunk/readme.txt) (2 diffs)
-
screenshot-1.jpg (deleted)
-
screenshot-2.jpg (deleted)
-
screenshot-3.jpg (deleted)
-
uninstall.php (copied) (copied from developer-mode/trunk/uninstall.php)
Legend:
- Unmodified
- Added
- Removed
-
developer-mode/tags/0.4.1/developer-mode.php
r688320 r704695 3 3 Plugin Name: Developer Mode 4 4 Description: Limit access to the WordPress admin panel for your clients. Block functionality like updating plugins and viewing menu items for administrators, while keeping all these options for the developer users. The developer mode plugin automatically adds a developer user role, allowing you to keep in control of the entire system while making sure your clients can only use what they need. 5 Version: 0.4 5 Version: 0.4.1 6 6 Author: Jesper van Engelen 7 7 Author URI: http://www.jepps.nl … … 10 10 11 11 // Plugin information 12 define('JWDM_VERSION', '0.4 ');12 define('JWDM_VERSION', '0.4.1'); 13 13 14 14 // Paths -
developer-mode/tags/0.4.1/lib/functions.php
r649573 r704695 1 1 <?php 2 /** 3 * Handle plugin updates 4 */ 5 function jwdm_handle_update() 6 { 7 $db_version = get_option('jwdm_version'); 8 9 if (!$db_version || version_compare($db_version, '0.4.1') < 0) { 10 $role = get_role('developer'); 11 $role->add_cap('administrator', true); 12 13 $developerusers_query = new WP_User_Query(array('role' => 'developer')); 14 15 foreach ($developerusers_query->results as $index => $user) { 16 clean_user_cache($user); 17 } 18 } 19 20 if ($db_version != JWDM_VERSION) { 21 update_option('jwdm_version', JWDM_VERSION); 22 } 23 } 24 25 // Actions 26 add_action('init', 'jwdm_handle_update'); 27 2 28 if (!function_exists('jwdm_maybe_disable_adminbar_frontend')) { 3 29 /** -
developer-mode/tags/0.4.1/lib/roles.php
r672668 r704695 49 49 $role_developer->add_cap('developer_updates', true); 50 50 $role_developer->add_cap('view_developer_content', true); 51 $role_developer->add_cap('administrator', true); 51 52 } 52 53 else if (JWDM_Helper_Roles::role_exists('administrator')) { 53 54 $role_admin = get_role('administrator'); 54 55 $role_developer = get_role('developer'); 55 56 $newcaps = array();57 56 58 57 foreach ($role_admin->capabilities as $index => $cap) { -
developer-mode/tags/0.4.1/readme.txt
r688320 r704695 7 7 Requires at least: 3.1 8 8 Tested up to: 3.5.1 9 Stable tag: 0.4 9 Stable tag: 0.4.1 10 10 11 11 Limit access to the WordPress admin panel for your clients. Block functionality like updating plugins and viewing menu items for administrators, while keeping all these options for the developer users. The developer mode plugin automatically adds a developer user role, allowing you to keep in control of the entire system while making sure your clients can only use what they need. … … 55 55 == Changelog == 56 56 57 = 0.4.1 = 58 59 * Added the administrator capability to the developer on install and on update to ensure that plugins with out-dated capability handling will not break with the Developer Mode plugin 60 57 61 = 0.4 = 58 62
Note: See TracChangeset
for help on using the changeset viewer.