Plugin Directory

Changeset 756814


Ignore:
Timestamp:
08/15/2013 06:31:33 PM (13 years ago)
Author:
thenbrent
Message:

Version 2.1

Location:
map-cap/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • map-cap/trunk/map-cap.php

    r388815 r756814  
    55Description: Control who can publish, edit and delete custom post types.  Silly name, useful code.
    66Author: Brent Shepherd
    7 Version: 2.0
     7Version: 2.1
    88Author URI: http://find.brentshepherd.com/
    99*/
    1010
    1111function mc_add_admin_menu() {
    12     if ( function_exists('add_options_page') ) { // additional pages under E-Commerce
     12    if ( function_exists('add_options_page') ) {
    1313        $page = add_options_page( 'Map Caps', 'Map Cap', 'manage_options', 'mapcap', 'mc_capabilities_settings_page' );
    1414    }
     
    261261    foreach( $force_map_types as $post_type => $force_mapping ) {
    262262
     263        if ( ! isset( $wp_post_types[$post_type] ) )
     264            continue;
     265
    263266        // Set the post type to map meta capabilities
    264267        $wp_post_types[$post_type]->map_meta_cap = $force_mapping;
  • map-cap/trunk/readme.txt

    r721923 r756814  
    11=== Map Cap ===
    2 Contributors: leonardsego, thenbrent
     2Contributors: thenbrent
    33Tags: capabilities, roles, custom post types
    44Requires at least: 3.1
    55Tested up to: 3.1
    6 Stable tag: 2.0
     6Stable tag: 2.1
    77
    88Control who can publish, edit and delete custom post types.  Silly name, useful code.
     
    6363== Changelog ==
    6464
     65= 2.1 =
     66* Fix 'Invalid argument supplied for foreach() in map-cap.php on line 268' when deactivating a plugin or theme which registered the custom post type Map Cap was operating on
     67
    6568= 2.0 =
    6669* Changing capabilities for custom posts with "post" capability type no longer allowed
     
    7578== Upgrade Notice ==
    7679
     80= 2.1 =
     81* Important Upgrade to fix potential 'Invalid argument supplied for foreach() in map-cap.php on line 268' notices
     82
    7783= 2.0 =
    7884* Important Upgrade to fix a variety of issues with deleting posts and drafts. Requires WordPress 3.1+
Note: See TracChangeset for help on using the changeset viewer.