WordPress/wp-content/themes/twentytwenty
Peter Wilson 3c5699206b Bundled Themes: Avoid loading translations too early.
Load block patterns for bundled themes on the `init` hook to avoid triggering notices caused by loading the translations too early.

The change is applied to Twenty Ten, Twenty Twelve, Twenty Thirteen, Twenty Fourteen, Twenty Fifteen, Twenty Sixteen and Twenty Twenty.

Props domainsupport, swissspidy.
Fixes #62237.
See #44937.

Built from https://develop.svn.wordpress.org/trunk@59244


git-svn-id: http://core.svn.wordpress.org/trunk@58636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-17 00:37:17 +00:00
..
assets Twenty Twenty: Correct font-size for Code block and other preformatted elements. 2024-08-31 10:54:12 +00:00
classes Docs: Correct typos in JavaScript wordmark. 2024-06-12 23:12:13 +00:00
inc Twenty Twenty: Fix style issues within iframed editor. 2023-10-04 20:56:24 +00:00
template-parts Twenty Twenty: Revert usage of `str_contains()` in theme files. 2024-01-12 19:14:08 +00:00
templates Bundled Themes: Remove closing PHP tag at the end of files. 2022-08-11 14:46:09 +00:00
.npmrc Bundled Themes: Set `legacy-peer-deps` to `true`. 2023-09-07 00:09:18 +00:00
.stylelintrc.json Ensure `svn:eol-style` is consistently set for all files (part 2). 2019-10-25 19:29:04 +00:00
404.php Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role. 2021-11-04 18:18:01 +00:00
comments.php Twenty Twenty: Revert usage of `str_contains()` in theme files. 2024-01-12 19:14:08 +00:00
footer.php Twenty Twenty: Replace `wp_date()` with `date_i18n()`. 2024-01-17 09:01:16 +00:00
functions.php Bundled Themes: Avoid loading translations too early. 2024-10-17 00:37:17 +00:00
header.php Bundled Themes: Add missing `initial-scale` value in viewport meta tag. 2024-09-16 22:18:35 +00:00
index.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:28:26 +00:00
package-lock.json Bundled Themes: Bump default theme versions for release with 6.6. 2024-07-15 13:59:16 +00:00
package.json Bundled Themes: Bump default theme versions for release with 6.6. 2024-07-15 13:59:16 +00:00
print.css Bundled Themes: Removes measurement in px for zero and related fixes. 2024-05-20 15:14:16 +00:00
readme.txt Bundled Themes: Add contributors to copyright notices. 2024-08-30 23:09:12 +00:00
screenshot.png Bundled Themes: Update Twenty Twenty. 2019-10-29 14:55:05 +00:00
searchform.php I18N: Mark screen reader strings as such with translator comments. 2023-02-07 17:10:21 +00:00
singular.php Bundled Themes: Remove closing PHP tag at the end of files. 2022-08-11 14:46:09 +00:00
style-rtl.css Twenty Twenty: Correct font-size for Code block and other preformatted elements. 2024-08-31 10:54:12 +00:00
style.css Twenty Twenty: Correct font-size for Code block and other preformatted elements. 2024-08-31 10:54:12 +00:00

readme.txt

=== Twenty Twenty ===
Contributors: the WordPress team
Requires at least: 4.7
Tested up to: 6.6
Requires PHP: 5.2.4
Stable tag: 2.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Default theme for 2020.

== Description ==

Our default theme for 2020 is designed to take full advantage of the
flexibility of the block editor. Organizations and businesses have the
ability to create dynamic landing pages with endless layouts using the
group and column blocks. The centered content column and fine-tuned
typography also makes it perfect for traditional blogs. Complete editor
styles give you a good idea of what your content will look like, even
before you publish. You can give your site a personal touch by changing
the background colors and the accent color in the Customizer. The colors of
all elements on your site are automatically calculated based on the colors
you pick, ensuring a high, accessible color contrast for your visitors.

== Changelog ==

= 2.7 =
* Released: July 16, 2024

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.7

= 2.6 =
* Released: April 2, 2024

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.6

= 2.5 =
* Released: January 16, 2024

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.5

= 2.4 =
* Released: November 7, 2023

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.4

= 2.3 =
* Released: August 8, 2023

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.3

= 2.2 =
* Released: March 28, 2023

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.2

= 2.1 =
* Released: November 1, 2022

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.1

= 2.0 =
* Released: May 24, 2022

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_2.0

= 1.9 =
* Released: January 25, 2022

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.9

= 1.8 =
* Released: July 20, 2021

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.8

= 1.7 =
* Released: March 9, 2021

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.7

= 1.6 =
* Released: December 8, 2020

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.6

= 1.5 =
* Released: August 11, 2020

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.5

= 1.4 =
* Released: June 10, 2020

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.4

= 1.3 =
* Released: May 14, 2020

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.3

= 1.2 =
* Released: March 31, 2020

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.2

= 1.1 =
* Released: December 12, 2019

https://wordpress.org/documentation/article/twenty-twenty-changelog/#Version_1.1

= 1.0 =
* Released: November 12, 2019

Initial release

== Copyright ==

Twenty Twenty WordPress Theme, Copyright 2019-2024 WordPress.org and contributors.
Twenty Twenty is distributed under the terms of the GNU GPL.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Twenty Twenty is derived from the Chaplin Theme, Copyright 2019 Anders Norén
Chaplin Theme is distributed under the terms of the GNU GPL version 2.0

Twenty Twenty bundles the following third-party resources:

Illustrations by Tammie Lister
License: Creative Commons Zero (CC0), https://creativecommons.org/publicdomain/zero/1.0/

Inter Font
Copyright (c) 2016-2019 The Inter Project Authors (me@rsms.me)
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1
Source: https://rsms.me/inter/

Bespoke Icons Created For Twenty Twenty
License: Creative Commons Zero (CC0), https://creativecommons.org/publicdomain/zero/1.0/
List of bespoke icons:
- Search icon
- Menu icon

Feather Icons
Copyright (c) 2013-2017 Cole Bemis
License: MIT License, https://opensource.org/licenses/MIT
Source: https://feathericons.com
Used for post meta icons, and the link icon in the social menu.

TikTok Icon
License: GPLv2
Source: Émilie Lebrun - @Emlebrun
Used for TikTok social icon.

Social Icons
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Source: WordPress Social Link Block (See wp-includes\blocks\social-link.php)

Code from Twenty Nineteen
Copyright (c) 2018-2024 WordPress.org
License: GPLv2
Source: https://wordpress.org/themes/twentynineteen/
Included as part of the following classes and functions:
- TwentyTwenty_SVG_Icons
- twentytwenty_the_theme_svg()
- twentytwenty_get_theme_svg()
- twentytwenty_nav_menu_social_icons()

Code from Twenty Seventeen
Copyright (c) 2016-2024 WordPress.org
License: GPLv2
Source: https://wordpress.org/themes/twentyseventeen/
Included as part of the following classes and functions:
- twentytwenty_unique_id()

Underscores
https://underscores.me/, (C) 2012-2024 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)