Changeset 35704 for trunk/src/wp-includes/post-functions.php
- Timestamp:
- 11/19/2015 04:24:35 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-functions.php
r35623 r35704 1013 1013 $args = apply_filters( 'register_post_type_args', $args, $post_type ); 1014 1014 1015 $has_edit_link = ! empty( $args['_edit_link'] ); 1016 1015 1017 // Args prefixed with an underscore are reserved for internal use. 1016 1018 $defaults = array( … … 1082 1084 if ( null === $args->map_meta_cap ) 1083 1085 $args->map_meta_cap = false; 1086 1087 // If there's no specified edit link and no UI, remove the edit link. 1088 if ( ! $args->show_ui && ! $has_edit_link ) { 1089 $args->_edit_link = ''; 1090 } 1084 1091 1085 1092 $args->cap = get_post_type_capabilities( $args );
Note: See TracChangeset
for help on using the changeset viewer.