Make WordPress Core


Ignore:
Timestamp:
07/14/2015 07:08:40 AM (9 years ago)
Author:
westonruter
Message:

Customizer: Improve performance of menus by caching results of wp_setup_nav_menu_item() calls.

Also fixes property list in phpdoc for wp_setup_nav_menu_item().

Fixes #32769.

File:
1 edited

Legend:

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

    r33232 r33256  
    659659 *
    660660 * Properties:
    661  * - db_id:         The DB ID of this item as a nav_menu_item object, if it exists (0 if it doesn't exist).
    662  * - object_id:     The DB ID of the original object this menu item represents, e.g. ID for posts and term_id for categories.
    663  * - type:      The family of objects originally represented, such as "post_type" or "taxonomy."
    664  * - object:        The type of object originally represented, such as "category," "post", or "attachment."
    665  * - type_label:    The singular label used to describe this type of menu item.
    666  * - post_parent:   The DB ID of the original object's parent object, if any (0 otherwise).
    667  * - menu_item_parent:  The DB ID of the nav_menu_item that is this item's menu parent, if any. 0 otherwise.
    668  * - url:       The URL to which this menu item points.
    669  * - title:     The title of this menu item.
    670  * - target:        The target attribute of the link element for this menu item.
    671  * - attr_title:    The title attribute of the link element for this menu item.
    672  * - classes:       The array of class attribute values for the link element of this menu item.
    673  * - xfn:       The XFN relationship expressed in the link of this menu item.
    674  * - description:   The description of this menu item.
     661 * - ID:               The term_id if the menu item represents a taxonomy term.
     662 * - attr_title:       The title attribute of the link element for this menu item.
     663 * - classes:          The array of class attribute values for the link element of this menu item.
     664 * - db_id:            The DB ID of this item as a nav_menu_item object, if it exists (0 if it doesn't exist).
     665 * - description:      The description of this menu item.
     666 * - menu_item_parent: The DB ID of the nav_menu_item that is this item's menu parent, if any. 0 otherwise.
     667 * - object:           The type of object originally represented, such as "category," "post", or "attachment."
     668 * - object_id:        The DB ID of the original object this menu item represents, e.g. ID for posts and term_id for categories.
     669 * - post_parent:      The DB ID of the original object's parent object, if any (0 otherwise).
     670 * - post_title:       A "no title" label if menu item represents a post that lacks a title.
     671 * - target:           The target attribute of the link element for this menu item.
     672 * - title:            The title of this menu item.
     673 * - type:             The family of objects originally represented, such as "post_type" or "taxonomy."
     674 * - type_label:       The singular label used to describe this type of menu item.
     675 * - url:              The URL to which this menu item points.
     676 * - xfn:              The XFN relationship expressed in the link of this menu item.
     677 * - _invalid:         Whether the menu item represents an object that no longer exists.
    675678 *
    676679 * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.