Changeset 34513
- Timestamp:
- 09/24/2015 07:38:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-functions.php
r34472 r34513 993 993 // Sanitize post type name 994 994 $post_type = sanitize_key( $post_type ); 995 $args = wp_parse_args( $args ); 995 996 996 997 /** … … 999 1000 * @since 4.4.0 1000 1001 * 1001 * @param array |string $args Array or stringof arguments for registering a post type.1002 * @param string 1002 * @param array $args Array of arguments for registering a post type. 1003 * @param string $post_type Post type key. 1003 1004 */ 1004 1005 $args = apply_filters( 'register_post_type_args', $args, $post_type ); … … 1032 1033 '_edit_link' => 'post.php?post=%d', 1033 1034 ); 1034 $args = wp_parse_args( $args, $defaults );1035 $args = array_merge( $defaults, $args ); 1035 1036 $args = (object) $args; 1036 1037
Note: See TracChangeset
for help on using the changeset viewer.