Docs: Add and clarify changelog entries for elements that can now accept, use, or return `WP_Post_Type` objects.
Also adds a missing initial `@since` version for `wp_xmlrpc_server::_prepare_post_type()`. See [37890]. See #36217. Built from https://develop.svn.wordpress.org/trunk@38051 git-svn-id: http://core.svn.wordpress.org/trunk@37992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
456c9bea3d
commit
60de6917fb
|
@ -519,6 +519,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
|
||||||
* to the slug of the current post type.
|
* to the slug of the current post type.
|
||||||
*
|
*
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
|
* @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
|
||||||
*
|
*
|
||||||
* @see WP_Query::query()
|
* @see WP_Query::query()
|
||||||
*
|
*
|
||||||
|
@ -527,6 +528,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
|
||||||
* @param WP_Post_Type $post_type The current post type object for this menu item meta box.
|
* @param WP_Post_Type $post_type The current post type object for this menu item meta box.
|
||||||
*/
|
*/
|
||||||
$posts = apply_filters( "nav_menu_items_{$post_type_name}", $posts, $args, $post_type );
|
$posts = apply_filters( "nav_menu_items_{$post_type_name}", $posts, $args, $post_type );
|
||||||
|
|
||||||
$checkbox_items = walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $posts), 0, (object) $args );
|
$checkbox_items = walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $posts), 0, (object) $args );
|
||||||
|
|
||||||
if ( 'all' == $current_tab && ! empty( $_REQUEST['selectall'] ) ) {
|
if ( 'all' == $current_tab && ! empty( $_REQUEST['selectall'] ) ) {
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
* Core class used for interacting with post types.
|
* Core class used for interacting with post types.
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
|
*
|
||||||
|
* @see register_post_type()
|
||||||
*/
|
*/
|
||||||
final class WP_Post_Type {
|
final class WP_Post_Type {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -881,6 +881,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
/**
|
/**
|
||||||
* Prepares post data for return in an XML-RPC object.
|
* Prepares post data for return in an XML-RPC object.
|
||||||
*
|
*
|
||||||
|
* @since 3.4.0
|
||||||
|
* @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
|
||||||
* @access protected
|
* @access protected
|
||||||
*
|
*
|
||||||
* @param WP_Post_Type $post_type Post type object.
|
* @param WP_Post_Type $post_type Post type object.
|
||||||
|
@ -921,6 +923,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
* Filters XML-RPC-prepared date for the given post type.
|
* Filters XML-RPC-prepared date for the given post type.
|
||||||
*
|
*
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
|
* @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
|
||||||
*
|
*
|
||||||
* @param array $_post_type An array of post type data.
|
* @param array $_post_type An array of post type data.
|
||||||
* @param WP_Post_Type $post_type Post type object.
|
* @param WP_Post_Type $post_type Post type object.
|
||||||
|
|
|
@ -837,6 +837,7 @@ function get_post_type( $post = null ) {
|
||||||
* Retrieves a post type object by name.
|
* Retrieves a post type object by name.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
|
* @since 4.6.0 Converted to use WP_Post_Type.
|
||||||
*
|
*
|
||||||
* @global array $wp_post_types List of post types.
|
* @global array $wp_post_types List of post types.
|
||||||
*
|
*
|
||||||
|
@ -899,7 +900,7 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
|
||||||
* @since 3.0.0 The `show_ui` argument is now enforced on the new post screen.
|
* @since 3.0.0 The `show_ui` argument is now enforced on the new post screen.
|
||||||
* @since 4.4.0 The `show_ui` argument is now enforced on the post type listing
|
* @since 4.4.0 The `show_ui` argument is now enforced on the post type listing
|
||||||
* screen and post editing screen.
|
* screen and post editing screen.
|
||||||
* @since 4.6.0 Converted to use `WP_Post_Type`.
|
* @since 4.6.0 Converted to use WP_Post_Type.
|
||||||
*
|
*
|
||||||
* @global array $wp_post_types List of post types.
|
* @global array $wp_post_types List of post types.
|
||||||
*
|
*
|
||||||
|
@ -1041,6 +1042,7 @@ function register_post_type( $post_type, $args = array() ) {
|
||||||
* Fires after a post type is registered.
|
* Fires after a post type is registered.
|
||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
|
* @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
|
||||||
*
|
*
|
||||||
* @param string $post_type Post type.
|
* @param string $post_type Post type.
|
||||||
* @param WP_Post_Type $post_type_object Arguments used to register the post type.
|
* @param WP_Post_Type $post_type_object Arguments used to register the post type.
|
||||||
|
@ -1056,7 +1058,7 @@ function register_post_type( $post_type, $args = array() ) {
|
||||||
* Can not be used to unregister built-in post types.
|
* Can not be used to unregister built-in post types.
|
||||||
*
|
*
|
||||||
* @since 4.5.0
|
* @since 4.5.0
|
||||||
* @since 4.6.0 Converted to use `WP_Post_Type`.
|
* @since 4.6.0 Converted to use WP_Post_Type.
|
||||||
*
|
*
|
||||||
* @global array $wp_post_types List of post types.
|
* @global array $wp_post_types List of post types.
|
||||||
*
|
*
|
||||||
|
@ -1265,6 +1267,7 @@ function _post_type_meta_capabilities( $capabilities = null ) {
|
||||||
* and `use_featured_image` labels.
|
* and `use_featured_image` labels.
|
||||||
* @since 4.4.0 Added the `insert_into_item`, `uploaded_to_this_item`, `filter_items_list`,
|
* @since 4.4.0 Added the `insert_into_item`, `uploaded_to_this_item`, `filter_items_list`,
|
||||||
* `items_list_navigation`, and `items_list` labels.
|
* `items_list_navigation`, and `items_list` labels.
|
||||||
|
* @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
|
||||||
*
|
*
|
||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
|
@ -1522,6 +1525,7 @@ function set_post_type( $post_id = 0, $post_type = 'post' ) {
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @since 4.5.0 Added the ability to pass a post type name in addition to object.
|
* @since 4.5.0 Added the ability to pass a post type name in addition to object.
|
||||||
|
* @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
|
||||||
*
|
*
|
||||||
* @param string|WP_Post_Type $post_type Post type name or object.
|
* @param string|WP_Post_Type $post_type Post type name or object.
|
||||||
* @return bool Whether the post type should be considered viewable.
|
* @return bool Whether the post type should be considered viewable.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-beta2-38050';
|
$wp_version = '4.6-beta2-38051';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue