mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Docs: In various @return tags, list the expected type first, instead of WP_Error.
See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@46696 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1405,7 +1405,8 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
|
||||
* @type string $_edit_link FOR INTERNAL USE ONLY! URL segment to use for edit link of
|
||||
* this post type. Default 'post.php?post=%d'.
|
||||
* }
|
||||
* @return WP_Post_Type|WP_Error The registered post type object, or an error object.
|
||||
* @return WP_Post_Type|WP_Error The registered post type object on success,
|
||||
* WP_Error object on failure.
|
||||
*/
|
||||
function register_post_type( $post_type, $args = array() ) {
|
||||
global $wp_post_types;
|
||||
|
||||
Reference in New Issue
Block a user