WordPress.org

Plugin Directory

Changeset 636804


Ignore:
Timestamp:
12/10/12 22:20:48 (16 months ago)
Author:
TobiasBg
Message:

After adding TablePress caps, refresh current set of caps of the user, to be able to directly use the new caps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tablepress/trunk/models/model-options.php

    r629752 r636804  
    241241            $role->add_cap( 'tablepress_edit_options' ); 
    242242        } 
     243 
     244        // Refresh current set of capabilities of the user, to be able to directly use the new caps 
     245        $user = wp_get_current_user(); 
     246        $user->get_role_caps(); 
    243247    } 
    244248 
Note: See TracChangeset for help on using the changeset viewer.