Changeset 1045090
- Timestamp:
- 12/15/2014 04:25:46 PM (11 years ago)
- Location:
- simple-permissions/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
simple-permissions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-permissions/trunk/readme.txt
r1028782 r1045090 5 5 Requires at least: 3.5.2 6 6 Tested up to: 4.0.0 7 Stable tag: 1.1. 37 Stable tag: 1.1.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 == Changelog == 36 36 37 = 1.1.4 = 38 * Bug fix that was preventing drafts from autosaving. 39 37 40 = 1.1.3 = 38 41 * Removing category limits was not working under all conditions. Should be fixed now. … … 61 64 == Upgrade Notice == 62 65 66 = 1.1.4 = 67 * Minor bug fix. Upgrade if you were having trouble auto saving drafts. 68 63 69 = 1.1.3 = 64 70 * Everyone should update as some functionality wasn't working. -
simple-permissions/trunk/simple-permissions.php
r1028782 r1045090 2 2 /** 3 3 * @package Simple-Permissions 4 * @version 1.1. 34 * @version 1.1.4 5 5 */ 6 6 /* … … 9 9 Description: Create simple permission groups for reading or editing posts. 10 10 Author: Michael George 11 Version: 1.1. 311 Version: 1.1.4 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 200 200 201 201 $groupPermissions = $this->spGetPermissions( $args[2] ); 202 //Since 1.1.4. Check to see if the only permission is public or logged in users read. If so, make it writeable. 203 //This is necessary to allow drafts to be autosaved. 204 if ( count( $groupPermissions ) == 1 && in_array( $groupPermissions[0]['id'], array( 0, 1 ) ) ) { 205 $groupPermissions[0]['permission'] = "write"; 206 } 202 207 $devOptions = $this->spGetAdminOptions(); 203 208
Note: See TracChangeset
for help on using the changeset viewer.