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' ) ) { |
| 148 | 148 | * makes it scroll to the wrong position on the page. |
| 149 | 149 | * |
| 150 | 150 | * @param string $link Link to the top of the page. |
| | 151 | * @return string $link Link to the top of the page. |
| 151 | 152 | */ |
| 152 | 153 | function twentytwenty_filter_comment_reply_link( $link ) { |
| 153 | 154 | |
| … |
… |
if ( ! function_exists( 'twentytwenty_filter_wp_list_pages_item_classes' ) ) { |
| 402 | 403 | * Filter the class applied to wp_list_pages() items with children to match the menu class, to simplify. |
| 403 | 404 | * styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set. |
| 404 | 405 | * |
| 405 | | * @param string $css_class CSS Class names. |
| | 406 | * @param array $css_class CSS Class names. |
| 406 | 407 | * @param string $item Comment. |
| 407 | 408 | * @param int $depth Depth of the current comment. |
| 408 | 409 | * @param array $args An array of arguments. |
| 409 | 410 | * @param string $current_page Wether or not the item is the current item. |
| | 411 | * @return array $css_class CSS Class names. |
| 410 | 412 | */ |
| 411 | 413 | function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $item, $depth, $args, $current_page ) { |
| 412 | 414 | |
| … |
… |
if ( ! function_exists( 'twentytwenty_add_sub_toggles_to_main_menu' ) ) { |
| 439 | 441 | /** |
| 440 | 442 | * Add a Sub Nav Toggle to the Expanded Menu and Mobile Menu. |
| 441 | 443 | * |
| 442 | | * @param array $args An array of arguments. |
| | 444 | * @param stdClass $args An object of wp_nav_menu() arguments. |
| 443 | 445 | * @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. |
| 445 | 448 | */ |
| 446 | 449 | function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) { |
| 447 | 450 | |
| … |
… |
if ( ! function_exists( 'twentytwenty_get_the_archive_title' ) ) { |
| 509 | 512 | * Filters the archive title and styles the word before the first colon. |
| 510 | 513 | * |
| 511 | 514 | * @param string $title Current archive title. |
| | 515 | * @return string $title Current archive title. |
| 512 | 516 | */ |
| 513 | 517 | function twentytwenty_get_the_archive_title( $title ) { |
| 514 | 518 | |
| … |
… |
if ( ! function_exists( 'twentytwenty_body_classes' ) ) { |
| 538 | 542 | /** |
| 539 | 543 | * Add conditional body classes. |
| 540 | 544 | * |
| 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. |
| 542 | 547 | */ |
| 543 | 548 | function twentytwenty_body_classes( $classes ) { |
| 544 | 549 | |