updated theme Twenty Nineteen version 2.3

This commit is contained in:
KawaiiPunk 2022-08-19 16:16:27 +00:00 committed by Gitium
parent 84530e9d0d
commit ba0955a33f
90 changed files with 28319 additions and 28264 deletions

View File

@ -61,7 +61,7 @@ $discussion = twentynineteen_get_discussion_data();
get_template_part( 'template-parts/post/discussion', 'meta' ); get_template_part( 'template-parts/post/discussion', 'meta' );
} }
?> ?>
</div><!-- .comments-title-flex --> </div><!-- .comments-title-wrap -->
<?php <?php
if ( have_comments() ) : if ( have_comments() ) :
@ -101,10 +101,9 @@ $discussion = twentynineteen_get_discussion_data();
// Show comment form at bottom if showing newest comments at the bottom. // Show comment form at bottom if showing newest comments at the bottom.
if ( comments_open() && 'asc' === strtolower( get_option( 'comment_order', 'asc' ) ) ) : if ( comments_open() && 'asc' === strtolower( get_option( 'comment_order', 'asc' ) ) ) :
?> ?>
<div class="comment-form-flex"> <div class="comment-form-flex comment-form-wrapper">
<span class="screen-reader-text"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></span> <h2 class="comments-title"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></h2>
<?php twentynineteen_comment_form( 'asc' ); ?> <?php twentynineteen_comment_form( 'asc' ); ?>
<h2 class="comments-title" aria-hidden="true"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></h2>
</div> </div>
<?php <?php
endif; endif;

View File

@ -182,6 +182,20 @@ if ( ! function_exists( 'twentynineteen_setup' ) ) :
endif; endif;
add_action( 'after_setup_theme', 'twentynineteen_setup' ); add_action( 'after_setup_theme', 'twentynineteen_setup' );
if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
/**
* Retrieves the list item separator based on the locale.
*
* Added for backward compatibility to support pre-6.0.0 WordPress versions.
*
* @since 6.0.0
*/
function wp_get_list_item_separator() {
/* translators: Used between list items, there is a space after the comma. */
return __( ', ', 'twentynineteen' );
}
endif;
/** /**
* Register widget area. * Register widget area.
* *
@ -221,7 +235,7 @@ function twentynineteen_excerpt_more( $link ) {
$link = sprintf( $link = sprintf(
'<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>', '<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
esc_url( get_permalink( get_the_ID() ) ), esc_url( get_permalink( get_the_ID() ) ),
/* translators: %s: Post title. */ /* translators: %s: Post title. Only visible to screen readers. */
sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ), get_the_title( get_the_ID() ) ) sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ), get_the_title( get_the_ID() ) )
); );
return ' &hellip; ' . $link; return ' &hellip; ' . $link;

View File

