updated theme `Twenty Nineteen` version 2.0

This commit is contained in:
KawaiiPunk 2021-03-22 16:13:27 +00:00 committed by Gitium
parent a27d917629
commit ca7eb56a01
58 changed files with 9715 additions and 9780 deletions

View File

@ -204,6 +204,30 @@ function twentynineteen_widgets_init() {
}
add_action( 'widgets_init', 'twentynineteen_widgets_init' );
/**
* Replaces "[...]" (appended to automatically generated excerpts) with ... and
* a 'Continue reading' link.
*
* @since Twenty Nineteen 2.0
*
* @param string $link Link to single post/page.
* @return string 'Continue reading' link prepended with an ellipsis.
*/
function twentynineteen_excerpt_more( $link ) {
if ( is_admin() ) {
return $link;
}
$link = sprintf(
'<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
esc_url( get_permalink( get_the_ID() ) ),
/* translators: %s: Post title. */
sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ), get_the_title( get_the_ID() ) )
);
return ' &hellip; ' . $link;
}
add_filter( 'excerpt_more', 'twentynineteen_excerpt_more' );
/**
* Set the content width in pixels, based on the theme's design and stylesheet.
*

File diff suppressed because it is too large Load Diff

View File

@ -1,20 +1,20 @@
{
"name": "twentynineteen",
"version": "1.9.0",
"version": "2.0.0",
"description": "Default WP Theme",
"bugs": {
"url": "https://github.com/WordPress/twentynineteen/issues"
},
"homepage": "https://github.com/WordPress/twentynineteen#readme",
"devDependencies": {
"@wordpress/browserslist-config": "^2.7.0",
"autoprefixer": "^9.8.5",
"@wordpress/browserslist-config": "^3.0.0",
"autoprefixer": "^9.8.6",
"chokidar-cli": "^2.1.0",
"node-sass": "^4.14.1",
"node-sass": "^5.0.0",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.0.0",
"postcss-focus-within": "^3.0.0",
"rtlcss": "^2.5.0"
"postcss-cli": "^7.1.2",
"postcss-focus-within": "^4.0.0",
"rtlcss": "^2.6.2"
},
"rtlcssConfig": {
"options": {

View File

@ -3,7 +3,7 @@ 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
Requires at least: 4.9.6
Tested up to: 5.6
Stable tag: 1.9
Stable tag: 2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -24,7 +24,7 @@ For more information about Twenty Nineteen please go to https://wordpress.org/su
== Copyright ==
Twenty Nineteen WordPress Theme, Copyright 2018-2020 WordPress.org
Twenty Nineteen WordPress Theme, Copyright 2018-2021 WordPress.org
Twenty Nineteen is distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify
@ -39,6 +39,11 @@ GNU General Public License for more details.
== Changelog ==
= 2.0 =
* Released: March 9, 2021
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.0
= 1.9 =
* Released: December 22, 2020
@ -91,7 +96,7 @@ Initial release
== Resources ==
* normalize.css, © 2012-2018 Nicolas Gallagher and Jonathan Neal, MIT
* Underscores, © 2012-2020 Automattic, Inc., GNU GPL v2 or later
* Underscores, © 2012-2021 Automattic, Inc., GNU GPL v2 or later
* Bundled block pattern images:
* Abstract Background by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-background-0SRRVNMKBX
* Abstract Waves by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-waves-0KREGLTZQ3

View File

@ -382,6 +382,10 @@
color: $color__text-light;
}
#wp-comment-cookies-consent {
margin: 0 10px 0 0;
}
.comment-form-author,
.comment-form-email {
@include media(tablet) {

View File

@ -7,11 +7,11 @@ 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.
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 1.9
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen
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
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
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
@ -4949,6 +4949,10 @@ body.page .main-navigation {
color: #767676;
}
.comment-form #wp-comment-cookies-consent {
margin: 0 0 0 10px;
}
@media only screen and (min-width: 768px) {
.comment-form .comment-form-author,
.comment-form .comment-form-email {

View File

@ -7,7 +7,7 @@ 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.
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 1.9
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen
@ -4955,6 +4955,10 @@ body.page .main-navigation {
color: #767676;
}
.comment-form #wp-comment-cookies-consent {
margin: 0 10px 0 0;
}
@media only screen and (min-width: 768px) {
.comment-form .comment-form-author,
.comment-form .comment-form-email {

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@ 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.
Requires at least: 4.9.6
Requires PHP: 5.2.4
Version: 1.9
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

View File

@ -22,8 +22,8 @@
printf(
'<p>' . wp_kses(
/* translators: 1: Link to WP admin new post page. */
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentynineteen' ),
/* translators: %s: Link to WP admin new post page. */
__( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentynineteen' ),
array(
'a' => array(
'href' => array(),