Changeset 36498
- Timestamp:
- 02/07/2016 02:45:06 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r36497 r36498 1189 1189 1190 1190 /** 1191 * Un -registers a post type.1192 * 1193 * Can not be used to un -register built-in post types.1191 * Unregisters a post type. 1192 * 1193 * Can not be used to unregister built-in post types. 1194 1194 * 1195 1195 * @since 4.5.0 … … 1201 1201 * @global array $wp_post_types List of post types. 1202 1202 * 1203 * @param string $post_type Post type to un -register.1203 * @param string $post_type Post type to unregister. 1204 1204 * @return bool|WP_Error True on success, WP_Error on failure. 1205 1205 */ … … 1211 1211 $post_type_args = get_post_type_object( $post_type ); 1212 1212 1213 // Do not allow un -registering internal post types.1213 // Do not allow unregistering internal post types. 1214 1214 if ( $post_type_args->_builtin ) { 1215 1215 return new WP_Error( 'invalid_post_type', __( 'Unregistering a built-in post type is not allowed' ) );
Note: See TracChangeset
for help on using the changeset viewer.