Changeset 756814
- Timestamp:
- 08/15/2013 06:31:33 PM (13 years ago)
- Location:
- map-cap/trunk
- Files:
-
- 2 edited
-
map-cap.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
map-cap/trunk/map-cap.php
r388815 r756814 5 5 Description: Control who can publish, edit and delete custom post types. Silly name, useful code. 6 6 Author: Brent Shepherd 7 Version: 2. 07 Version: 2.1 8 8 Author URI: http://find.brentshepherd.com/ 9 9 */ 10 10 11 11 function mc_add_admin_menu() { 12 if ( function_exists('add_options_page') ) { // additional pages under E-Commerce12 if ( function_exists('add_options_page') ) { 13 13 $page = add_options_page( 'Map Caps', 'Map Cap', 'manage_options', 'mapcap', 'mc_capabilities_settings_page' ); 14 14 } … … 261 261 foreach( $force_map_types as $post_type => $force_mapping ) { 262 262 263 if ( ! isset( $wp_post_types[$post_type] ) ) 264 continue; 265 263 266 // Set the post type to map meta capabilities 264 267 $wp_post_types[$post_type]->map_meta_cap = $force_mapping; -
map-cap/trunk/readme.txt
r721923 r756814 1 1 === Map Cap === 2 Contributors: leonardsego,thenbrent2 Contributors: thenbrent 3 3 Tags: capabilities, roles, custom post types 4 4 Requires at least: 3.1 5 5 Tested up to: 3.1 6 Stable tag: 2. 06 Stable tag: 2.1 7 7 8 8 Control who can publish, edit and delete custom post types. Silly name, useful code. … … 63 63 == Changelog == 64 64 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 65 68 = 2.0 = 66 69 * Changing capabilities for custom posts with "post" capability type no longer allowed … … 75 78 == Upgrade Notice == 76 79 80 = 2.1 = 81 * Important Upgrade to fix potential 'Invalid argument supplied for foreach() in map-cap.php on line 268' notices 82 77 83 = 2.0 = 78 84 * 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.