Make WordPress Core


Ignore:
Timestamp:
06/14/2015 10:52:35 AM (10 years ago)
Author:
ocean90
Message:

Nav Menus: Update wp_setup_nav_menu_item() to stop overriding empty properties from supplied $menu_item.

Update docs for WP_Post constructor to indicate that WP_Post|object can be the supplied param, as opposed to just WP_Post.

props westonruter.
fixes #32632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r32729 r32762  
    682682     * Constructor.
    683683     *
    684      * @param WP_Post $post Post object.
     684     * @param WP_Post|object $post Post object.
    685685     */
    686686    public function __construct( $post ) {
Note: See TracChangeset for help on using the changeset viewer.