WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/13/2016 03:23:04 PM (5 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.