Changeset 47189
- Timestamp:
- 02/05/2020 07:23:25 AM (5 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-walker-nav-menu-checklist.php
r47122 r47189 31 31 * @since 3.0.0 32 32 * 33 * @param string $output Used to append additional content (passed by reference).34 * @param int $depth Depth of page. Used for padding.35 * @param array$args Not used.33 * @param string $output Used to append additional content (passed by reference). 34 * @param int $depth Depth of page. Used for padding. 35 * @param stdClass $args Not used. 36 36 */ 37 public function start_lvl( &$output, $depth = 0, $args = array()) {37 public function start_lvl( &$output, $depth = 0, $args = null ) { 38 38 $indent = str_repeat( "\t", $depth ); 39 39 $output .= "\n$indent<ul class='children'>\n"; … … 47 47 * @since 3.0.0 48 48 * 49 * @param string $output Used to append additional content (passed by reference).50 * @param int $depth Depth of page. Used for padding.51 * @param array$args Not used.49 * @param string $output Used to append additional content (passed by reference). 50 * @param int $depth Depth of page. Used for padding. 51 * @param stdClass $args Not used. 52 52 */ 53 public function end_lvl( &$output, $depth = 0, $args = array()) {53 public function end_lvl( &$output, $depth = 0, $args = null ) { 54 54 $indent = str_repeat( "\t", $depth ); 55 55 $output .= "\n$indent</ul>"; … … 66 66 * @global int|string $nav_menu_selected_id 67 67 * 68 * @param string $output Used to append additional content (passed by reference).69 * @param object$item Menu item data object.70 * @param int $depth Depth of menu item. Used for padding.71 * @param array$args Not used.72 * @param int $id Not used.68 * @param string $output Used to append additional content (passed by reference). 69 * @param WP_Post $item Menu item data object. 70 * @param int $depth Depth of menu item. Used for padding. 71 * @param stdClass $args Not used. 72 * @param int $id Not used. 73 73 */ 74 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {74 public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) { 75 75 global $_nav_menu_placeholder, $nav_menu_selected_id; 76 76 -
trunk/src/wp-admin/includes/class-walker-nav-menu-edit.php
r47122 r47189 23 23 * @since 3.0.0 24 24 * 25 * @param string $output Passed by reference.26 * @param int $depth Depth of menu item. Used for padding.27 * @param array$args Not used.25 * @param string $output Passed by reference. 26 * @param int $depth Depth of menu item. Used for padding. 27 * @param stdClass $args Not used. 28 28 */ 29 public function start_lvl( &$output, $depth = 0, $args = array()) {}29 public function start_lvl( &$output, $depth = 0, $args = null ) {} 30 30 31 31 /** … … 36 36 * @since 3.0.0 37 37 * 38 * @param string $output Passed by reference.39 * @param int $depth Depth of menu item. Used for padding.40 * @param array$args Not used.38 * @param string $output Passed by reference. 39 * @param int $depth Depth of menu item. Used for padding. 40 * @param stdClass $args Not used. 41 41 */ 42 public function end_lvl( &$output, $depth = 0, $args = array()) {}42 public function end_lvl( &$output, $depth = 0, $args = null ) {} 43 43 44 44 /** … … 50 50 * @global int $_wp_nav_menu_max_depth 51 51 * 52 * @param string $output Used to append additional content (passed by reference).53 * @param object$item Menu item data object.54 * @param int $depth Depth of menu item. Used for padding.55 * @param array$args Not used.56 * @param int $id Not used.52 * @param string $output Used to append additional content (passed by reference). 53 * @param WP_Post $item Menu item data object. 54 * @param int $depth Depth of menu item. Used for padding. 55 * @param stdClass $args Not used. 56 * @param int $id Not used. 57 57 */ 58 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {58 public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) { 59 59 global $_wp_nav_menu_max_depth; 60 60 $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
Note: See TracChangeset
for help on using the changeset viewer.