WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/25/2014 06:13:15 AM (7 years ago)
Author:
DrewAPicture
Message:

Ensure the nav_menu_meta_box_object filter hook is only documented once.

See #26869.

File:
1 edited

Legend:

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

    r27262 r28207  
    504504    foreach ( $post_types as $post_type ) {
    505505        /**
    506          * Filter whether a menu items meta box will be added for the current post type.
     506         * Filter whether a menu items meta box will be added for the current
     507         * object type.
    507508         *
    508          * If a falsey value is returned instead of a post type object,
    509          * the post type menu items meta box will not be added.
     509         * If a falsey value is returned instead of an object, the menu items
     510         * meta box for the current meta box object will not be added.
    510511         *
    511512         * @since 3.0.0
    512513         *
    513          * @param object $post_type The post type object to be used as a meta box.
     514         * @param object $meta_box_object The current object to add a menu items
     515         *                                meta box for.
    514516         */
    515517        $post_type = apply_filters( 'nav_menu_meta_box_object', $post_type );
     
    535537
    536538    foreach ( $taxonomies as $tax ) {
    537         /**
    538          * Filter whether a menu items meta box will be added for the current taxonomy.
    539          *
    540          * If a falsey value is returned instead of a taxonomy object,
    541          * the taxonomy menu items meta box will not be added.
    542          *
    543          * @since 3.0.0
    544          *
    545          * @param object $tax The taxonomy object to be used as a meta box.
    546          */
     539        /** This filter is documented in wp-admin/includes/nav-menu.php */
    547540        $tax = apply_filters( 'nav_menu_meta_box_object', $tax );
    548541        if ( $tax ) {
Note: See TracChangeset for help on using the changeset viewer.