Ticket #57371: 57371.patch
File 57371.patch, 1.8 KB (added by , 2 years ago) |
---|
-
twentytwenty/classes/class-twentytwenty-walker-page.php
38 38 39 39 if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { 40 40 $t = "\t"; 41 $n = "\n";42 41 } else { 43 42 $t = ''; 44 $n = '';45 43 } 46 44 if ( $depth ) { 47 45 $indent = str_repeat( $t, $depth ); -
twentytwenty/inc/template-tags.php
329 329 // Make sure we don't output an empty container. 330 330 $has_meta = false; 331 331 332 global $post;333 332 $the_post = get_post( $post_id ); 334 333 setup_postdata( $the_post ); 335 334 … … 526 525 * @param int $current_page ID of the current page. 527 526 * @return array CSS class names. 528 527 */ 529 function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $page, $depth, $args , $current_page) {528 function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $page, $depth, $args ) { 530 529 531 530 // Only apply to wp_list_pages() calls with match_menu_classes set to true. 532 531 $match_menu_classes = isset( $args['match_menu_classes'] ); … … 561 560 * @param int $depth Depth of menu item. Used for padding. 562 561 * @return stdClass An object of wp_nav_menu() arguments. 563 562 */ 564 function twentytwenty_add_sub_toggles_to_main_menu( $args, $item , $depth) {563 function twentytwenty_add_sub_toggles_to_main_menu( $args, $item ) { 565 564 566 565 // Add sub menu toggles to the Expanded Menu with toggles. 567 566 if ( isset( $args->show_toggles ) && $args->show_toggles ) {