diff --git src/wp-content/themes/twentytwenty/inc/template-tags.php src/wp-content/themes/twentytwenty/inc/template-tags.php
index 858ecc1631..e5ab3105f3 100644
|
|
|
function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) |
| 520 | 520 | * @since Twenty Twenty 1.0 |
| 521 | 521 | * |
| 522 | 522 | * @param string[] $css_class An array of CSS classes to be applied to each list item. |
| 523 | | * @param WP_Post $page Page data object. |
| 524 | | * @param int $depth Depth of page, used for padding. |
| 525 | 523 | * @param array $args An array of arguments. |
| 526 | | * @param int $current_page ID of the current page. |
| 527 | 524 | * @return array CSS class names. |
| 528 | 525 | */ |
| 529 | 526 | function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $page, $depth, $args, $current_page ) { |
| … |
… |
add_filter( 'page_css_class', 'twentytwenty_filter_wp_list_pages_item_classes', |
| 558 | 555 | * |
| 559 | 556 | * @param stdClass $args An object of wp_nav_menu() arguments. |
| 560 | 557 | * @param WP_Post $item Menu item data object. |
| 561 | | * @param int $depth Depth of menu item. Used for padding. |
| 562 | 558 | * @return stdClass An object of wp_nav_menu() arguments. |
| 563 | 559 | */ |
| 564 | 560 | function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) { |
| … |
… |
add_filter( 'nav_menu_item_args', 'twentytwenty_add_sub_toggles_to_main_menu', 1 |
| 606 | 602 | * |
| 607 | 603 | * @param string $item_output The menu item's starting HTML output. |
| 608 | 604 | * @param WP_Post $item Menu item data object. |
| 609 | | * @param int $depth Depth of the menu. Used for padding. |
| 610 | 605 | * @param stdClass $args An object of wp_nav_menu() arguments. |
| 611 | 606 | * @return string The menu item output with social icon. |
| 612 | 607 | */ |
diff --git src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
index 6955fc7c1b..720b3cfda2 100644
|
|
|
class Twenty_Twenty_One_Dark_Mode { |
| 235 | 235 | * |
| 236 | 236 | * @since Twenty Twenty-One 1.0 |
| 237 | 237 | * |
| | 238 | * @global $current_screen |
| 238 | 239 | * @param string $classes The admin body-classes. |
| 239 | 240 | * @return string |
| 240 | 241 | */ |
| … |
… |
class Twenty_Twenty_One_Dark_Mode { |
| 266 | 267 | * @since Twenty Twenty-One 1.0 |
| 267 | 268 | * |
| 268 | 269 | * @return bool |
| | 270 | * @global $is_IE |
| 269 | 271 | */ |
| 270 | 272 | public function switch_should_render() { |
| 271 | 273 | global $is_IE; |