Ticket #51656: wp-body-class-dark-mode.patch
File wp-body-class-dark-mode.patch, 1.6 KB (added by , 4 years ago) |
---|
-
src/wp-includes/post-template.php
785 785 $classes[] = 'wp-embed-responsive'; 786 786 } 787 787 788 if ( current_theme_supports( 'dark-theme' ) ) { 789 $classes[] = 'wp-dark-theme'; 790 } 791 788 792 $page = $wp_query->get( 'page' ); 789 793 790 794 if ( ! $page || $page < 2 ) { -
src/wp-includes/theme.php
2482 2482 * @since 5.5.0 The `core-block-patterns` feature was added and is enabled by default. 2483 2483 * @since 5.5.0 The `custom-logo` feature now also accepts 'unlink-homepage-logo'. 2484 2484 * @since 5.6.0 The `post-formats` feature warns if no array is passed. 2485 * @since 5.7.0 The `dark-theme` feature was added. 2485 2486 * 2486 2487 * @global array $_wp_theme_features 2487 2488 * … … 2490 2491 * 'html5', 'title-tag', 'customize-selective-refresh-widgets', 'starter-content', 2491 2492 * 'responsive-embeds', 'align-wide', 'dark-editor-style', 'disable-custom-colors', 2492 2493 * 'disable-custom-font-sizes', 'editor-color-palette', 'editor-font-sizes', 2493 * 'editor-styles', 'wp-block-styles', and 'core-block-patterns'.2494 * 'editor-styles', 'wp-block-styles', 'core-block-patterns', and 'dark-theme'. 2494 2495 * @param mixed ...$args Optional extra arguments to pass along with certain features. 2495 2496 * @return void|bool False on failure, void otherwise. 2496 2497 */