diff --git a/wp-includes/post.php b/wp-includes/post.php
index 5d56c45c994e1cdbd8a25d95fe25e95661578e95..8adb3cff12ca878568eb6e359ec5c70086268801 100644
a
|
b
|
function register_post_type( $post_type, $args = array() ) { |
1214 | 1214 | '_edit_link' => 'post.php?post=%d', |
1215 | 1215 | ); |
1216 | 1216 | |
1217 | | // Allow filtering of all arguments for non built-in post types |
1218 | | if( $args['_builtin'] == false ){ |
| 1217 | // Allow filtering of all arguments for non built-in post types. |
| 1218 | if( false == $args['_builtin'] ) |
1219 | 1219 | $args = apply_filters( 'register_post_type_args', $args, $post_type ); |
1220 | | } |
1221 | 1220 | |
1222 | | // Allow filtering of labels for all post types |
| 1221 | // Allow filtering of labels for all post types. |
1223 | 1222 | $args['labels'] = apply_filters( 'register_post_type_labels', $args['labels'], $post_type ); |
1224 | 1223 | |
1225 | 1224 | $args = wp_parse_args( $args, $defaults ); |