Changeset 16273 for trunk/wp-includes/post.php
- Timestamp:
- 11/10/2010 02:50:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r16268 r16273 843 843 * - menu_position - The position in the menu order the post type should appear. Defaults to the bottom. 844 844 * - menu_icon - The url to the icon to be used for this menu. Defaults to use the posts icon. 845 * - capability_type - The post type to use for checkingread, edit, and delete capabilities. Defaults to 'post'.845 * - capability_type - The string to use to build the read, edit, and delete capabilities. Defaults to 'post'. 846 846 * May be passed as an array to allow for alternative plurals when using this argument as a base to construct the 847 847 * capabilities, e.g. array('story', 'stories'). … … 917 917 if ( null === $args->exclude_from_search ) 918 918 $args->exclude_from_search = !$args->public; 919 920 if ( empty($args->capability_type) )921 $args->capability_type = 'post';922 919 923 920 $args->cap = get_post_type_capabilities( $args );
Note: See TracChangeset
for help on using the changeset viewer.