Plugin Directory

Changeset 1045090


Ignore:
Timestamp:
12/15/2014 04:25:46 PM (11 years ago)
Author:
george_michael
Message:

new v 1.1.4 to fix bug with draft autosaving

Location:
simple-permissions/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simple-permissions/trunk/readme.txt

    r1028782 r1045090  
    55Requires at least: 3.5.2
    66Tested up to: 4.0.0
    7 Stable tag: 1.1.3
     7Stable tag: 1.1.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
     37= 1.1.4 =
     38* Bug fix that was preventing drafts from autosaving.
     39
    3740= 1.1.3 =
    3841* Removing category limits was not working under all conditions. Should be fixed now.
     
    6164== Upgrade Notice ==
    6265
     66= 1.1.4 =
     67* Minor bug fix. Upgrade if you were having trouble auto saving drafts.
     68
    6369= 1.1.3 =
    6470* Everyone should update as some functionality wasn't working.
  • simple-permissions/trunk/simple-permissions.php

    r1028782 r1045090  
    22/**
    33 * @package Simple-Permissions
    4  * @version 1.1.3
     4 * @version 1.1.4
    55 */
    66/*
     
    99Description: Create simple permission groups for reading or editing posts.
    1010Author: Michael George
    11 Version: 1.1.3
     11Version: 1.1.4
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    200200
    201201            $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            }
    202207            $devOptions = $this->spGetAdminOptions();
    203208
Note: See TracChangeset for help on using the changeset viewer.