@ -35,7 +35,7 @@ add_filter( 'body_class', 'twentynineteen_body_classes' );
/** /**
* Adds custom class to the array of posts classes. * Adds custom class to the array of posts classes.
*/ */
function twentynineteen_post_classes( $classes, $class, $post_id ) { function twentynineteen_post_classes( $classes, $css_class, $post_id ) {
$classes[] = 'entry'; $classes[] = 'entry';
return $classes; return $classes;

View File

@ -82,8 +82,7 @@ if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
// Posted on. // Posted on.
twentynineteen_posted_on(); twentynineteen_posted_on();
/* translators: Used between list items, there is a space after the comma. */ $categories_list = get_the_category_list( wp_get_list_item_separator() );
$categories_list = get_the_category_list( __( ', ', 'twentynineteen' ) );
if ( $categories_list ) { if ( $categories_list ) {
printf( printf(
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */ /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */
@ -94,8 +93,7 @@ if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
); // WPCS: XSS OK. ); // WPCS: XSS OK.
} }
/* translators: Used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
$tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) );
if ( $tags_list && ! is_wp_error( $tags_list ) ) { if ( $tags_list && ! is_wp_error( $tags_list ) ) {
printf( printf(
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */ /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */

View File

@ -1,6 +1,6 @@
{ {
"name": "twentynineteen", "name": "twentynineteen",
"version": "2.2.0", "version": "2.3.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@ -69,9 +69,9 @@
"dev": true "dev": true
}, },
"@wordpress/browserslist-config": { "@wordpress/browserslist-config": {
"version": "4.0.1", "version": "4.1.2",
"resolved": "https://registry.npmjs.org/@wordpress/browserslist-config/-/browserslist-config-4.0.1.tgz", "resolved": "https://registry.npmjs.org/@wordpress/browserslist-config/-/browserslist-config-4.1.2.tgz",
"integrity": "sha512-mmLxc21NWxZSSPvD592tmzpBlme+nB0fbG1xO+EldS4vQkeWIQUZlNbrMijZM/hpFaBqDEJCAZFUPUpw1XwBWg==", "integrity": "sha512-UH0Ifmm4tEjVPOtiqH6yxDvk2EKtqSAhnyhyfSIb0wUnEoGsWTjREZjzuhgjt/I2nTqfg+0gUSzL5D0yQH6wDQ==",
"dev": true "dev": true
}, },
"abbrev": { "abbrev": {
@ -1282,9 +1282,9 @@
"dev": true "dev": true
}, },
"json-schema": { "json-schema": {
"version": "0.2.3", "version": "0.4.0",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==",
"dev": true "dev": true
}, },
"json-schema-traverse": { "json-schema-traverse": {
@ -1316,14 +1316,14 @@
"dev": true "dev": true
}, },
"jsprim": { "jsprim": {
"version": "1.4.1", "version": "1.4.2",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz",
"integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==",
"dev": true, "dev": true,
"requires": { "requires": {
"assert-plus": "1.0.0", "assert-plus": "1.0.0",
"extsprintf": "1.3.0", "extsprintf": "1.3.0",
"json-schema": "0.2.3", "json-schema": "0.4.0",
"verror": "1.10.0" "verror": "1.10.0"
} }
}, },
@ -1553,8 +1553,7 @@
}, },
"nanoid": { "nanoid": {
"version": "3.1.30", "version": "3.1.30",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.30.tgz", "resolved": "",
"integrity": "sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==",
"dev": true "dev": true
}, },
"nice-try": { "nice-try": {
@ -1998,8 +1997,7 @@
"dependencies": { "dependencies": {
"ansi-regex": { "ansi-regex": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", "resolved": "",
"integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
"dev": true "dev": true
}, },
"ansi-styles": { "ansi-styles": {

View File

@ -1,13 +1,13 @@
{ {
"name": "twentynineteen", "name": "twentynineteen",
"version": "2.2.0", "version": "2.3.0",
"description": "Default WP Theme", "description": "Default WP Theme",
"bugs": { "bugs": {
"url": "https://core.trac.wordpress.org/" "url": "https://core.trac.wordpress.org/"
}, },
"homepage": "https://wordpress.org/themes/twentynineteen/", "homepage": "https://wordpress.org/themes/twentynineteen/",
"devDependencies": { "devDependencies": {
"@wordpress/browserslist-config": "^4.0.1", "@wordpress/browserslist-config": "^4.1.2",
"autoprefixer": "^9.8.8", "autoprefixer": "^9.8.8",
"chokidar-cli": "^3.0.0", "chokidar-cli": "^3.0.0",
"node-sass": "^6.0.1", "node-sass": "^6.0.1",

View File

@ -2,8 +2,8 @@
Contributors: wordpressdotorg Contributors: wordpressdotorg
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
Requires at least: 4.9.6 Requires at least: 4.9.6
Tested up to: 5.9 Tested up to: 6.0
Stable tag: 2.2 Stable tag: 2.3
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -39,6 +39,11 @@ GNU General Public License for more details.
== Changelog == == Changelog ==
= 2.3 =
* Released: May 24, 2022
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.3
= 2.2 = = 2.2 =
* Released: January 25, 2022 * Released: January 25, 2022

View File

@ -546,10 +546,13 @@
} }
// If an image does not have a left/center/right alignment, // If an image does not have a left/center/right alignment,
// it's a direct child of .wp-block-img. If it has no other // it's a direct child of .wp-block-image. If it has no other
// alignment added, we want to make sure the image does not // alignment added, we want to make sure the image and its
// extend beyond the width of the text column. // caption do not extend beyond the width of the text column.
&:not(.alignwide):not(.alignfull) > img { &:not(.alignwide):not(.alignfull) > img,
&:not(.alignwide):not(.alignfull) > a > img,
&:not(.alignwide):not(.alignfull) > img + figcaption,
&:not(.alignwide):not(.alignfull) > a + figcaption {
@include postContentMaxWidth(); @include postContentMaxWidth();
} }
@ -803,6 +806,8 @@
} }
// Ensure images do not expand beyond the column. // Ensure images do not expand beyond the column.
.wp-block-image:not(.alignwide):not(.alignfull) > img,
.wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.wp-block-image > img:not(.alignwide):not(.alignfull), .wp-block-image > img:not(.alignwide):not(.alignfull),
.wp-block-image > figure { .wp-block-image > figure {

View File

@ -114,6 +114,11 @@
} }
} }
.comment-form-wrapper,
.comment-form-wrapper .comments-title {
display: block;
}
.comment-list { .comment-list {
list-style: none; list-style: none;
padding: 0; padding: 0;

View File

@ -605,6 +605,7 @@ body .wp-block.aligncenter {
} }
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
body.block-editor-writing-flow,
body .block-editor-writing-flow { body .block-editor-writing-flow {
max-width: 80%; max-width: 80%;
margin: 0 10%; margin: 0 10%;

View File

@ -36,6 +36,7 @@ body {
@include media(tablet) { @include media(tablet) {
&.block-editor-writing-flow,
.block-editor-writing-flow { .block-editor-writing-flow {
max-width: 80%; max-width: 80%;
margin: 0 10%; margin: 0 10%;

View File

@ -5,10 +5,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes. Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 5.9 Tested up to: 6.0
Requires at least: 4.9.6 Requires at least: 4.9.6
Requires PHP: 5.2.4 Requires PHP: 5.2.4
Version: 2.2 Version: 2.3
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen Text Domain: twentynineteen
@ -4693,6 +4693,11 @@ body.page .main-navigation {
display: block; display: block;
} }
.comment-form-wrapper,
.comment-form-wrapper .comments-title {
display: block;
}
.comment-list { .comment-list {
list-style: none; list-style: none;
padding: 0; padding: 0;
@ -5847,13 +5852,19 @@ body.page .main-navigation {
} }
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img { .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img + figcaption,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a + figcaption {
max-width: calc(8 * (100vw / 12) - 28px); max-width: calc(8 * (100vw / 12) - 28px);
} }
} }
@media only screen and (min-width: 1168px) { @media only screen and (min-width: 1168px) {
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img { .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img + figcaption,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a + figcaption {
max-width: calc(6 * (100vw / 12) - 28px); max-width: calc(6 * (100vw / 12) - 28px);
} }
} }
@ -6181,6 +6192,8 @@ body.page .main-navigation {
} }
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > img,
.entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull),
.entry .entry-content .wp-block-columns .wp-block-image > figure { .entry .entry-content .wp-block-columns .wp-block-image > figure {
max-width: 100%; max-width: 100%;
@ -6188,6 +6201,8 @@ body.page .main-navigation {
} }
@media only screen and (min-width: 1168px) { @media only screen and (min-width: 1168px) {
.entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > img,
.entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull),
.entry .entry-content .wp-block-columns .wp-block-image > figure { .entry .entry-content .wp-block-columns .wp-block-image > figure {
max-width: 100%; max-width: 100%;

View File

@ -5,10 +5,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes. Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 5.9 Tested up to: 6.0
Requires at least: 4.9.6 Requires at least: 4.9.6
Requires PHP: 5.2.4 Requires PHP: 5.2.4
Version: 2.2 Version: 2.3
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen Text Domain: twentynineteen
@ -4699,6 +4699,11 @@ body.page .main-navigation {
display: block; display: block;
} }
.comment-form-wrapper,
.comment-form-wrapper .comments-title {
display: block;
}
.comment-list { .comment-list {
list-style: none; list-style: none;
padding: 0; padding: 0;
@ -5859,13 +5864,19 @@ body.page .main-navigation {
} }
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img { .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img + figcaption,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a + figcaption {
max-width: calc(8 * (100vw / 12) - 28px); max-width: calc(8 * (100vw / 12) - 28px);
} }
} }
@media only screen and (min-width: 1168px) { @media only screen and (min-width: 1168px) {
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img { .entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > img + figcaption,
.entry .entry-content .wp-block-image:not(.alignwide):not(.alignfull) > a + figcaption {
max-width: calc(6 * (100vw / 12) - 28px); max-width: calc(6 * (100vw / 12) - 28px);
} }
} }
@ -6193,6 +6204,8 @@ body.page .main-navigation {
} }
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
.entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > img,
.entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull),
.entry .entry-content .wp-block-columns .wp-block-image > figure { .entry .entry-content .wp-block-columns .wp-block-image > figure {
max-width: 100%; max-width: 100%;
@ -6200,6 +6213,8 @@ body.page .main-navigation {
} }
@media only screen and (min-width: 1168px) { @media only screen and (min-width: 1168px) {
.entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > img,
.entry .entry-content .wp-block-columns .wp-block-image:not(.alignwide):not(.alignfull) > a > img,
.entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull), .entry .entry-content .wp-block-columns .wp-block-image > img:not(.alignwide):not(.alignfull),
.entry .entry-content .wp-block-columns .wp-block-image > figure { .entry .entry-content .wp-block-columns .wp-block-image > figure {
max-width: 100%; max-width: 100%;

File diff suppressed because one or more lines are too long

View File

@ -4,10 +4,10 @@ Theme URI: https://wordpress.org/themes/twentynineteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes. Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether youre running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
Tested up to: 5.9 Tested up to: 6.0
Requires at least: 4.9.6 Requires at least: 4.9.6
Requires PHP: 5.2.4 Requires PHP: 5.2.4
Version: 2.2 Version: 2.3
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen Text Domain: twentynineteen