WordPress.org

Plugin Directory

Changeset 1407889


Ignore:
Timestamp:
04/30/16 03:45:13 (19 months ago)
Author:
benhays
Message:

Fixed member plugin warnings

Location:
gravity-forms-remove-entries/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gravity-forms-remove-entries/trunk/gravity-forms-remove-entries.php

    r1340315 r1407889  
    44Plugin URI: https://github.com/bhays/gravity-forms-remove-entries 
    55Description: Remove multiple entries from Gravity Forms. Optionally select a timeframe of removals or remove all. 
    6 Version: 0.3.2 
     6Version: 0.3.3 
    77Author: Ben Hays 
    88Author URI: http://benhays.com 
     
    3434    private static $url                         = "http://www.gravityforms.com"; 
    3535    private static $slug                        = "gravity-forms-remove-entries"; 
    36     private static $version                     = "0.3.2"; 
     36    private static $version                     = "0.3.3"; 
    3737    private static $min_gravityforms_version    = "1.5"; 
    3838 
     
    5959        //integrating with Members plugin 
    6060        if(function_exists('members_get_capabilities')){ 
    61             add_filter('members_get_capabilities', array("GFRemove", "members_get_capabilities")); 
     61            add_filter('plugin_name_capability', array("GFRemove", "gf_remove_get_capabilities")); 
     62            add_filter('members_get_capabilities', array("GFRemove", "gf_remove_extra_caps")); 
    6263        } 
    6364 
     
    7576        } 
    7677    } 
     78 
     79    // Return member role capability 
     80    public static function gf_remove_get_capabilities(){ 
     81        return 'gravity_forms_remove_entries'; 
     82    } 
     83 
     84    public static function gf_remove_extra_caps( $caps ) { 
     85        $caps[] = 'gravity_forms_remove_entries'; 
     86        return $caps; 
     87    } 
    7788 
    7889    // Page that does the magic 
  • gravity-forms-remove-entries/trunk/readme.md

    r1340315 r1407889  
    22============================ 
    33 
    4 Version 0.3.2 
     4Version 0.3.3 
    55 
    66WordPress plugin for Gravity Forms that allows for easy removal of entries from forms. Remove all entires or entries specified by a date range. 
     
    2323 
    2424### 0.3.2 
     25* Really fixed members integration 
     26 
     27### 0.3.2 
    2528* Fix members_get_capabilities filter 
    2629 
  • gravity-forms-remove-entries/trunk/readme.txt

    r1340315 r1407889  
    44Tags: gravity forms, gravityforms, remove entries, delete entries, remove 
    55Requires at least: 3.3 
    6 Tested up to: 4.4.2 
    7 Stable tag: 0.3.2 
     6Tested up to: 4.5.1 
     7Stable tag: 0.3.3 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    4141== Changelog == 
    4242 
     43### 0.3.3 
     44* Really fixed members integration 
     45 
    4346### 0.3.2 
    4447* Fix members_get_capabilities filter 
Note: See TracChangeset for help on using the changeset viewer.