Make WordPress Core

Changeset 28207


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

Ensure the nav_menu_meta_box_object filter hook is only documented once.

See #26869.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r28163 r28207  
    11751175    if ( ! empty( $_POST['item-object'] ) && isset( $items[$_POST['item-object']] ) ) {
    11761176        $menus_meta_box_object = $items[ $_POST['item-object'] ];
    1177         /**
    1178          * Filter a nav menu meta box object.
    1179          *
    1180          * @since 3.0.0
    1181          *
    1182          * @param object $menus_meta_box_object A nav menu meta box object, such as Page,
    1183          *                                      Post, Category, Tag, etc.
    1184          */
     1177
     1178        /** This filter is documented in wp-admin/includes/nav-menu.php */
    11851179        $item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object );
    11861180        ob_start();
  • 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.