Make WordPress Core

Ticket #48162: 48162.diff

File 48162.diff, 2.6 KB (added by itowhid06, 4 years ago)
  • src/wp-content/themes/twentytwenty/inc/template-tags.php

    diff --git a/src/wp-content/themes/twentytwenty/inc/template-tags.php b/src/wp-content/themes/twentytwenty/inc/template-tags.php
    index 8e9b65626d..9dde3845c3 100644
    a b if ( ! function_exists( 'twentytwenty_filter_comment_reply_link' ) ) { 
    148148         * makes it scroll to the wrong position on the page.
    149149         *
    150150         * @param string $link Link to the top of the page.
     151         * @return string $link Link to the top of the page.
    151152         */
    152153        function twentytwenty_filter_comment_reply_link( $link ) {
    153154
    if ( ! function_exists( 'twentytwenty_filter_wp_list_pages_item_classes' ) ) { 
    402403         * Filter the class applied to wp_list_pages() items with children to match the menu class, to simplify.
    403404         * styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set.
    404405         *
    405          * @param string $css_class CSS Class names.
     406         * @param array $css_class CSS Class names.
    406407         * @param string $item Comment.
    407408         * @param int    $depth Depth of the current comment.
    408409         * @param array  $args An array of arguments.
    409410         * @param string $current_page Wether or not the item is the current item.
     411         * @return array $css_class CSS Class names.
    410412         */
    411413        function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $item, $depth, $args, $current_page ) {
    412414
    if ( ! function_exists( 'twentytwenty_add_sub_toggles_to_main_menu' ) ) { 
    439441        /**
    440442         * Add a Sub Nav Toggle to the Expanded Menu and Mobile Menu.
    441443         *
    442          * @param array  $args An array of arguments.
     444         * @param stdClass $args An object of wp_nav_menu() arguments.
    443445         * @param string $item Menu item.
    444          * @param int    $depth Depth of the current menu item.
     446         * @param int $depth Depth of the current menu item.
     447         * @return stdClass $args An object of wp_nav_menu() arguments.
    445448         */
    446449        function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) {
    447450
    if ( ! function_exists( 'twentytwenty_get_the_archive_title' ) ) { 
    509512         * Filters the archive title and styles the word before the first colon.
    510513         *
    511514         * @param string $title Current archive title.
     515         * @return string $title Current archive title.
    512516         */
    513517        function twentytwenty_get_the_archive_title( $title ) {
    514518
    if ( ! function_exists( 'twentytwenty_body_classes' ) ) { 
    538542        /**
    539543         * Add conditional body classes.
    540544         *
    541          * @param string $classes Classes added to the body tag.
     545         * @param array $classes Classes added to the body tag.
     546         * @return array $classes Classes added to the body tag.
    542547         */
    543548        function twentytwenty_body_classes( $classes ) {
    544549