Make WordPress Core

Changeset 38051


Ignore:
Timestamp:
07/13/2016 03:23:04 PM (8 years ago)
Author:
DrewAPicture
Message:

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.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/nav-menu.php

    r38029 r38051  
    520520                 *
    521521                 * @since 3.2.0
     522                 * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
    522523                 *
    523524                 * @see WP_Query::query()
     
    528529                 */
    529530                $posts = apply_filters( "nav_menu_items_{$post_type_name}", $posts, $args, $post_type );
     531
    530532                $checkbox_items = walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $posts), 0, (object) $args );
    531533
  • trunk/src/wp-includes/class-wp-post-type.php

    r38030 r38051  
    1212 *
    1313 * @since 4.6.0
     14 *
     15 * @see register_post_type()
    1416 */
    1517final class WP_Post_Type {
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r38037 r38051  
    882882     * Prepares post data for return in an XML-RPC object.
    883883     *
     884     * @since 3.4.0
     885     * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
    884886     * @access protected
    885887     *
     
    922924         *
    923925         * @since 3.4.0
     926         * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
    924927         *
    925928         * @param array        $_post_type An array of post type data.
  • trunk/src/wp-includes/post.php

    r37985 r38051  
    838838 *
    839839 * @since 3.0.0
     840 * @since 4.6.0 Converted to use WP_Post_Type.
    840841 *
    841842 * @global array $wp_post_types List of post types.
     
    900901 * @since 4.4.0 The `show_ui` argument is now enforced on the post type listing
    901902 *              screen and post editing screen.
    902  * @since 4.6.0 Converted to use `WP_Post_Type`.
     903 * @since 4.6.0 Converted to use WP_Post_Type.
    903904 *
    904905 * @global array $wp_post_types List of post types.
     
    10421043     *
    10431044     * @since 3.3.0
     1045     * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
    10441046     *
    10451047     * @param string       $post_type        Post type.
     
    10571059 *
    10581060 * @since 4.5.0
    1059  * @since 4.6.0 Converted to use `WP_Post_Type`.
     1061 * @since 4.6.0 Converted to use WP_Post_Type.
    10601062 *
    10611063 * @global array $wp_post_types List of post types.
     
    12661268 * @since 4.4.0 Added the `insert_into_item`, `uploaded_to_this_item`, `filter_items_list`,
    12671269 *              `items_list_navigation`, and `items_list` labels.
     1270 * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
    12681271 *
    12691272 * @access private
     
    15231526 * @since 4.4.0
    15241527 * @since 4.5.0 Added the ability to pass a post type name in addition to object.
     1528 * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
    15251529 *
    15261530 * @param string|WP_Post_Type $post_type Post type name or object.
Note: See TracChangeset for help on using the changeset viewer.