Make WordPress Core

Ticket #57397: 57397.patch

File 57397.patch, 1.6 KB (added by upadalavipul, 3 years ago)
  • twentynineteen/comments.php

     
    8989                if ( have_comments() ) :
    9090                        $prev_icon     = twentynineteen_get_icon_svg( 'chevron_left', 22 );
    9191                        $next_icon     = twentynineteen_get_icon_svg( 'chevron_right', 22 );
    92                         $comments_text = __( 'Comments', 'twentynineteen' );
    9392                        the_comments_navigation(
    9493                                array(
    9594                                        '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

     
    3535/**
    3636 * Adds custom class to the array of posts classes.
    3737 */
    38 function twentynineteen_post_classes( $classes, $css_class, $post_id ) {
     38function twentynineteen_post_classes( $classes ) {
    3939        $classes[] = 'entry';
    4040
    4141        return $classes;
     
    163163 *
    164164 * @ref https://www.w3.org/WAI/tutorials/menus/flyout/
    165165 */
    166 function twentynineteen_nav_menu_link_attributes( $atts, $item, $args, $depth ) {
     166function twentynineteen_nav_menu_link_attributes( $atts, $item ) {
    167167
    168168        // Add [aria-haspopup] and [aria-expanded] to menu items that have children.
    169169        $item_has_children = in_array( 'menu-item-has-children', $item->classes, true );