WordPress.org

Make WordPress Core

Changeset 28213


Ignore:
Timestamp:
04/25/14 06:49:48 (4 years ago)
Author:
DrewAPicture
Message:

Ensure the wp_edit_nav_menu_walker filter 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

    r28207 r28213  
    957957    } 
    958958 
    959     /** 
    960      * Filter the Walker class used when adding nav menu items. 
    961      * 
    962      * @since 3.4.0 
    963      * 
    964      * @param string $class   The walker class to use. Default 'Walker_Nav_Menu_Edit'. 
    965      * @param int    $menu_id The menu id, derived from $_POST['menu']. 
    966      */ 
     959    /** This filter is documented in wp-admin/includes/nav-menu.php */ 
    967960    $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $_POST['menu'] ); 
    968961 
  • trunk/src/wp-admin/includes/nav-menu.php

    r28207 r28213  
    11661166 
    11671167        /** 
    1168          * Filter the Walker class used to render a menu formatted for editing. 
     1168         * Filter the Walker class used when adding nav menu items. 
    11691169         * 
    11701170         * @since 3.0.0 
    11711171         * 
    1172          * @param string $walker_class_name The Walker class used to render a menu formatted for editing. 
    1173          * @param int    $menu_id           The ID of the menu being rendered. 
     1172         * @param string $class   The walker class to use. Default 'Walker_Nav_Menu_Edit'. 
     1173         * @param int    $menu_id ID of the menu being rendered. 
    11741174         */ 
    11751175        $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id ); 
Note: See TracChangeset for help on using the changeset viewer.