Ticket #57397: 57397.patch
| File 57397.patch, 1.6 KB (added by , 3 years ago) |
|---|
-
twentynineteen/comments.php
89 89 if ( have_comments() ) : 90 90 $prev_icon = twentynineteen_get_icon_svg( 'chevron_left', 22 ); 91 91 $next_icon = twentynineteen_get_icon_svg( 'chevron_right', 22 ); 92 $comments_text = __( 'Comments', 'twentynineteen' );93 92 the_comments_navigation( 94 93 array( 95 94 'prev_text' => sprintf( '%s <span class="nav-prev-text"><span class="primary-text">%s</span> <span class="secondary-text">%s</span></span>', $prev_icon, __( 'Previous', 'twentynineteen' ), __( 'Comments', 'twentynineteen' ) ), -
twentynineteen/inc/template-functions.php
35 35 /** 36 36 * Adds custom class to the array of posts classes. 37 37 */ 38 function twentynineteen_post_classes( $classes , $css_class, $post_id) {38 function twentynineteen_post_classes( $classes ) { 39 39 $classes[] = 'entry'; 40 40 41 41 return $classes; … … 163 163 * 164 164 * @ref https://www.w3.org/WAI/tutorials/menus/flyout/ 165 165 */ 166 function twentynineteen_nav_menu_link_attributes( $atts, $item , $args, $depth) {166 function twentynineteen_nav_menu_link_attributes( $atts, $item ) { 167 167 168 168 // Add [aria-haspopup] and [aria-expanded] to menu items that have children. 169 169 $item_has_children = in_array( 'menu-item-has-children', $item->classes, true );