Changeset 36497
- Timestamp:
- 02/07/2016 02:42:25 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/term.php
r36308 r36497 3 3 * Edit Term Administration Screen. 4 4 * 5 * @package 5 * @package WordPress 6 6 * @subpackage Administration 7 * @since 4.5.0 7 8 */ 8 9 -
trunk/src/wp-includes/post.php
r36481 r36497 1189 1189 1190 1190 /** 1191 * Un registera post type.1192 * 1193 * Can not be used to un register built-in post types.1191 * Un-registers a post type. 1192 * 1193 * Can not be used to un-register 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 key.1203 * @param string $post_type Post type to un-register. 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 un-registering 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.