Updating Twenty Nineteen, the new default theme for 2019.

This update changes the following:

- Properly sets the primary color hue theme option. See https://github.com/WordPress/twentynineteen/pull/683.
- Add proper frontend styles for center aligned archive and category blocks. See https://github.com/WordPress/twentynineteen/pull/684.
- Fix `image_filter` theme option conditional function. See https://github.com/WordPress/twentynineteen/pull/680.
- Remove duplicate rule-line when a separator block is followed by H1/H2 in the editor. See https://github.com/WordPress/twentynineteen/pull/686.

Props richtabor, kjellr, allancole.

Merges [44192] and [44193] to trunk.

See #45424.
Built from https://develop.svn.wordpress.org/trunk@44302


git-svn-id: http://core.svn.wordpress.org/trunk@44132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2018-12-19 03:21:42 +00:00
parent 3b995edda6
commit 01029daf49
8 changed files with 38 additions and 6 deletions

View File

@ -14,7 +14,7 @@ function twentynineteen_custom_colors_css() {
$primary_color = 199; $primary_color = 199;
if ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) { if ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) {
$primary_color = absint( get_theme_mod( 'primary_color', 199 ) ); $primary_color = absint( get_theme_mod( 'primary_color_hue', 199 ) );
} }
/** /**

View File

@ -106,7 +106,7 @@ function twentynineteen_can_show_post_thumbnail() {
* Returns true if image filters are enabled on the theme options. * Returns true if image filters are enabled on the theme options.
*/ */
function twentynineteen_image_filters_enabled() { function twentynineteen_image_filters_enabled() {
return 'inactive' !== get_theme_mod( 'image_filter', 1 ); return 0 !== get_theme_mod( 'image_filter', 1 );
} }
/** /**

View File

@ -244,6 +244,14 @@
} }
} }
.wp-block-archives,
.wp-block-categories {
&.aligncenter {
text-align: center;
}
}
//! Latest categories //! Latest categories
.wp-block-categories { .wp-block-categories {

View File

@ -614,6 +614,13 @@ figcaption,
padding-left: calc(2 * 1rem); padding-left: calc(2 * 1rem);
} }
/* Remove duplicate rule-line when a separator
* is followed by an H1, or H2 */
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
display: none;
}
/** === Latest Posts, Archives, Categories === */ /** === Latest Posts, Archives, Categories === */
ul.wp-block-archives, ul.wp-block-archives,
.wp-block-categories, .wp-block-categories,

View File

@ -600,6 +600,13 @@ figcaption,
} }
} }
/* Remove duplicate rule-line when a separator
* is followed by an H1, or H2 */
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h1:before,
.wp-block[data-type="core/separator"] + .wp-block[data-type="core/heading"] h2:before {
display: none;
}
/** === Latest Posts, Archives, Categories === */ /** === Latest Posts, Archives, Categories === */
ul.wp-block-archives, ul.wp-block-archives,

View File

@ -3690,6 +3690,11 @@ body.page .main-navigation {
text-decoration: none; text-decoration: none;
} }
.entry .entry-content .wp-block-archives.aligncenter,
.entry .entry-content .wp-block-categories.aligncenter {
text-align: center;
}
.entry .entry-content .wp-block-categories ul { .entry .entry-content .wp-block-categories ul {
padding-top: 0.75rem; padding-top: 0.75rem;
} }

View File

@ -3702,6 +3702,11 @@ body.page .main-navigation {
text-decoration: none; text-decoration: none;
} }
.entry .entry-content .wp-block-archives.aligncenter,
.entry .entry-content .wp-block-categories.aligncenter {
text-align: center;
}
.entry .entry-content .wp-block-categories ul { .entry .entry-content .wp-block-categories ul {
padding-top: 0.75rem; padding-top: 0.75rem;
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.1-alpha-44301'; $wp_version = '5.1-alpha-44302';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.