Changeset 38559
- Timestamp:
- 09/07/2016 04:14:49 PM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-nav-menu.php
r38523 r38559 46 46 * @see Walker::start_lvl() 47 47 * 48 * @param string $output Passed by reference. Used to append additional content.49 * @param int $depth Depth of menu item. Used for padding.50 * @param array $args An arrayof wp_nav_menu() arguments.48 * @param string $output Passed by reference. Used to append additional content. 49 * @param int $depth Depth of menu item. Used for padding. 50 * @param stdClass $args An object of wp_nav_menu() arguments. 51 51 */ 52 52 public function start_lvl( &$output, $depth = 0, $args = array() ) { … … 69 69 * @see Walker::end_lvl() 70 70 * 71 * @param string $output Passed by reference. Used to append additional content.72 * @param int $depth Depth of menu item. Used for padding.73 * @param array $args An arrayof wp_nav_menu() arguments.71 * @param string $output Passed by reference. Used to append additional content. 72 * @param int $depth Depth of menu item. Used for padding. 73 * @param stdClass $args An object of wp_nav_menu() arguments. 74 74 */ 75 75 public function end_lvl( &$output, $depth = 0, $args = array() ) { … … 93 93 * @see Walker::start_el() 94 94 * 95 * @param string $output Passed by reference. Used to append additional content.96 * @param object$item Menu item data object.97 * @param int $depth Depth of menu item. Used for padding.98 * @param array $args An arrayof wp_nav_menu() arguments.99 * @param int $id Current item ID.95 * @param string $output Passed by reference. Used to append additional content. 96 * @param WP_Post $item Menu item data object. 97 * @param int $depth Depth of menu item. Used for padding. 98 * @param stdClass $args An object of wp_nav_menu() arguments. 99 * @param int $id Current item ID. 100 100 */ 101 101 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { … … 117 117 * @since 4.4.0 118 118 * 119 * @param array $args An array ofarguments.120 * @param object$item Menu item data object.121 * @param int $depth Depth of menu item. Used for padding.119 * @param stdClass $args An object of wp_nav_menu() arguments. 120 * @param WP_Post $item Menu item data object. 121 * @param int $depth Depth of menu item. Used for padding. 122 122 */ 123 123 $args = apply_filters( 'nav_menu_item_args', $args, $item, $depth ); … … 129 129 * @since 4.1.0 The `$depth` parameter was added. 130 130 * 131 * @param array $classes The CSS classes that are applied to the menu item's `<li>` element.132 * @param object$item The current menu item.133 * @param array $args An arrayof wp_nav_menu() arguments.134 * @param int $depth Depth of menu item. Used for padding.131 * @param array $classes The CSS classes that are applied to the menu item's `<li>` element. 132 * @param WP_Post $item The current menu item. 133 * @param stdClass $args An object of wp_nav_menu() arguments. 134 * @param int $depth Depth of menu item. Used for padding. 135 135 */ 136 136 $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) ); … … 143 143 * @since 4.1.0 The `$depth` parameter was added. 144 144 * 145 * @param string $menu_id The ID that is applied to the menu item's `<li>` element.146 * @param object$item The current menu item.147 * @param array $args An arrayof wp_nav_menu() arguments.148 * @param int $depth Depth of menu item. Used for padding.145 * @param string $menu_id The ID that is applied to the menu item's `<li>` element. 146 * @param WP_Post $item The current menu item. 147 * @param stdClass $args An object of wp_nav_menu() arguments. 148 * @param int $depth Depth of menu item. Used for padding. 149 149 */ 150 150 $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args, $depth ); … … 173 173 * @type string $href The href attribute. 174 174 * } 175 * @param object$item The current menu item.176 * @param array $args An arrayof wp_nav_menu() arguments.177 * @param int $depth Depth of menu item. Used for padding.175 * @param WP_Post $item The current menu item. 176 * @param stdClass $args An object of wp_nav_menu() arguments. 177 * @param int $depth Depth of menu item. Used for padding. 178 178 */ 179 179 $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args, $depth ); … … 195 195 * @since 4.4.0 196 196 * 197 * @param string $title The menu item's title.198 * @param object$item The current menu item.199 * @param array $args An arrayof wp_nav_menu() arguments.200 * @param int $depth Depth of menu item. Used for padding.197 * @param string $title The menu item's title. 198 * @param WP_Post $item The current menu item. 199 * @param stdClass $args An object of wp_nav_menu() arguments. 200 * @param int $depth Depth of menu item. Used for padding. 201 201 */ 202 202 $title = apply_filters( 'nav_menu_item_title', $title, $item, $args, $depth ); … … 217 217 * @since 3.0.0 218 218 * 219 * @param string $item_output The menu item's starting HTML output.220 * @param object$item Menu item data object.221 * @param int $depth Depth of menu item. Used for padding.222 * @param array $args An arrayof wp_nav_menu() arguments.219 * @param string $item_output The menu item's starting HTML output. 220 * @param WP_Post $item Menu item data object. 221 * @param int $depth Depth of menu item. Used for padding. 222 * @param stdClass $args An object of wp_nav_menu() arguments. 223 223 */ 224 224 $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); … … 232 232 * @see Walker::end_el() 233 233 * 234 * @param string $output Passed by reference. Used to append additional content.235 * @param object$item Page data object. Not used.236 * @param int $depth Depth of page. Not Used.237 * @param array $args An arrayof wp_nav_menu() arguments.234 * @param string $output Passed by reference. Used to append additional content. 235 * @param WP_Post $item Page data object. Not used. 236 * @param int $depth Depth of page. Not Used. 237 * @param stdClass $args An object of wp_nav_menu() arguments. 238 238 */ 239 239 public function end_el( &$output, $item, $depth = 0, $args = array() ) { -
trunk/src/wp-includes/nav-menu-template.php
r38523 r38559 83 83 * 84 84 * @param string|null $output Nav menu output to short-circuit with. Default null. 85 * @param object$args An object containing wp_nav_menu() arguments.85 * @param stdClass $args An object containing wp_nav_menu() arguments. 86 86 */ 87 87 $nav_menu = apply_filters( 'pre_wp_nav_menu', null, $args ); … … 183 183 * @since 3.1.0 184 184 * 185 * @param array $sorted_menu_items The menu items, sorted by each menu item's menu order.186 * @param object$args An object containing wp_nav_menu() arguments.185 * @param array $sorted_menu_items The menu items, sorted by each menu item's menu order. 186 * @param stdClass $args An object containing wp_nav_menu() arguments. 187 187 */ 188 188 $sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args ); … … 214 214 * @see wp_nav_menu() 215 215 * 216 * @param string $items The HTML list content for the menu items.217 * @param object$args An object containing wp_nav_menu() arguments.216 * @param string $items The HTML list content for the menu items. 217 * @param stdClass $args An object containing wp_nav_menu() arguments. 218 218 */ 219 219 $items = apply_filters( 'wp_nav_menu_items', $items, $args ); … … 225 225 * @see wp_nav_menu() 226 226 * 227 * @param string $items The HTML list content for the menu items.228 * @param object$args An object containing wp_nav_menu() arguments.227 * @param string $items The HTML list content for the menu items. 228 * @param stdClass $args An object containing wp_nav_menu() arguments. 229 229 */ 230 230 $items = apply_filters( "wp_nav_menu_{$menu->slug}_items", $items, $args ); … … 247 247 * @see wp_nav_menu() 248 248 * 249 * @param string $nav_menu The HTML content for the navigation menu.250 * @param object$args An object containing wp_nav_menu() arguments.249 * @param string $nav_menu The HTML content for the navigation menu. 250 * @param stdClass $args An object containing wp_nav_menu() arguments. 251 251 */ 252 252 $nav_menu = apply_filters( 'wp_nav_menu', $nav_menu, $args ); … … 496 496 * @since 3.0.0 497 497 * 498 * @param array $items499 * @param int $depth500 * @param object $r501 * @return string 498 * @param array $items The menu items, sorted by each menu item's menu order. 499 * @param int $depth Depth of the item in reference to parents. 500 * @param stdClass $r An object containing wp_nav_menu() arguments. 501 * @return string The HTML list content for the menu items. 502 502 */ 503 503 function walk_nav_menu_tree( $items, $depth, $r ) {
Note: See TracChangeset
for help on using the changeset viewer.