Compare commits

...

71 Commits
5.9.6 ... 5.8

Author SHA1 Message Date
Sergey Biryukov
50caeb6e61 Tag 5.8
Built from https://develop.svn.wordpress.org/tags/5.8@51465


git-svn-id: http://core.svn.wordpress.org/tags/5.8@51076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-20 16:20:10 +00:00
desrosj
add7651d0b WordPress 5.8.
Built from https://develop.svn.wordpress.org/branches/5.8@51464


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-20 16:07:00 +00:00
Peter Wilson
ce8a07686a Upgrade/Install: Add additional files to $_old_files for 5.8.
Follow up to [51134].

Props desrosj.
Merges [51459] to the 5.8 branch.
Fixes #53367.


Built from https://develop.svn.wordpress.org/branches/5.8@51460


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 01:27:57 +00:00
Peter Wilson
6b59938770 Build/Test Tools: Update the caniuse browser data and regenerate CSS.
This includes three minor updates to generated CSS files:

- A single `-webkit-` prefix is removed for `min-width`, which was required for Safari <= 10.1 (0.06% total global usage). WordPress only supports the last two versions.
- 2 instances where the `-o-` prefix are added for `tab-size`. This appears to be for Opera Mobile, which has creeped back over the 1% global usage.

Props peterwilsoncc, jorbin, desrosj.
Merges [51456] to the 5.8 branch.
Fixes #53686.

Built from https://develop.svn.wordpress.org/branches/5.8@51458


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 00:56:57 +00:00
desrosj
ee3c9c41bc Bundled Themes: Bump bundled theme versions for WordPress 5.8.
This bumps the version for all bundle themes in preparation for release with WordPress 5.8. The new versions are as follows:

- Twenty Twenty-One: 1.4
- Twenty Twenty: 1.8
- Twenty Nineteen: 2.1
- Twenty Seventeen: 2.8
- Twenty Sixteen: 2.5
- Twenty Fifteen: 3.0
- Twenty Fourteen: 3.2
- Twenty Thirteen: 3.4
- Twenty Twelve: 3.4
- Twenty Eleven: 3.8
- Twenty Ten: 3.4

Props mukesh27, kapilpaul, peterwilsoncc.
Merges [51455] to the 5.8 branch.
Fixes #53277.
Built from https://develop.svn.wordpress.org/branches/5.8@51457


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 00:45:00 +00:00
desrosj
cfde1a37e5 Post WordPress 5.8 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51447


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 22:03:58 +00:00
desrosj
37be93859d WordPress 5.8 RC4.
Built from https://develop.svn.wordpress.org/branches/5.8@51446


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:35:57 +00:00
desrosj
a01a99951e Block Editor: Backport fixes targeted for WordPress 5.8 RC4.
This includes:

- Suggestion List: Check if a node exists to scroll into view.
- Autocomplete: reset state for empty text.
- Adds auxiliary class names for editor styles in the widgets editor.
- Extract snackbars into a separate component.
- Rich text: run input rules after composition end.
- iframe: load inline styles.
- Multi select: select all: restore ref callback.
- Writing flow: allow select all from empty selection.
- Post Excerpt: Fix excerpt_more filter conflict and remove wordCount attribute.
- Add the percent unit to the default units in Core. 

Props desrosj, youknowriad.
Merges [51443] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51445


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:14:20 +00:00
desrosj
3ffa646c8c Media: Document edge cases with the new image_editor_output_format filter.
More testing has revealed that the `image_editor_output_format` filter has some interesting edge cases that developers should be aware of when electing to use this filter (see #53667 and #53668).

Because this is a new filter that was intended to be used for experimenting with different ways to handle generating image sizes and has not yet been adopted in the wild, expanding the inline documentation is an acceptable temporary solution while these edge cases are explored further and addressed.

Props mikeschroder, antpb, desrosj, adamsilverstein, ianmjones.
Merges [51442] to the 5.8 branch.
See #53667, #53668, #35725.
Built from https://develop.svn.wordpress.org/branches/5.8@51444


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:10:59 +00:00
desrosj
41fca9e8ba Media: Fix JS error in Media Library when infinite scroll enabled.
Wrap call to this.updateLoadMoreView() is wrapped in a check that infinite scroll is disabled to prevent JS errors.

Props wildworks, joedolson.
Merges [51440] to the 5.8 branch.
Fixes #53672.
Built from https://develop.svn.wordpress.org/branches/5.8@51441


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 17:29:57 +00:00
desrosj
94a93212ba Widgets: Prevent widgets unintentionally being moved to the inactive sidebar.
This fixes a bug where widgets are unintentionally moved to the `wp_inactive_widgets` sidebar when batch updates occur through the REST API.

When batch requests are processed, only `$_wp_sidebars_widgets` is updated by previous calls to `WP_REST_Widgets_Controller::create_item()`. `$sidebars_widgets` is not aware of the new widget’s intended location, and `retrieve_widgets()` mistakenly flags the widget as inactive.

Calling `wp_get_sidebars_widgets()` before `retrieve_widgets()` ensures both global variables match and is intended as a temporary fix until the root cause of the problem can be fixed.

Props zieladam, htmgarcia, timothyblynjacobs.
Merges [51432] to the 5.8 branch.
Fixes #53657.
Built from https://develop.svn.wordpress.org/branches/5.8@51439


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 15:42:58 +00:00
desrosj
d06c747962 Media: When resizing WebP images set the compression to "lossy" by default. Fixes a bug where the compression was set to "lossless" when the uploaded WebP images have extended file format (VP8X).
Props adamsilverstein, mikeschroder, mmxxi, linux4me2, azaozz.
Merges [51435] to the 5.8 branch.
Fixes #53653.
Built from https://develop.svn.wordpress.org/branches/5.8@51437


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 13:01:58 +00:00
desrosj
cb85548d7c Privacy: Ensure the copy button actually copies the suggested privacy policy text.
Follow up to [50609].

Props walbo, SergeyBiryukov.
Merges [51431] to the 5.8 branch.
Fixes #53652. See #52891.
Built from https://develop.svn.wordpress.org/branches/5.8@51433


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 17:14:58 +00:00
desrosj
7cb25d196b Post WordPress 5.8 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51429


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 01:02:56 +00:00
desrosj
73dfd406da WordPress 5.8 RC3.
Built from https://develop.svn.wordpress.org/branches/5.8@51428


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 00:40:58 +00:00
desrosj
82b9b1a3a5 Editor: Second round of package updates ahead of RC3.
Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj.
Merges [51426] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51427


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 00:03:19 +00:00
desrosj
eba698dba1 Widgets: Validate HTML before saving block widgets.
Props talldanwp, noisysocks, kevin940726, peterwilsoncc.
Merges [51414] and [51423] to the 5.8 branch.
Built from https://develop.svn.wordpress.org/branches/5.8@51424


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 18:04:58 +00:00
desrosj
5658a2d03c Block Editor: Include the fixes targeted for WordPress 5.8 RC3.
This includes the following fixes:
 - Safari: see if compositing layer size is more reasonable when position fixed divs are not inserted into content.
 - Site Logo Block: update Site Logo block UI and option syncing.
 - Fix moving inner blocks in the Widgets Customizer.
 - Allow themes to provide empty values for color.duotone and spacing.units
 - Update getTermsInfo() to workaround parsing issue for translatable strings.
 - Specify what settings can be part of settings.layout.
 - Update conditions to hide duotone panel.
 - Prevent entering invalid values in the Query Loop block config.
 - Prevent color panel from showing as empty.
 - Avoid calling gutenberg_ functions within code shipped through WordPress Core.

Props desrosj, youknowriad.
Merges [51421] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51422


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 17:15:20 +00:00
ryelle
cfba8e5850 Help/About: Update the About section for 5.8.
Update the image links to use the CDN. Use regular text color for headings. Fix two string issues. Remove unnecessary wp-components script & style.
Use a larger image for theme.json on retina screens, and update the spacing of sections on the page.

Props nao, audrasjb, karmatosed, desrosj, javiarce, milana_cap.
Merges [51413] and [51418] to the 5.8 branch.
See #52775.


Built from https://develop.svn.wordpress.org/branches/5.8@51420


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 16:18:59 +00:00
desrosj
52977d997c Widgets: Replace wp.editor references in the legacy text widget.
This changes the references to `wp.editor` in the text widget’s JavaScript to `wp.oldEditor`, which is the new location for the old `editor` script that was previously available at `window.wp.editor`. 

Follow up to [51387-51388,51390].

Props spacedmonkey, zieladam, SergeyBiryukov.
Merges [51409] to the 5.8 branch.
Fixes #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51416


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 13:46:04 +00:00
desrosj
7523e1376b Widgets: Use wp_sidebar_description() to retrieve a sidebar’s description.
This switches `WP_REST_Sidebars_Controller` to use `wp_sidebar_description()` for retrieving the description of a given sidebar instead of referencing the value in the `$wp_registered_sidebars` global variable directly.

`wp_sidebar_description()` uses `wp_kses()` to only allow the default list of `$allowed_tags` to be present in a sidebar’s description.

Props timothyblynjacobs, desrosj, SergeyBiryukov.
Merges [51408] to the 5.8 branch.
Fixes #53646.
Built from https://develop.svn.wordpress.org/branches/5.8@51412


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 00:10:58 +00:00
desrosj
acd6e52e4f Docs: Various documentation fixes following [51129].
- Typo corrections in filter descriptions.
- DocBlocks are now now wrapped to the next line after 80 characters, and not extending beyond 120 total characters wide.
- Remove unnecessary repeated references to the suggested replacement hooks.
- Adjustments to the indentation for consistency with other emails in Core, allowing the `phpcs:ignore` comment to be removed. 

Props SergeyBiryukov.
Merges [51410] to the 5.8 branch.
Fixes #44314.
Built from https://develop.svn.wordpress.org/branches/5.8@51411


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 00:07:59 +00:00
desrosj
7e8542281a TinyMCE: ensure initialization runs in all cases on 'interactive' and 'complete' readyState.
Fixes a rare bug when the init code is inserted in the DOM after the page has finished loading.

Props Collizo4sky, azaozz.
Merges [51402] to the 5.8 branch.
Fixes #53632.
Built from https://develop.svn.wordpress.org/branches/5.8@51407


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-12 13:29:00 +00:00
desrosj
ed40b04676 Bundled Themes: Correct comment formatting in inc/block-patterns.php.
Follow-up to [51045], [51103].

Props kapilpaul, SergeyBiryukov.
See #53359, #52627.
Built from https://develop.svn.wordpress.org/branches/5.8@51406


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-12 13:27:01 +00:00
desrosj
7a157307d8 Docs: Some documentation improvements for wp_check_widget_editor_deps():
- Add missing short description for the function.
- Correct function names in `_doing_it_wrong()` calls.
- Document the usage of `$wp_scripts` and `$wp_styles` globals.
- Update syntax for multi-line comment per the documentation standards. 

Follow-up to [51387], [51388].

Props SergeyBiryukov.
Merges [51390] to the 5.8 branch.
See #53437, #53569.
Built from https://develop.svn.wordpress.org/branches/5.8@51394


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:59:58 +00:00
desrosj
69868c9648 Widgets: Warn when wp-editor script or wp-edit-post style is enqueued in widgets editor
It is common that plugins erroneously have `wp-editor` or `wp-edit-post` as a
dependency in a script that is loaded in the new widgets editor. This is a smell
since both `@wordpress/editor` and `@wordpress/edit-post` assume the existence
of a global "post" object which the widgets editor does not have.

[51387] fixes the user-facing errors typically caused by this mistake, but we
can go a step further and warn developers about this by calling
`_doing_it_wrong()` when we detect that the `wp-editor` script or `wp-edit-post`
style is enqueued alongside `wp-edit-widgets` or `wp-customize-widgets`.

Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu, dlh, noisysocks.
Merges [51388] to the 5.8 branch.
Fixes #53569. See #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51393


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:57:59 +00:00
desrosj
5962e1f19f Editor: Merge conflicting wp.editor objects into single, non-conflicting object
The `wp-editor` script (`@wordpress/editor` npm package) is exposed as
`window.wp.editor` in WP Admin. This causes problems, though, as many older
scripts expect to see the older `editor` script available at `window.wp.editor`.

The solution is to export all the members of the older `window.wp.editor` module
in the newer module to maintain backwards compatibility.

Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu, noisysocks.
Merges [51387] to the 5.8 branch.
See #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51392


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:54:57 +00:00
desrosj
dda2b793fe Block Editor: Fix for theme.json: color.duotone and spacing.units should allow empty sets.
This commit fixes an issue with the color.duotone & spacing.units in which empty values didn't override previous origins, resulting in that a theme couldn't provide an empty set for this via its theme.json.

Props nosolosw, youknowriad, aristath, jorgefilipecosta.
Merges [51383] to the 5.8 branch.
Fixes #53175.
Built from https://develop.svn.wordpress.org/branches/5.8@51386


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 01:06:58 +00:00
desrosj
54a19b3fb9 REST API: Ensure a sidebar's widgets property is a list.
When a widget is removed from a sidebar, if it was removed from the middle of the list, the widgets property would become an object with numeric keys.

The sidebars controller now forces the widgets property to be a list.

Props walbo, timothyblynjacobs.
Merges [51377] to the 5.8 branch.
Fixes #53612.
Built from https://develop.svn.wordpress.org/branches/5.8@51385


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 01:00:56 +00:00
desrosj
bee64c88cb Script Loader: Update jQuery version to 3.6.0 following the update in [50520].
Props audrasjb, ocean90.
Merges [51380] to the 5.8 branch.
Fixes #52707.
Built from https://develop.svn.wordpress.org/branches/5.8@51384


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 00:59:57 +00:00
Aaron Jorbin
2360563683 Posts: Prevent an empty excerpt when groups and nested column blocks are present.
This improves the logic within excerpt_remove_blocks() to better handle innerBlocks. This prevents an empty excerpt from being returned when core/columns, core/column, and core/group blocks are present.

This issue has been surfaced in the Query Loop block, where excerpts can be set to display.

This introduces the excerpt_allowed_wrapper_blocks filter for controlling which blocks should be considered wrapper blocks.

Wrapper blocks and their nested contents are not stripped by excerpt_remove_blocks(), allowing their contents to appear in generated excerpts.

Backports [51348], [51375], [51378], and [51379] to the 5.8 branch.

Fixes #53604.
Props aristath, jorbin, SergeyBiryukov, desrosj.
Unprops jorbin.



Built from https://develop.svn.wordpress.org/branches/5.8@51382


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-08 17:28:58 +00:00
desrosj
0ed55411af Tests: Expand tests for get_block_editor_settings().
This adds unit tests to ensure `get_block_editor_settings()` properly maps some previously experimental features to their correct locations in the array of contextualized block editor settings returned by the function.

Follow up to [51149], [51213].

Props felipeelia, SergeyBiryukov.
Merges [51369] to the 5.8 branch.
Fixes #53458.
Built from https://develop.svn.wordpress.org/branches/5.8@51376


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 19:29:57 +00:00
desrosj
904260642f Themes: Remove mention of “FSE” in Core.
“FSE” themes are block themes.

Follow up to [51373].

Unprops desrosj.
Merges [51370-51371] to the 5.8 branch.
Fixes #53497.
Built from https://develop.svn.wordpress.org/branches/5.8@51374


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 19:00:57 +00:00
desrosj
ac2f54268c Themes: Remove mention of “FSE” in Core.
“FSE” themes are block themes.

Props SergeyBiryukov.
Merges [51370-51371] to the 5.8 branch.
Fixes #53497.
Built from https://develop.svn.wordpress.org/branches/5.8@51373


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 18:59:01 +00:00
Dion Hulse
5a656393e5 Bump Akismet external to 4.1.10.
See #53555.


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 01:06:24 +00:00
desrosj
9ed00cd98e Post WordPress 5.8 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51366


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 01:05:58 +00:00
desrosj
dfd1094368 WordPress 5.8 RC2.
Built from https://develop.svn.wordpress.org/branches/5.8@51365


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:37:57 +00:00
desrosj
d6d75499ce Themes: Remove inline comment that is not relevant in WordPress Core.
This removes an inline comment block that was added when importing the `WP_Theme_JSON` class in [50959]. The comment is relevant to the code only when viewed within the context of the Gutenberg plugin.

Props nosolosw, jorbin, SergeyBiryukov.
Merges [51352] to the 5.8 branch.
Fixes #53576.
Built from https://develop.svn.wordpress.org/branches/5.8@51364


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:07:57 +00:00
Peter Wilson
051e04b3cc Block Editor: Update packages with latest fixes for 5.8 RC2
Includes the following fixes:

- Query Block: Type validation of `WP_Query` parameters.

Props ntsekouras, stevehenty, peterwilsoncc, desrosj.
Merges [51362] to the 5.8 branch.
Fixes #53397.


Built from https://develop.svn.wordpress.org/branches/5.8@51363


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:06:17 +00:00
desrosj
dae3e79ad8 Tests: Update the wp-api-generated.js fixture.
Follow up to [51241].

Props johnbillion, peterwilsoncc.
Merges [51351] to the 5.8 branch.
Fixes #53606.
Built from https://develop.svn.wordpress.org/branches/5.8@51361


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 23:47:58 +00:00
desrosj
2ca8b6ecd7 Help/About: Update the About section for 5.8.
Add the images for About, Freedoms, and Privacy. Update the styles on all About section pages to match the About page style. Fix string issues, missing link wrapper, duplicate copy.

Also updates placeholder links on the page.

Props chanthaboune, kellychoffman, javiarce, ryokuhi, alanjacobmathew, desrosj, SergeyBiryukov, audrasjb.
Merges [51356] and [51359] to the 5.8 branch.
See #52775.
Built from https://develop.svn.wordpress.org/branches/5.8@51360


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 23:42:59 +00:00
John Blackbourn
24500cc798 Build/Test Tools: Add assertions to ensure version-controlled files are not modified during CI, and fix the grunt clean command.
Some tests and some commands that run during the build steps modify files that are under version control. This adds assertions to ensure that these files don't remain in a modified state after the test runs on CI.

This also fixes the `grunt clean` command which erroneously deletes `script-loader-packages.php`. This file is re-populated during the build, but deleting it during the clean is undesirable.

Merges [51355] to the 5.8 branch.

Fixes #53606

Built from https://develop.svn.wordpress.org/branches/5.8@51357


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 19:13:57 +00:00
desrosj
bf186a5712 Docs: Correct the @since tag for the user_erasure_fulfillment_email_headers filter.
Props johnbillion.
See #44314, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51354


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 18:24:57 +00:00
desrosj
636f00b5f2 REST API: Add the $request parameter to methods checking permissions.
This adds the `$request` parameter to the permissions_check() methods within `WP_REST_Widgets_Controller` and adds $request as an allowed parameter to the `permissions_check()` method within `WP_REST_Templates_Controller`.

Even when this parameter is not used by default, it should be implemented to support the class being extended and the method overridden.

Props johnbillion, timothyblynjacobs.
Merges [51349] to the 5.8 branch.
Fixes #53593.
Built from https://develop.svn.wordpress.org/branches/5.8@51350


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:56:59 +00:00
desrosj
c58dfa9dfe Editor: Ensure global styles are loaded in the footer when loading core assets individually.
This fixes the logic in `wp_enqueue_global_styles()` to ensure that global styles are loaded in the footer when a site opts-in to loading Core block assets individually.

This fixes a bug where styles defined in `themes.json` are not respected.

Props walbo, nosolosw, mcsf, aristath, desrosj, jorbin.
Merges [51309] to the 5.8 branch.
Fixes #53494.
Built from https://develop.svn.wordpress.org/branches/5.8@51347


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:17:59 +00:00
desrosj
fcfaf186fa Block Editor: Update packages with latest fixes for 5.8 RC2
Includes the following fixes:

- [Block Library]: Less warnings when blocks try to render themselves.
- Reset z-index on focused widget form
- Refactor appender margin.
- Fix slash inserter for widgets screen.
- Widget screens: set html block as freeform content handler.
- Widget Block: widget_id is undefined when a widget is placed.
- Add <CopyHandler> to WidgetAreasBlockEditorProvider
- Add width: 100% to components-base-control inside wp-block-legacy-widget
- [Widgets editor] Replace the "technical" error notice a more user-friendly one
- Fix legacy widget height overflow
- Fix "Select all" behavior in the editor
- Increase specificity of the NoPreview CSS rules to avoid conflicts with theme styles
- Fix move to widget area checkmark
- Replace legacy widget icon with its new version
- [Block Library - Query Loop]: Set default block variations not to inherit from global query 

Merges [51344] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51346


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:16:19 +00:00
Aaron Jorbin
21ec6417a4 Bundled Themes: Correct customzier typo.
Merges [51343] to 5.8 branch.

This was found in Twenty Twenty-One and Twenty Nineteen.

Props audrasjb, spytzo, sabernhardt, desrosj.
Fixes #53598.

Built from https://develop.svn.wordpress.org/branches/5.8@51345


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 14:47:58 +00:00
desrosj
65474b08f6 Docs: Correct @see references for hooks in the get_option() description.
Follow-up to [51050].

Props SergeyBiryukov.
Merges [51324] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51340


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:44:58 +00:00
desrosj
fa62b16d6d Bundled Themes: Correct @since tags for block patterns.
Follow-up to [49347], [49348], [49583], [49584], [49763], [51103].

Props SergeyBiryukov.
Merges [51324] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51339


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:41:02 +00:00
desrosj
474bb753b3 Twenty Twenty: Add missing documentation for some filters.
Add missing `@since` tags for some functions.

Correct alignment of some `@param` tags.

Follow-up to [46271], [46278], [51304].

Props SergeyBiryukov.
Merges [51322] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51338


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:35:57 +00:00
desrosj
6641ddca11 Twenty Twenty-One: Ensure the dropdown arrow displays for <select> elements when focused.
Props isabel_brison, zieladam, poena.
Merges [51296] to the 5.8 branch.
Fixes #53560.
Built from https://develop.svn.wordpress.org/branches/5.8@51336


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:29:57 +00:00
desrosj
0d0a8817d6 Update the IRC link from Freenode to Libera.chat.
Update follows the update to https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/.

Fixes #53590.
Props empatogen, audrasjb, jorbin.
Built from https://develop.svn.wordpress.org/branches/5.8@51334


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:23:58 +00:00
Aaron Jorbin
782af9f9d5 Remove unnecessary function_exists check in get_the_block_template_html
Merges [51321] to the 5.8 branch. Reviewed by SergeyBiryukov.

WordPress can be confident that WordPress functions exist.

I forgot this function existed.
And I thought that it would fatal, but it didn't
And it was so nice
So peaceful and quiet
I forgot this function existed
It isn't love, it isn't hate, it's just indifference

Introduced in [51003].

Props walbo.
Fixes #53578. See #53176.


Built from https://develop.svn.wordpress.org/branches/5.8@51325


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-03 15:15:56 +00:00
desrosj
47c74865db Twenty Twenty-One: Add missing documentation for some filters.
Add missing `@since` tags for some functions.

Follow-up to [49216], [49220], [49854], [51294].

Props SergeyBiryukov.
Merges [51304] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51320


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:08:57 +00:00
desrosj
b6c637f5d4 Twenty Twenty-One: Improve documentation per the documentation standards:
- Remove unnecessary `@access` tags that were previously removed from core.
- Remove an empty line between `@param` and `@return` tags.
- Correct alignment of `@param` tags. 

Follow-up to [41161], [41162], [41168], [49216], [49220].

Props SergeyBiryukov.
Merges [51294] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51319


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:06:57 +00:00
desrosj
23805b2511 Docs: Improve documentation for optional parameters in WP_Theme_JSON methods per the documentation standards.
Additionally:

- Remove an empty line between `@param` and `@return` tags.
- Correct alignment of `@param` tags. 

Follow-up to [50959], [50973], [51149], [51284], [51289].

Props SergeyBiryukov.
Merges [51292] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51318


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:05:57 +00:00
desrosj
aacf626adf Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards.
Follow-up to [48242], [49925], [51003], [51021].

Props SergeyBiryukov.
Merges [51289] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51317


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:04:56 +00:00
desrosj
f51b2d6845 Docs: List the expected type first instead of WP_Error in some REST API methods added in 5.8.
Follow-up to [46696], [49929], [50995], [51021].

Props SergeyBiryukov.
Merges [51286] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51316


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:03:57 +00:00
desrosj
872b22de7a Docs: Improve documentation for optional parameters in WP_Theme_JSON_Resolver methods per the documentation standards.
Move `add_action()` call to `wp-includes/default-filters.php`.

Follow-up to [50959], [51221].

Props SergeyBiryukov.
Merges [51284] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51315


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:02:58 +00:00
desrosj
9870ce6213 Docs: Add missing @since tags for some WP_Theme_JSON methods.
Docs: Update syntax for multi-line comments per the documentation standards.

Follow-up to [50959], [50967], [50973], [51051], [51089], [51149].

Props SergeyBiryukov.
Merges [51283] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51314


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:00:57 +00:00
desrosj
6dafb3154f Docs: Adjust wp_dashboard_browser_nag() DocBlock per the documentation standards.
Follow-up to [51117], [51119], [51120].

Props SergeyBiryukov.
Merges [51282] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51313


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:59:56 +00:00
desrosj
6673ddf2a1 Docs: Add @ticket references to some WP_Theme_JSON tests.
Follow-up to [50973], [51054].

Props SergeyBiryukov.
Merges [51280] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51312


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:58:58 +00:00
desrosj
20b93039f3 Docs: Add missing @since tags for some REST API methods added in 5.8.
Follow-up to [50995], [51021].

Props SergeyBiryukov.
Merges [51280] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51311


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:55:00 +00:00
desrosj
8d871746a4 Docs: Document the globals used in WP_REST_Widget_Types_Controller and WP_REST_Widgets_Controller.
Follow-up to [50995].

Props SergeyBiryukov.
Merges [51279] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51310


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:53:00 +00:00
desrosj
07533bff1e Editor: Ensure the Query block pattern category is translatable.
Because the `__()` translation function was used here, the Query block pattern category string is not translatable. `_x()` is the correct function here as that passes the second parameter as context and not text domain.

Follow up to [50948].

Props walbo.
Merges [51307] to the 5.8 branch.
Fixes #53577.
Built from https://develop.svn.wordpress.org/branches/5.8@51308


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:38:57 +00:00
desrosj
4522b57280 Coding Standards: Add missing visibility keywords to WP_Theme, WP_Theme_JSON, and WP_Theme_JSON_Resolver tests.
Follow-up to [50959], [50960], [50967].

Props SergeyBiryukov.
Merges [51287] to the 5.8 branch.
Fixes #52627.
Built from https://develop.svn.wordpress.org/branches/5.8@51305


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 12:25:58 +00:00
desrosj
fe3ecbcade Docs: Correct documentation for rest_{$post_type}_query and rest_{$taxonomy}_query` filters.
Synchronize documentation for related `rest_{$object_type}_query` filters for consistency.

Props dlh.
Merges [51293] to the 5.8 branch.
Fixes #53568.
Built from https://develop.svn.wordpress.org/branches/5.8@51295


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-01 18:51:02 +00:00
desrosj
0420eac464 Script Loader: Revert [51267].
This was missed in [51268] when reverting [51259-51260,51265].

Props pbiron.
Merges [51288] to the 5.8 branch.
See #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51291


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 18:48:58 +00:00
desrosj
337cfb97c1 REST API: Allow multiple widgets to be deleted in a single batch request.
This resets the `WP_Widget::$updated` flag when deleting a widget, to avoid blocking all future updates in a request.

Props noisysocks, andraganescu.
Merges [51277] to the 5.8 branch.
Fixes #53557.
Built from https://develop.svn.wordpress.org/branches/5.8@51290


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 18:47:01 +00:00
Peter Wilson
e59db27f8c Security: Add 5.8 to the list of versions receiving security updates.
Props desrosj.
Merges [51274] to the 5.8 branch.

Built from https://develop.svn.wordpress.org/branches/5.8@51275


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 04:14:49 +00:00
desrosj
7df5273e8b Branch 5.8
Built from https://develop.svn.wordpress.org/branches/5.8@51271


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 03:53:09 +00:00
217 changed files with 2064 additions and 1482 deletions

View File

@@ -76,7 +76,7 @@
<dt><a href="https://wordpress.org/support/forums/">WordPress Support Forums</a></dt>
<dd>If you&#8217;ve looked everywhere and still can&#8217;t find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
<dt><a href="https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/">WordPress <abbr>IRC</abbr> (Internet Relay Chat) Channel</a></dt>
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="irc://irc.freenode.net/wordpress">irc.freenode.net #wordpress</a>)</dd>
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="https://web.libera.chat/#wordpress">irc.libera.chat #wordpress</a>)</dd>
</dl>
<h2>Final Notes</h2>

View File

@@ -9,9 +9,6 @@
/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';
wp_enqueue_script( 'wp-components' );
wp_enqueue_style( 'wp-components' );
/* translators: Page title of the About WordPress page in the admin. */
$title = _x( 'About', 'page title' );
@@ -44,13 +41,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr />
<div class="about__section">
<h2 class="aligncenter has-accent-color">
<h2 class="aligncenter">
<?php _e( 'Three Essential Powerhouses' ); ?>
</h2>
</div>
<div class="about__section has-2-columns is-wider-left">
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-widgets-blocks.png" alt="" />
</div>
<div class="column">
<h3>
<?php _e( 'Manage Widgets with Blocks' ); ?>
@@ -60,37 +59,31 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
printf(
/* translators: %s: Widgets dev note link. */
__( 'After months of hard work, the power of blocks has come to both the Block Widgets Editor and the Customizer. Now you can add blocks both in widget areas across your site and with live preview through the Customizer. This opens up new possibilities to create content: from no-code mini layouts to the vast library of core and third-party blocks. For our developers, you can find more details in the <a href="%s">Widgets dev note</a>.' ),
'#'
'https://make.wordpress.org/core/2021/06/29/block-based-widgets-editor-in-wordpress-5-8/'
);
?>
</p>
</div>
</div>
<hr />
<div class="about__section has-2-columns is-wider-right">
<div class="column">
<h3>
<?php _e( 'Display Posts with New Blocks and Patterns' ); ?>
</h3>
<p>
<?php
printf(
/* translators: %s: Query Loop dev note link. */
__( 'The Query Loop Block makes it possible to display posts based on specified parameters; like a PHP loop without the code. Easily display posts from a specific category, to do things like create a portfolio or a page full of your favorite recipes. Think of it as a more complex and powerful Latest Posts Block! Plus, pattern suggestions make it easier than ever to create a list of posts with the design you want. For our theme authors, learn more about experimenting with this awesome tool in the <a href="%s">Query Loop Block dev note</a>.' ),
'#'
);
?>
<?php _e( 'The Query Loop Block makes it possible to display posts based on specified parameters; like a PHP loop without the code. Easily display posts from a specific category, to do things like create a portfolio or a page full of your favorite recipes. Think of it as a more complex and powerful Latest Posts Block! Plus, pattern suggestions make it easier than ever to create a list of posts with the design you want.' ); ?>
</p>
</div>
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-query-loop.png" alt="" />
</div>
</div>
<hr />
<div class="about__section has-2-columns is-wider-left">
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-template.png" alt="" />
</div>
<div class="column">
<h3>
<?php _e( 'Edit the Templates Around Posts' ); ?>
@@ -106,13 +99,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr class="is-large" />
<div class="about__section">
<h2 class="aligncenter has-accent-color">
<h2 class="aligncenter">
<?php _e( 'Three Workflow Helpers' ); ?>
</h2>
</div>
<div class="about__section has-2-columns is-wider-left">
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-list-view.png" alt="" />
</div>
<div class="column">
<h3>
<?php _e( 'Overview of the Page Structure' ); ?>
@@ -125,8 +120,6 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
</div>
<hr />
<div class="about__section has-2-columns is-wider-right">
<div class="column">
<h3>
@@ -138,13 +131,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
?>
</p>
</div>
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-pattern-suggestions.png" alt="" />
</div>
</div>
<hr />
<div class="about__section has-2-columns is-wider-left">
<div class="column about__image has-subtle-background-color"></div>
<div class="column about__image is-vertically-aligned-center">
<img src="https://s.w.org/images/core/5.8/about-duotone.png" alt="" />
</div>
<div class="column">
<h3>
<?php _e( 'Style and Colorize Images' ); ?>
@@ -160,10 +155,15 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr class="is-large" />
<div class="about__section">
<h2 class="aligncenter has-accent-color">
<h2 class="aligncenter" style="margin-bottom:0;">
<?php _e( 'For Developers to Explore' ); ?>
</h2>
<div class="column about__image has-subtle-background-color" style="margin:32px 0;height:360px;"></div>
<div class="column about__image is-vertically-aligned-center">
<picture>
<source srcset="https://s.w.org/images/core/5.8/about-theme-json.png, https://s.w.org/images/core/5.8/about-theme-json-2x.png 2x">
<img src="https://s.w.org/images/core/5.8/about-theme-json.png" alt="">
</picture>
</div>
</div>
<div class="about__section has-1-column">
@@ -173,14 +173,16 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</h3>
<p>
<?php
_e( 'Introducing the Global Styles and Global Settings APIs: control the editor settings, available customization tools, and style blocks using a theme.json file in the active theme. This configuration file enables or disables features and sets default styles for both a website and blocks. If you build themes, you can experiment with this early iteration of a useful new feature. For more about what is currently available and how it works, check out this dev note.' );
printf(
/* translators: %s: Theme.json dev note link. */
__( 'Introducing the Global Styles and Global Settings APIs: control the editor settings, available customization tools, and style blocks using a theme.json file in the active theme. This configuration file enables or disables features and sets default styles for both a website and blocks. If you build themes, you can experiment with this early iteration of a useful new feature. For more about what is currently available and how it works, <a href="%s">check out this dev note</a>.' ),
'https://make.wordpress.org/core/2021/06/25/introducing-theme-json-in-wordpress-5-8/'
);
?>
</p>
</div>
</div>
<hr />
<div class="about__section has-3-columns">
<div class="column">
<h3>
@@ -213,8 +215,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<p>
<?php
printf(
/* translators: %1$s: Link to 5.6's block dev notes. %2$s: Link to 5.7's block dev notes. %1$s: Link to 5.8's block dev notes. */
__( 'Expanding on previously implemented block supports in WordPress <a href="%1$s">5.6</a> and <a href="%2$s">5.7</a>, WordPress 5.8 introduces several new block <code>supports</code> flags and new options to customize your registered blocks. More information is available in the <a href="%3$s">block supports dev note</a>.' ),
/* translators: %1$s: Link to 5.6's block dev notes. %2$s: Link to 5.7's block dev notes. %3$s: Link to 5.8's block dev notes. */
__( 'Expanding on previously implemented block supports in WordPress <a href="%1$s">5.6</a> and <a href="%2$s">5.7</a>, WordPress 5.8 introduces several new block support flags and new options to customize your registered blocks. More information is available in the <a href="%3$s">block supports dev note</a>.' ),
'https://make.wordpress.org/core/2020/11/18/block-supports-in-wordpress-5-6/',
'https://make.wordpress.org/core/2021/02/24/changes-to-block-editor-components-and-blocks/',
'https://make.wordpress.org/core/2021/06/25/block-supports-api-updates-for-wordpress-5-8/'
@@ -234,7 +236,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
printf(
/* translators: %s: WordPress 5.8 Field Guide link. */
__( 'Check out the latest version of the WordPress Field Guide. It highlights developer notes for each change you may want to be aware of. <a href="%s">WordPress 5.8 Field Guide.</a>' ),
'#'
'https://make.wordpress.org/core/2021/07/03/wordpress-5-8-field-guide/'
);
?>
</p>

View File

@@ -39,34 +39,28 @@ $credits = wp_credits();
</nav>
</div>
<div class="about__section is-feature">
<div class="about__section has-1-column">
<div class="column aligncenter">
<?php if ( ! $credits ) : ?>
<p>
<?php
printf(
/* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
__( 'https://wordpress.org/about/' ),
__( 'https://make.wordpress.org/' )
/* translators: 1: https://wordpress.org/about/ */
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals.' ),
__( 'https://wordpress.org/about/' )
);
?>
<br />
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
</p>
<?php else : ?>
<p>
<?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?>
</p>
<p>
<?php
printf(
/* translators: %s: https://make.wordpress.org/ */
__( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
__( 'https://make.wordpress.org/' )
);
?>
<?php _e( 'Want to see your name in lights on this page?' ); ?>
<br />
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
</p>
<?php endif; ?>

View File

@@ -792,16 +792,16 @@
.about__section .wp-person-avatar {
display: block;
margin: 0 auto calc(var(--gap) / 2);
width: 160px;
height: 160px;
width: 140px;
height: 140px;
border-radius: 100%;
overflow: hidden;
background: var(--accent-1);
}
.about__section .wp-person .gravatar {
width: 160px;
height: 160px;
width: 140px;
height: 140px;
filter: grayscale(100%);
mix-blend-mode: screen;
}
@@ -880,8 +880,9 @@
3.0 - Freedoms Page
------------------------------------------------------------------------------*/
.about__section .column .freedoms-image {
margin-bottom: 1em;
.about__section .column .freedom-image {
margin-bottom: var(--gap);
max-height: 140px;
}

File diff suppressed because one or more lines are too long

View File

@@ -791,16 +791,16 @@
.about__section .wp-person-avatar {
display: block;
margin: 0 auto calc(var(--gap) / 2);
width: 160px;
height: 160px;
width: 140px;
height: 140px;
border-radius: 100%;
overflow: hidden;
background: var(--accent-1);
}
.about__section .wp-person .gravatar {
width: 160px;
height: 160px;
width: 140px;
height: 140px;
filter: grayscale(100%);
mix-blend-mode: screen;
}
@@ -879,8 +879,9 @@
3.0 - Freedoms Page
------------------------------------------------------------------------------*/
.about__section .column .freedoms-image {
margin-bottom: 1em;
.about__section .column .freedom-image {
margin-bottom: var(--gap);
max-height: 140px;
}

File diff suppressed because one or more lines are too long

View File

@@ -3154,6 +3154,7 @@ img {
font-size: 13px;
background: #f6f7f7;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}

File diff suppressed because one or more lines are too long

View File

@@ -3153,6 +3153,7 @@ img {
font-size: 13px;
background: #f6f7f7;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}

File diff suppressed because one or more lines are too long

View File

@@ -1579,6 +1579,7 @@ p.customize-section-description {
font-size: 12px;
padding: 6px 8px;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}
.customize-control-code_editor textarea,

File diff suppressed because one or more lines are too long

View File

@@ -1578,6 +1578,7 @@ p.customize-section-description {
font-size: 12px;
padding: 6px 8px;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}
.customize-control-code_editor textarea,

File diff suppressed because one or more lines are too long

View File

@@ -976,6 +976,10 @@ form#tags-filter {
margin: 0 0 1em;
}
.privacy-text-copy span {
pointer-events: none;
}
.privacy-settings-accordion-panel .wp-suggested-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),
.privacy-settings-accordion-panel .wp-suggested-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),
.privacy-settings-accordion-panel > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),

File diff suppressed because one or more lines are too long

View File

@@ -975,6 +975,10 @@ form#tags-filter {
margin: 0 0 1em;
}
.privacy-text-copy span {
pointer-events: none;
}
.privacy-settings-accordion-panel .wp-suggested-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),
.privacy-settings-accordion-panel .wp-suggested-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),
.privacy-settings-accordion-panel > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),

File diff suppressed because one or more lines are too long

View File

@@ -42,38 +42,36 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</nav>
</div>
<div class="about__section has-subtle-background-color is-feature">
<div class="about__section is-feature">
<p class="about-description">
<?php
printf(
/* translators: %s: https://wordpress.org/about/license/ */
__( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
__( 'WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
__( 'https://wordpress.org/about/license/' )
);
?>
</p>
</div>
<hr />
<div class="about__section has-4-columns">
<div class="column">
<div class="freedoms-image"></div>
<div class="about__section has-2-columns">
<div class="column aligncenter">
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-1.svg' ) ); ?>" alt="" />
<h2 class="is-smaller-heading"><?php _e( 'The 1st Freedom' ); ?></h2>
<p><?php _e( 'To run the program for any purpose.' ); ?></p>
</div>
<div class="column">
<div class="freedoms-image"></div>
<div class="column aligncenter">
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-2.svg' ) ); ?>" alt="" />
<h2 class="is-smaller-heading"><?php _e( 'The 2nd Freedom' ); ?></h2>
<p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
</div>
<div class="column">
<div class="freedoms-image"></div>
<div class="column aligncenter">
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-3.svg' ) ); ?>" alt="" />
<h2 class="is-smaller-heading"><?php _e( 'The 3rd Freedom' ); ?></h2>
<p><?php _e( 'To redistribute.' ); ?></p>
</div>
<div class="column">
<div class="freedoms-image"></div>
<div class="column aligncenter">
<img class="freedom-image" src="<?php echo esc_url( admin_url( 'images/freedom-4.svg' ) ); ?>" alt="" />
<h2 class="is-smaller-heading"><?php _e( 'The 4th Freedom' ); ?></h2>
<p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
</div>

View File

@@ -0,0 +1,12 @@
<svg width="157" height="148" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M146.643 77.521c.122-1.213.122-2.547.122-3.76C146.765 33.622 114.143 1 74.003 1S1.24 33.621 1.24 73.762c0 40.14 32.622 72.761 72.762 72.761 33.713 0 62.09-22.919 70.336-53.965" fill="#fff"/>
<path d="M146.643 77.521c.122-1.213.122-2.547.122-3.76C146.765 33.622 114.143 1 74.003 1S1.24 33.621 1.24 73.762c0 40.14 32.622 72.761 72.762 72.761 33.713 0 62.09-22.919 70.336-53.965" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M156.224 67.941l-9.517 10.182-9.401-10.182" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M74.003 124.694c28.129 0 50.933-22.803 50.933-50.933s-22.804-50.933-50.933-50.933c-28.13 0-50.934 22.804-50.934 50.933 0 28.13 22.804 50.933 50.934 50.933z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<defs>
<linearGradient id="paint0_linear" x1="74.003" y1="22.828" x2="74.003" y2="124.694" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,13 @@
<svg width="165" height="143" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M71.035 140.703c38.578 0 69.852-31.274 69.852-69.852S109.613 1 71.035 1C32.458 1 1.185 32.273 1.185 70.851s31.273 69.852 69.85 69.852z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M70.962 78.994a8.122 8.122 0 100-16.245 8.122 8.122 0 000 16.245z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M104.862 44.282c18.029 12.1 24.216 35.21 15.548 54.243l35.054 23.526a7.105 7.105 0 01-7.918 11.797l-35.054-23.526c-14.33 15.231-38.06 18.261-56.089 6.161-20.048-13.456-25.453-40.527-12.071-60.465 13.381-19.938 40.482-25.192 60.53-11.736zm-6.478 9.652c14.688 9.858 18.648 29.692 8.844 44.299s-29.659 18.456-44.347 8.598c-14.688-9.858-18.648-29.692-8.844-44.299s29.659-18.456 44.347-8.598z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="88.861" y="68.954" width="10.585" height="26.464" rx="5.293" transform="rotate(-8.376 88.861 68.954)" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M81.965 86.033l-4.21 16.373-12.163-12.163 16.373-4.21z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<defs>
<linearGradient id="paint0_linear" x1="71.035" y1="1" x2="71.035" y2="140.703" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,37 @@
<svg width="193" height="213" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M96.591 47.235c12.623 0 22.856-10.233 22.856-22.856 0-12.623-10.233-22.856-22.856-22.856-12.623 0-22.856 10.233-22.856 22.856 0 12.623 10.233 22.856 22.856 22.856z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M22.402 89.438c12.193 3.267 24.726-3.969 27.993-16.162 3.267-12.193-3.969-24.725-16.162-27.992-12.192-3.267-24.725 3.968-27.992 16.161-3.267 12.193 3.968 24.726 16.161 27.993z" fill="url(#paint1_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M170.78 89.438c12.193-3.267 19.428-15.8 16.161-27.992-3.267-12.193-15.8-19.43-27.992-16.162-12.193 3.267-19.429 15.8-16.162 27.992 3.267 12.193 15.8 19.43 27.993 16.162z" fill="url(#paint2_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M34.234 167.57c12.193-3.268 19.428-15.8 16.161-27.993-3.267-12.193-15.8-19.429-27.992-16.162-12.193 3.267-19.429 15.8-16.162 27.993 3.267 12.193 15.8 19.429 27.993 16.162z" fill="url(#paint3_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M157.423 167.569c12.193 3.267 24.726-3.968 27.993-16.161 3.267-12.193-3.969-24.726-16.162-27.993-12.193-3.267-24.725 3.969-27.992 16.162-3.267 12.193 3.968 24.725 16.161 27.992z" fill="url(#paint4_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M95.83 211.329c12.622 0 22.855-10.233 22.855-22.855 0-12.623-10.233-22.856-22.856-22.856-12.622 0-22.855 10.233-22.855 22.856 0 12.622 10.233 22.855 22.855 22.855z" fill="url(#paint5_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M96.59 144.377c21.073 0 38.158-17.158 38.158-38.324 0-21.165-17.085-38.323-38.159-38.323-21.074 0-38.158 17.157-38.158 38.323s17.084 38.324 38.158 38.324z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M79.243 108.789c0 9.705 7.93 17.42 17.345 17.42 9.416 0 17.345-7.964 17.345-17.42" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M90.883 95.351a3.72 3.72 0 01-3.71 3.73 3.72 3.72 0 01-3.71-3.73 3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.71 3.73zM109.715 95.351a3.72 3.72 0 01-3.71 3.73 3.72 3.72 0 01-3.71-3.73 3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.71 3.73z" fill="#3858E9" stroke="#3858E9" stroke-width="1.5"/>
<defs>
<linearGradient id="paint0_linear" x1="96.591" y1="1.523" x2="96.591" y2="47.235" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="34.233" y1="45.284" x2="22.402" y2="89.438" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="158.949" y1="45.284" x2="170.78" y2="89.438" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint3_linear" x1="22.403" y1="123.415" x2="34.234" y2="167.57" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint4_linear" x1="169.254" y1="123.415" x2="157.423" y2="167.569" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint5_linear" x1="95.829" y1="165.618" x2="95.829" y2="211.329" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -0,0 +1,28 @@
<svg width="245" height="155" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M66.54 55.02L39.693 9.126 12.96 55.02h53.58z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M39.75 153.084c21.074 0 38.158-17.158 38.158-38.324 0-21.165-17.084-38.323-38.159-38.323-21.074 0-38.158 17.158-38.158 38.323 0 21.166 17.084 38.324 38.158 38.324z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M22.404 117.499c0 9.706 7.929 17.42 17.345 17.42 9.415 0 17.344-7.963 17.344-17.42" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M34.044 104.061c0 2.063-1.664 3.73-3.71 3.73-2.046 0-3.71-1.667-3.71-3.73a3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.71 3.729zM52.872 104.061a3.72 3.72 0 01-3.71 3.729 3.72 3.72 0 01-3.71-3.729c0-2.063 1.664-3.73 3.71-3.73 2.046 0 3.71 1.667 3.71 3.73z" fill="#3858E9" stroke="#3858E9" stroke-width="1.5"/>
<path d="M122.734 85.772c21.074 0 38.158-17.158 38.158-38.324 0-21.165-17.084-38.323-38.158-38.323-21.075 0-38.159 17.158-38.159 38.323 0 21.166 17.084 38.324 38.159 38.324z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M105.392 50.188c0 9.705 7.929 17.42 17.344 17.42 9.416 0 17.345-7.964 17.345-17.42" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M117.031 36.75a3.72 3.72 0 01-3.71 3.728 3.72 3.72 0 01-3.71-3.729 3.72 3.72 0 013.71-3.73 3.72 3.72 0 013.71 3.73zM135.864 36.748a3.72 3.72 0 01-3.711 3.73 3.72 3.72 0 01-3.71-3.73 3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.711 3.73z" fill="#3858E9" stroke="#3858E9" stroke-width="1.5"/>
<path fill="url(#paint1_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round" d="M99.782 107.435h45.894v45.894H99.782z"/>
<path d="M218.946 37.371l17.518-5.453-17.518-5.454 8.494-16.284-16.229 8.483-5.536-17.496-5.46 17.496-16.305-8.483 8.57 16.284-17.518 5.454 17.518 5.453-8.57 16.285 16.305-8.483 5.46 17.496 5.536-17.496 16.229 8.483-8.494-16.285z" fill="url(#paint2_linear)" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M205.714 153.083c21.074 0 38.159-17.158 38.159-38.323 0-21.166-17.085-38.324-38.159-38.324-21.074 0-38.158 17.158-38.158 38.324 0 21.165 17.084 38.323 38.158 38.323z" fill="#fff" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M188.368 117.499c0 9.705 7.929 17.419 17.344 17.419 9.416 0 17.345-7.963 17.345-17.419" stroke="#3858E9" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M200.008 104.06a3.72 3.72 0 01-3.711 3.73c-2.046 0-3.71-1.667-3.71-3.73a3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.711 3.729zM218.839 104.06a3.72 3.72 0 01-3.71 3.729 3.72 3.72 0 01-3.71-3.729 3.72 3.72 0 013.71-3.729 3.72 3.72 0 013.71 3.729z" fill="#3858E9" stroke="#3858E9" stroke-width="1.5"/>
<defs>
<linearGradient id="paint0_linear" x1="39.749" y1="55.02" x2="39.749" y2="9.126" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="122.729" y1="107.435" x2="122.729" y2="153.329" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="205.713" y1="1.167" x2="205.713" y2="62.669" gradientUnits="userSpaceOnUse">
<stop stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

View File

@@ -0,0 +1,30 @@
<svg width="322" height="370" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M209.004 97.757c-.11-1.762-.328-3.523-.547-5.285a86.978 86.978 0 00-1.314-7.707c-.547-2.533-1.094-5.065-1.86-7.597-.219-.881-.438-1.652-.766-2.423-13.024-42.61-52.532-73.548-99.154-73.548S19.233 32.136 6.1 74.745c-.328.771-.547 1.542-.766 2.423a79.772 79.772 0 00-2.298 10.13c-.329 1.76-.548 3.412-.766 5.174-.22 1.762-.438 3.523-.548 5.285a96.67 96.67 0 00-.328 8.037v223.178h207.938V105.794c0-2.752-.109-5.395-.328-8.037zm-186.16 44.041v-36.004h.11c0-45.802 36.882-82.907 82.519-83.017 45.527 0 82.409 37.105 82.409 83.017h.109v36.004H22.844z" fill="url(#paint0_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M141.808 294.4l-28.455-58.355c9.631-3.083 16.526-12.111 16.526-22.681 0-13.212-10.616-23.892-23.749-23.892s-23.749 10.68-23.749 23.892c0 10.68 7.004 19.709 16.526 22.681L70.452 294.4h71.356z" fill="#3858E9" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M209.332 329.082H1.394v12.882h207.938v-12.882z" fill="url(#paint1_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M209.332 341.854H1.394v12.882h207.938v-12.882z" fill="url(#paint2_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M209.332 354.735H1.394c0 7.115 5.767 12.882 12.881 12.882H196.45c7.114 0 12.882-5.767 12.882-12.882z" fill="url(#paint3_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M285.509 278.325v-76.301h25.28V186.94h-25.28v-9.579h32.285v-15.084h-32.285v-6.936h32.285v-15.085h-32.285v-8.257h-21.013v146.326c-21.013 4.955-36.444 24.553-35.131 47.564 1.314 22.902 19.59 41.619 42.354 43.271 26.813 1.871 49.139-19.378 49.139-45.913-.109-21.911-15.103-40.077-35.349-44.922zM275.002 347.8c-13.461 0-24.515-11.01-24.515-24.663s10.945-24.663 24.515-24.663c13.461 0 24.515 11.01 24.515 24.663S288.573 347.8 275.002 347.8z" fill="url(#paint4_linear)" stroke="#3858E9" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<defs>
<linearGradient id="paint0_linear" x1="105.363" y1="1.197" x2="105.363" y2="328.972" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="105.363" y1="329.082" x2="105.363" y2="341.964" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="105.363" y1="341.854" x2="105.363" y2="354.736" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint3_linear" x1="105.363" y1="354.735" x2="105.363" y2="367.617" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint4_linear" x1="275.073" y1="131.999" x2="275.073" y2="369.275" gradientUnits="userSpaceOnUse">
<stop offset=".099" stop-color="#ECF5FF"/>
<stop offset="1" stop-color="#ECF5FF" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -1658,10 +1658,9 @@ function wp_dashboard_quota() {
* Displays the browser update nag.
*
* @since 3.2.0
* @since 5.8.0 Display special message for Internet Explorer users.
* @since 5.8.0 Added a special message for Internet Explorer users.
*
* @global bool $is_IE
*
*/
function wp_dashboard_browser_nag() {
global $is_IE;

View File

@@ -804,6 +804,12 @@ $_old_files = array(
// 5.7
'wp-includes/blocks/classic/block.json',
// 5.8
'wp-admin/images/freedoms.png',
'wp-admin/images/privacy.png',
'wp-admin/images/about-badge.svg',
'wp-admin/images/about-color-palette.svg',
'wp-admin/images/about-color-palette-vert.svg',
'wp-admin/images/about-header-brushes.svg',
'wp-includes/block-patterns/large-header.php',
'wp-includes/block-patterns/heading-paragraph.php',
'wp-includes/block-patterns/quote.php',

View File

@@ -161,7 +161,7 @@ wp.textWidgets = ( function( $ ) {
control.fields.text.val( syncInput.val() );
}
} else if ( control.editor && ! control.editorFocused && syncInput.val() !== control.fields.text.val() ) {
control.editor.setContent( wp.editor.autop( syncInput.val() ) );
control.editor.setContent( wp.oldEditor.autop( syncInput.val() ) );
}
},
@@ -237,7 +237,7 @@ wp.textWidgets = ( function( $ ) {
// The user has disabled TinyMCE.
if ( typeof window.tinymce === 'undefined' ) {
wp.editor.initialize( id, {
wp.oldEditor.initialize( id, {
quicktags: true,
mediaButtons: true
});
@@ -248,7 +248,7 @@ wp.textWidgets = ( function( $ ) {
// Destroy any existing editor so that it can be re-initialized after a widget-updated event.
if ( tinymce.get( id ) ) {
restoreTextMode = tinymce.get( id ).isHidden();
wp.editor.remove( id );
wp.oldEditor.remove( id );
}
// Add or enable the `wpview` plugin.
@@ -262,7 +262,7 @@ wp.textWidgets = ( function( $ ) {
}
} );
wp.editor.initialize( id, {
wp.oldEditor.initialize( id, {
tinymce: {
wpautop: true
},

File diff suppressed because one or more lines are too long

View File

@@ -36,10 +36,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</nav>
</div>
<div class="about__section">
<div class="column">
<p><img class="privacy-image" src="<?php echo esc_url( admin_url( 'images/privacy.png' ) ); ?>" alt="" /></p>
<div class="about__section has-2-columns is-wider-right">
<div class="column about__image">
<img class="privacy-image" src="<?php echo esc_url( admin_url( 'images/privacy.svg' ) ); ?>" alt="" />
</div>
<div class="column is-vertically-aligned-center">
<p><?php _e( 'From time to time, your WordPress site may send data to WordPress.org &#8212; including, but not limited to &#8212; the version of WordPress you are using, and a list of installed plugins and themes.' ); ?></p>
<p>

View File

@@ -7,10 +7,10 @@
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
* @since Twenty Eleven 3.8
*/
/**
/**
* Register Block Pattern Category.
*/
if ( function_exists( 'register_block_pattern_category' ) ) {

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 3.2
Tested up to: 5.8
Stable tag: 3.7
Stable tag: 3.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, block-patterns
@@ -47,6 +47,11 @@ Images
== Changelog ==
= 3.8 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_3.8
= 3.7 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyeleven/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats.
Version: 3.7
Version: 3.8
Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 4.1
Tested up to: 5.8
Version: 2.9
Version: 3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, left-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
@@ -61,6 +61,11 @@ Source: https://stocksnap.io/photo/purple-yellow-ACF0693B9C
== Changelog ==
= 3.0 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Fifteen_Theme_Changelog#Version_3.0
= 2.9 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfifteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Version: 2.9
Version: 3.0
Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

View File

@@ -10,7 +10,7 @@
* @since Twenty Fourteen 3.2
*/
/**
/**
* Register Block Pattern Category.
*/
if ( function_exists( 'register_block_pattern_category' ) ) {

View File

@@ -2,7 +2,7 @@
Contributors: wordpressdotorg
Requires at least: WordPress 3.6
Tested up to: 5.8
Stable tag: 3.1
Stable tag: 3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns
@@ -58,6 +58,11 @@ Source: https://stocksnap.io/photo/fog-mountain-ZKN6UKFKEO
== Changelog ==
= 3.2 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.2
= 3.1 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
Version: 3.1
Version: 3.2
Requires PHP: 5.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

View File

@@ -6,8 +6,8 @@
* @link https://developer.wordpress.org/reference/functions/register_block_pattern_category/
*
* @package WordPress
* @subpackage TwentyNineteen
* @since Twenty Nineteen 1.7
* @subpackage Twenty_Nineteen
* @since Twenty Nineteen 1.8
*/
/**

View File

@@ -3,7 +3,7 @@
* Twenty Nineteen: Color Patterns
*
* @package WordPress
* @subpackage TwentyNineteen
* @subpackage Twenty_Nineteen
* @since Twenty Nineteen 1.0
*/

View File

@@ -1,6 +1,6 @@
{
"name": "twentynineteen",
"version": "2.0.0",
"version": "2.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "twentynineteen",
"version": "2.0.0",
"version": "2.1.0",
"description": "Default WP Theme",
"bugs": {
"url": "https://core.trac.wordpress.org/"

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.8
Stable tag: 2.0
Stable tag: 2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -39,6 +39,11 @@ GNU General Public License for more details.
== Changelog ==
= 2.1 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_2.1
= 2.0 =
* Released: March 9, 2021

View File

@@ -1,5 +1,5 @@
/*!
Twenty Nineteen Customizer Styles
NOTE: This file is automatically populated with styles if the user selects a custom primary color in the customzier.
NOTE: This file is automatically populated with styles if the user selects a custom primary color in the customizer.
*/

View File

@@ -1,5 +1,5 @@
/*!
Twenty Nineteen Customizer Styles
NOTE: This file is automatically populated with styles if the user selects a custom primary color in the customzier.
NOTE: This file is automatically populated with styles if the user selects a custom primary color in the customizer.
*/

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: 2.0
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

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: 2.0
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

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: 2.0
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentynineteen

View File

@@ -4,7 +4,7 @@
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since Twenty Seventeen 2.4
* @since Twenty Seventeen 2.5
*/
/**

View File

@@ -1,7 +1,7 @@
=== Twenty Seventeen ===
Contributors: wordpressdotorg
Tested up to: 5.8
Version: 2.7
Version: 2.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-patterns
@@ -68,6 +68,11 @@ Source: https://stocksnap.io/photo/striped-fabric-9CBVWF2CDU
== Changelog ==
= 2.8 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_2.8
= 2.7 =
* Released: April 14, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyseventeen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
Version: 2.7
Version: 2.8
Requires at least: 4.7
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -2,8 +2,9 @@
/**
* Twenty Sixteen Theme: Block Patterns
*
* @package Twenty Sixteen
* @since 2.2
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 2.3
*/
/**

View File

@@ -1,7 +1,7 @@
=== Twenty Sixteen ===
Contributors: wordpressdotorg
Tested up to: 5.8
Version: 2.4
Version: 2.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
@@ -55,6 +55,11 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch
== Changelog ==
= 2.5 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.5
= 2.4 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentysixteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
Version: 2.4
Version: 2.5
Requires at least: 4.4
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -1,7 +1,7 @@
=== Twenty Ten ===
Contributors: wordpressdotorg
Tested up to: 5.8
Stable tag: 3.3
Stable tag: 3.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header, block-patterns
@@ -42,6 +42,11 @@ Images
== Changelog ==
= 3.4 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Ten_Theme_Changelog#Version_3.4
= 3.3 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyten/
Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar.
Author: the WordPress team
Author URI: https://wordpress.org/
Version: 3.3
Version: 3.4
Requires at least: 3.0
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -1,7 +1,7 @@
=== Twenty Thirteen ===
Contributors: wordpressdotorg
Tested up to: 5.8
Stable tag: 3.3
Stable tag: 3.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, footer-widgets, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready, block-patterns
@@ -52,6 +52,11 @@ Toroidal Colony: https://www.flickr.com/photos/nasacommons/13889485757/in/album-
== Changelog ==
= 3.4 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_3.4
= 3.3 =
* Released: March 9, 2021

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentythirteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 3.3
Version: 3.4
Requires at least: 3.6
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -1,7 +1,7 @@
=== Twenty Twelve ===
Contributors: wordpressdotorg
Tested up to: 5.8
Stable tag: 3.3
Stable tag: 3.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, block-patterns
@@ -46,6 +46,11 @@ Source: https://github.com/aFarkas/html5shiv
== Changelog ==
= 3.4 =
* Released: July 20, 2021
https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.4
= 3.3 =
* Released: December 8, 2020

View File

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentytwelve/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
Version: 3.3
Version: 3.4
Requires at least: 3.5
Requires PHP: 5.2.4
License: GNU General Public License v2 or later

View File

@@ -11,6 +11,8 @@
/**
* Return a value for our partial refresh.
*
* @since Twenty Twenty 1.0
*
* @param {Object} partial Current partial.
*
* @return {jQuery.Promise} Resolved promise.
@@ -31,6 +33,8 @@
/**
* Override the refresh method.
*
* @since Twenty Twenty 1.0
*
* @return {jQuery.Promise} Resolved promise.
*/
refresh: function() {
@@ -55,6 +59,7 @@
/**
* Input attributes.
*
* @since Twenty Twenty 1.0
* @type {Object}
*/
attrs: {},
@@ -62,6 +67,8 @@
/**
* Override the refresh method.
*
* @since Twenty Twenty 1.0
*
* @return {jQuery.Promise} Resolved promise.
*/
refresh: function() {

View File

@@ -646,6 +646,8 @@ twentytwenty.toggles = {
*
* This implementation is coming from https://gomakethings.com/a-native-javascript-equivalent-of-jquerys-ready-method/
*
* @since Twenty Twenty 1.0
*
* @param {Function} fn Callback function to run.
*/
function twentytwentyDomReady( fn ) {
@@ -695,6 +697,8 @@ function twentytwentyToggleAttribute( element, attribute, trueVal, falseVal ) {
/**
* Toggle a menu item on or off.
*
* @since Twenty Twenty 1.0
*
* @param {HTMLElement} target
* @param {number} duration
*/
@@ -796,6 +800,8 @@ function twentytwentyMenuToggle( target, duration ) {
/**
* Traverses the DOM up to find elements matching the query.
*
* @since Twenty Twenty 1.0
*
* @param {HTMLElement} target
* @param {string} query
* @return {NodeList} parents matching query

View File

@@ -6,6 +6,8 @@
* This is the source file for what is minified in the twentytwenty_skip_link_focus_fix() PHP function.
*
* Learn more: https://git.io/vWdr2
*
* @since Twenty Twenty 1.0
*/
( function() {
var isIe = /(trident|msie)/i.test( navigator.userAgent );

View File

@@ -10,12 +10,16 @@
if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
/**
* CUSTOMIZER SETTINGS
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Customize {
/**
* Register customizer options.
*
* @since Twenty Twenty 1.0
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
public static function register( $wp_customize ) {
@@ -412,9 +416,8 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
/**
* Sanitization callback for the "accent_accessible_colors" setting.
*
* @static
* @access public
* @since Twenty Twenty 1.0
*
* @param array $value The value we want to sanitize.
* @return array Returns sanitized value. Each item in the array gets sanitized separately.
*/
@@ -436,7 +439,9 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
/**
* Sanitize select.
*
* @param string $input The input from the setting.
* @since Twenty Twenty 1.0
*
* @param string $input The input from the setting.
* @param object $setting The selected setting.
* @return string The input from the setting or the default setting.
*/
@@ -449,6 +454,8 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
/**
* Sanitize boolean for checkbox.
*
* @since Twenty Twenty 1.0
*
* @param bool $checked Whether or not a box is checked.
* @return bool
*/
@@ -469,6 +476,8 @@ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) {
if ( ! function_exists( 'twentytwenty_customize_partial_blogname' ) ) {
/**
* Render the site title for the selective refresh partial.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_customize_partial_blogname() {
bloginfo( 'name' );
@@ -478,6 +487,8 @@ if ( ! function_exists( 'twentytwenty_customize_partial_blogname' ) ) {
if ( ! function_exists( 'twentytwenty_customize_partial_blogdescription' ) ) {
/**
* Render the site description for the selective refresh partial.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_customize_partial_blogdescription() {
bloginfo( 'description' );
@@ -489,6 +500,8 @@ if ( ! function_exists( 'twentytwenty_customize_partial_site_logo' ) ) {
* Render the site logo for the selective refresh partial.
*
* Doing it this way so we don't have issues with `render_callback`'s arguments.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_customize_partial_site_logo() {
twentytwenty_site_logo();
@@ -499,18 +512,22 @@ if ( ! function_exists( 'twentytwenty_customize_partial_site_logo' ) ) {
/**
* Input attributes for cover overlay opacity option.
*
* @since Twenty Twenty 1.0
*
* @return array Array containing attribute names and their values.
*/
function twentytwenty_customize_opacity_range() {
/**
* Filters the input attributes for opacity
* Filters the input attributes for opacity.
*
* @since Twenty Twenty 1.0
*
* @param array $attrs {
* The attributes
* The attributes.
*
* @type int $min Minimum value
* @type int $max Maximum value
* @type int $step Interval between numbers
* @type int $min Minimum value.
* @type int $max Maximum value.
* @type int $step Interval between numbers.
* }
*/
return apply_filters(

View File

@@ -12,6 +12,8 @@
if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
/**
* Language handling.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Non_Latin_Languages {
@@ -20,7 +22,9 @@ if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
*
* Return CSS for non-latin language, if available, or null
*
* @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
* @since Twenty Twenty 1.0
*
* @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor".
* @return void
*/
public static function get_non_latin_css( $type = 'front-end' ) {
@@ -28,7 +32,13 @@ if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
// Fetch site locale.
$locale = get_bloginfo( 'language' );
// Define fallback fonts for non-latin languages.
/**
* Filters the fallback fonts for non-latin languages.
*
* @since Twenty Twenty 1.0
*
* @param array $font_family An array of locales and font families.
*/
$font_family = apply_filters(
'twentytwenty_get_localized_font_family_types',
array(
@@ -98,7 +108,13 @@ if ( ! class_exists( 'TwentyTwenty_Non_Latin_Languages' ) ) {
return;
}
// Define elements to apply fallback fonts to.
/**
* Filters the elements to apply fallback fonts to.
*
* @since Twenty Twenty 1.0
*
* @param array $elements An array of elements for "front-end", "block-editor", or "classic-editor".
*/
$elements = apply_filters(
'twentytwenty_get_localized_font_family_elements',
array(

View File

@@ -14,6 +14,8 @@
if ( ! class_exists( 'TwentyTwenty_Script_Loader' ) ) {
/**
* A class that provides a way to add `async` or `defer` attributes to scripts.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Script_Loader {
@@ -22,6 +24,8 @@ if ( ! class_exists( 'TwentyTwenty_Script_Loader' ) ) {
*
* If #12009 lands in WordPress, this function can no-op since it would be handled in core.
*
* @since Twenty Twenty 1.0
*
* @link https://core.trac.wordpress.org/ticket/12009
*
* @param string $tag The script tag.

View File

@@ -12,10 +12,14 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
if ( ! class_exists( 'TwentyTwenty_Separator_Control' ) ) {
/**
* Separator Control.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Separator_Control extends WP_Customize_Control {
/**
* Render the hr.
*
* @since Twenty Twenty 1.0
*/
public function render_content() {
echo '<hr/>';

View File

@@ -11,12 +11,16 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
/**
* SVG ICONS CLASS
* Retrieve the SVG code for the specified icon. Based on a solution in Twenty Nineteen.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_SVG_Icons {
/**
* GET SVG CODE
* Get the SVG code for the specified icon
*
* @since Twenty Twenty 1.0
*
* @param string $icon Icon name.
* @param string $group Icon group.
* @param string $color Color.
@@ -69,6 +73,8 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
* GET SOCIAL LINK SVG
* Detects the social network from a URL and returns the SVG code for its icon.
*
* @since Twenty Twenty 1.0
*
* @param string $uri The URL to retrieve SVG for.
*/
public static function get_social_link_svg( $uri ) {
@@ -116,6 +122,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
* ICON STORAGE
* Store the code for all SVGs in an array.
*
* @since Twenty Twenty 1.0
* @var array
*/
public static $ui_icons = array(
@@ -169,6 +176,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
* By default, each Icon ID is matched against a .com TLD. To override this behavior,
* specify all the domains it covers (including the .com TLD too, if applicable).
*
* @since Twenty Twenty 1.0
* @var array
*/
public static $social_icons_map = array(
@@ -224,6 +232,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) {
/**
* Social Icons svg sources.
*
* @since Twenty Twenty 1.0
* @var array
*/
public static $social_icons = array(

View File

@@ -11,12 +11,16 @@ if ( ! class_exists( 'TwentyTwenty_Walker_Comment' ) ) {
/**
* CUSTOM COMMENT WALKER
* A custom walker for comments, based on the walker in Twenty Nineteen.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Walker_Comment extends Walker_Comment {
/**
* Outputs a comment in the HTML5 format.
*
* @since Twenty Twenty 1.0
*
* @see wp_list_comments()
* @see https://developer.wordpress.org/reference/functions/get_comment_author_url/
* @see https://developer.wordpress.org/reference/functions/get_comment_author/

View File

@@ -11,14 +11,17 @@ if ( ! class_exists( 'TwentyTwenty_Walker_Page' ) ) {
/**
* CUSTOM PAGE WALKER
* A custom walker for pages.
*
* @since Twenty Twenty 1.0
*/
class TwentyTwenty_Walker_Page extends Walker_Page {
/**
* Outputs the beginning of the current element in the tree.
*
* @since Twenty Twenty 1.0
*
* @see Walker::start_el()
* @since 2.1.0
*
* @param string $output Used to append additional content. Passed by reference.
* @param WP_Post $page Page data object.

View File

@@ -30,6 +30,8 @@
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_theme_support() {
@@ -183,6 +185,8 @@ require get_template_directory() . '/inc/block-patterns.php';
/**
* Register and Enqueue Styles.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_register_styles() {
@@ -203,6 +207,8 @@ add_action( 'wp_enqueue_scripts', 'twentytwenty_register_styles' );
/**
* Register and Enqueue Scripts.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_register_scripts() {
@@ -225,6 +231,8 @@ add_action( 'wp_enqueue_scripts', 'twentytwenty_register_scripts' );
* This does not enqueue the script because it is tiny and because it is only for IE11,
* thus it does not warrant having an entire dedicated blocking script being loaded.
*
* @since Twenty Twenty 1.0
*
* @link https://git.io/vWdr2
*/
function twentytwenty_skip_link_focus_fix() {
@@ -237,7 +245,8 @@ function twentytwenty_skip_link_focus_fix() {
}
add_action( 'wp_print_footer_scripts', 'twentytwenty_skip_link_focus_fix' );
/** Enqueue non-latin language styles
/**
* Enqueue non-latin language styles.
*
* @since Twenty Twenty 1.0
*
@@ -255,6 +264,8 @@ add_action( 'wp_enqueue_scripts', 'twentytwenty_non_latin_languages' );
/**
* Register navigation menus uses wp_nav_menu in five places.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_menus() {
@@ -274,6 +285,8 @@ add_action( 'init', 'twentytwenty_menus' );
/**
* Get the information about the logo.
*
* @since Twenty Twenty 1.0
*
* @param string $html The HTML output from get_custom_logo (core function).
* @return string
*/
@@ -331,14 +344,19 @@ if ( ! function_exists( 'wp_body_open' ) ) {
/**
* Shim for wp_body_open, ensuring backward compatibility with versions of WordPress older than 5.2.
*
* @since Twenty Twenty 1.0
*/
function wp_body_open() {
/** This action is documented in wp-includes/general-template.php */
do_action( 'wp_body_open' );
}
}
/**
* Include a skip to content link at the top of the page so that users can bypass the menu.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_skip_link() {
echo '<a class="skip-link screen-reader-text" href="#site-content">' . __( 'Skip to the content', 'twentytwenty' ) . '</a>';
@@ -349,6 +367,8 @@ add_action( 'wp_body_open', 'twentytwenty_skip_link', 5 );
/**
* Register widget areas.
*
* @since Twenty Twenty 1.0
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function twentytwenty_sidebar_registration() {
@@ -391,6 +411,8 @@ add_action( 'widgets_init', 'twentytwenty_sidebar_registration' );
/**
* Enqueue supplemental block editor styles.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_block_editor_styles() {
@@ -412,6 +434,8 @@ add_action( 'enqueue_block_editor_assets', 'twentytwenty_block_editor_styles', 1
/**
* Enqueue classic editor styles.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_classic_editor_styles() {
@@ -429,6 +453,8 @@ add_action( 'init', 'twentytwenty_classic_editor_styles' );
* Output Customizer settings in the classic editor.
* Adds styles to the head of the TinyMCE iframe. Kudos to @Otto42 for the original solution.
*
* @since Twenty Twenty 1.0
*
* @param array $mce_init TinyMCE styles.
* @return array TinyMCE styles.
*/
@@ -479,6 +505,8 @@ add_filter( 'tiny_mce_before_init', 'twentytwenty_add_classic_editor_non_latin_s
/**
* Block Editor Settings.
* Add custom colors and font sizes to the block editor.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_block_editor_settings() {
@@ -632,7 +660,7 @@ add_action( 'customize_preview_init', 'twentytwenty_customize_preview_init' );
*
* @since Twenty Twenty 1.0
*
* @param string $area The area we want to get the colors for.
* @param string $area The area we want to get the colors for.
* @param string $context Can be 'text' or 'accent'.
* @return string Returns a HEX color.
*/
@@ -750,11 +778,11 @@ function twentytwenty_get_elements_array() {
);
/**
* Filters Twenty Twenty theme elements
*
* @since Twenty Twenty 1.0
*
* @param array Array of elements
*/
* Filters Twenty Twenty theme elements.
*
* @since Twenty Twenty 1.0
*
* @param array Array of elements.
*/
return apply_filters( 'twentytwenty_get_elements_array', $elements );
}

View File

@@ -7,7 +7,7 @@
*
* @package WordPress
* @subpackage Twenty_Twenty
* @since Twenty Twenty 1.5
* @since Twenty Twenty 1.6
*/
/**

View File

@@ -12,12 +12,14 @@ if ( ! function_exists( 'twentytwenty_generate_css' ) ) {
/**
* Generate CSS.
*
* @since Twenty Twenty 1.0
*
* @param string $selector The CSS selector.
* @param string $style The CSS style.
* @param string $value The CSS value.
* @param string $prefix The CSS prefix.
* @param string $suffix The CSS suffix.
* @param bool $echo Echo the styles.
* @param string $style The CSS style.
* @param string $value The CSS value.
* @param string $prefix The CSS prefix.
* @param string $suffix The CSS suffix.
* @param bool $echo Echo the styles.
*/
function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $echo = true ) {
@@ -50,7 +52,9 @@ if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) {
* Get CSS Built from Customizer Options.
* Build CSS reflecting colors, fonts and other options set in the Customizer, and return them for output.
*
* @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
* @since Twenty Twenty 1.0
*
* @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor".
*/
function twentytwenty_get_customizer_css( $type = 'front-end' ) {
@@ -78,7 +82,7 @@ if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) {
ob_start();
/**
/*
* Note Styles are applied in this order:
* 1. Element specific
* 2. Helper classes
@@ -86,7 +90,7 @@ if ( ! function_exists( 'twentytwenty_get_customizer_css' ) ) {
* This enables all helper classes to overwrite base element styles,
* meaning that any color classes applied in the block editor will
* have a higher priority than the base element styles.
*/
*/
// Front-End Styles.
if ( 'front-end' === $type ) {

View File

@@ -12,9 +12,11 @@ if ( ! function_exists( 'twentytwenty_the_theme_svg' ) ) {
* Output and Get Theme SVG.
* Output and get the SVG markup for an icon in the TwentyTwenty_SVG_Icons class.
*
* @since Twenty Twenty 1.0
*
* @param string $svg_name The name of the icon.
* @param string $group The group the icon belongs to.
* @param string $color Color code.
* @param string $group The group the icon belongs to.
* @param string $color Color code.
*/
function twentytwenty_the_theme_svg( $svg_name, $group = 'ui', $color = '' ) {
echo twentytwenty_get_theme_svg( $svg_name, $group, $color ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_theme_svg().
@@ -26,9 +28,11 @@ if ( ! function_exists( 'twentytwenty_get_theme_svg' ) ) {
/**
* Get information about the SVG icon.
*
* @since Twenty Twenty 1.0
*
* @param string $svg_name The name of the icon.
* @param string $group The group the icon belongs to.
* @param string $color Color code.
* @param string $group The group the icon belongs to.
* @param string $color Color code.
*/
function twentytwenty_get_theme_svg( $svg_name, $group = 'ui', $color = '' ) {

View File

@@ -25,8 +25,10 @@
/**
* Displays the site logo, either text or image.
*
* @param array $args Arguments for displaying the site logo either as an image or text.
* @param bool $echo Echo or return the HTML.
* @since Twenty Twenty 1.0
*
* @param array $args Arguments for displaying the site logo either as an image or text.
* @param bool $echo Echo or return the HTML.
* @return string Compiled HTML based on our arguments.
*/
function twentytwenty_site_logo( $args = array(), $echo = true ) {
@@ -50,8 +52,10 @@ function twentytwenty_site_logo( $args = array(), $echo = true ) {
/**
* Filters the arguments for `twentytwenty_site_logo()`.
*
* @param array $args Parsed arguments.
* @param array $defaults Function's default arguments.
* @since Twenty Twenty 1.0
*
* @param array $args Parsed arguments.
* @param array $defaults Function's default arguments.
*/
$args = apply_filters( 'twentytwenty_site_logo_args', $args, $defaults );
@@ -70,6 +74,8 @@ function twentytwenty_site_logo( $args = array(), $echo = true ) {
/**
* Filters the arguments for `twentytwenty_site_logo()`.
*
* @since Twenty Twenty 1.0
*
* @param string $html Compiled HTML based on our arguments.
* @param array $args Parsed arguments.
* @param string $classname Class name based on current view, home or single.
@@ -88,6 +94,8 @@ function twentytwenty_site_logo( $args = array(), $echo = true ) {
/**
* Displays the site description.
*
* @since Twenty Twenty 1.0
*
* @param bool $echo Echo or return the html.
* @return string The HTML to display.
*/
@@ -107,9 +115,9 @@ function twentytwenty_site_description( $echo = true ) {
*
* @since Twenty Twenty 1.0
*
* @param string $html The HTML to display.
* @param string $description Site description via `bloginfo()`.
* @param string $wrapper The format used in case you want to reuse it in a `sprintf()`.
* @param string $html The HTML to display.
* @param string $description Site description via `bloginfo()`.
* @param string $wrapper The format used in case you want to reuse it in a `sprintf()`.
*/
$html = apply_filters( 'twentytwenty_site_description', $html, $description, $wrapper );
@@ -127,6 +135,8 @@ function twentytwenty_site_description( $echo = true ) {
/**
* Checks if the specified comment is written by the author of the post commented on.
*
* @since Twenty Twenty 1.0
*
* @param object $comment Comment data.
* @return bool
*/
@@ -153,6 +163,8 @@ function twentytwenty_is_comment_by_post_author( $comment = null ) {
* Filter the comment reply link to add a class indicating it should not use JS slow-scroll, as it
* makes it scroll to the wrong position on the page.
*
* @since Twenty Twenty 1.0
*
* @param string $link Link to the top of the page.
* @return string Link to the top of the page.
*/
@@ -174,6 +186,8 @@ add_filter( 'comment_reply_link', 'twentytwenty_filter_comment_reply_link' );
*
* If it's a single post, outputs the post meta values specified in the Customizer settings.
*
* @since Twenty Twenty 1.0
*
* @param int $post_id The ID of the post for which the post meta should be output.
* @param string $location Which post meta location to output single or preview.
*/
@@ -186,6 +200,8 @@ function twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' )
/**
* Filters the edit post link to add an icon and use the post meta structure.
*
* @since Twenty Twenty 1.0
*
* @param string $link Anchor tag for the edit link.
* @param int $post_id Post ID.
* @param string $text Anchor text.
@@ -223,7 +239,9 @@ add_filter( 'edit_post_link', 'twentytwenty_edit_post_link', 10, 3 );
/**
* Retrieves the post meta.
*
* @param int $post_id The ID of the post.
* @since Twenty Twenty 1.0
*
* @param int $post_id The ID of the post.
* @param string $location The location where the meta is shown.
*/
function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) {
@@ -241,7 +259,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
*
* @since Twenty Twenty 1.0
*
* @param array Array of post types
* @param array Array of post types.
*/
$disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) );
@@ -263,10 +281,10 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
* @since Twenty Twenty 1.0
*
* @param array $args {
* @type string 'author'
* @type string 'post-date'
* @type string 'comments'
* @type string 'sticky'
* @type string $author
* @type string $post-date
* @type string $comments
* @type string $sticky
* }
*/
$post_meta = apply_filters(
@@ -291,7 +309,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
* @since Twenty Twenty 1.0
*
* @param array $args {
* @type string 'tags'
* @type string $tags
* }
*/
$post_meta = apply_filters(
@@ -499,6 +517,8 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
* Filter the class applied to wp_list_pages() items with children to match the menu class, to simplify.
* styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set.
*
* @since Twenty Twenty 1.0
*
* @param string[] $css_class An array of CSS classes to be applied to each list item.
* @param WP_Post $page Page data object.
* @param int $depth Depth of page, used for padding.
@@ -534,6 +554,8 @@ add_filter( 'page_css_class', 'twentytwenty_filter_wp_list_pages_item_classes',
/**
* Adds a Sub Nav Toggle to the Expanded Menu and Mobile Menu.
*
* @since Twenty Twenty 1.0
*
* @param stdClass $args An object of wp_nav_menu() arguments.
* @param WP_Post $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
@@ -580,6 +602,8 @@ add_filter( 'nav_menu_item_args', 'twentytwenty_add_sub_toggles_to_main_menu', 1
/**
* Displays SVG icons in social links menu.
*
* @since Twenty Twenty 1.0
*
* @param string $item_output The menu item's starting HTML output.
* @param WP_Post $item Menu item data object.
* @param int $depth Depth of the menu. Used for padding.
@@ -609,6 +633,8 @@ add_filter( 'walker_nav_menu_start_el', 'twentytwenty_nav_menu_social_icons', 10
* Adds 'no-js' class.
*
* If we're missing JavaScript support, the HTML element will have a 'no-js' class.
*
* @since Twenty Twenty 1.0
*/
function twentytwenty_no_js_class() {
@@ -623,6 +649,8 @@ add_action( 'wp_head', 'twentytwenty_no_js_class' );
/**
* Adds conditional body classes.
*
* @since Twenty Twenty 1.0
*
* @param array $classes Classes added to the body tag.
* @return array Classes added to the body tag.
*/
@@ -724,11 +752,20 @@ add_filter( 'body_class', 'twentytwenty_body_classes' );
/**
* Filters the archive title and styles the word before the first colon.
*
* @since Twenty Twenty 1.0
*
* @param string $title Current archive title.
* @return string Current archive title.
*/
function twentytwenty_get_the_archive_title( $title ) {
/**
* Filters the regular expression used to style the word before the first colon.
*
* @since Twenty Twenty 1.0
*
* @param array $regex An array of regular expression pattern and replacement.
*/
$regex = apply_filters(
'twentytwenty_get_the_archive_title_regex',
array(
@@ -756,6 +793,8 @@ add_filter( 'get_the_archive_title', 'twentytwenty_get_the_archive_title' );
/**
* Toggles animation duration in milliseconds.
*
* @since Twenty Twenty 1.0
*
* @return int Duration in milliseconds
*/
function twentytwenty_toggle_duration() {
@@ -779,6 +818,8 @@ function twentytwenty_toggle_duration() {
* with the optional prefix. As such the returned value is not universally unique,
* but it is unique across the life of the PHP process.
*
* @since Twenty Twenty 1.0
*
* @see wp_unique_id() Themes requiring WordPress 5.0.3 and greater should use this instead.
*
* @param string $prefix Prefix for the returned ID.

View File

@@ -1,6 +1,6 @@
{
"name": "twentytwenty",
"version": "1.7.0",
"version": "1.8.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "twentytwenty",
"version": "1.7.0",
"version": "1.8.0",
"description": "Default WP Theme",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",

View File

@@ -1,7 +1,7 @@
=== Twenty Twenty ===
Contributors: the WordPress team
Tested up to: 5.8
Stable tag: 1.7
Stable tag: 1.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -22,6 +22,11 @@ you pick, ensuring a high, accessible color contrast for your visitors.
== Changelog ==
= 1.8 =
* Released: July 20, 2021
https://wordpress.org/support/article/twenty-twenty-changelog/#Version_1.8
= 1.7 =
* Released: March 9, 2021

View File

@@ -1,7 +1,7 @@
/*
Theme Name: Twenty Twenty
Text Domain: twentytwenty
Version: 1.7
Version: 1.8
Requires at least: 4.7
Requires PHP: 5.2.4
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.

View File

@@ -1,7 +1,7 @@
/*
Theme Name: Twenty Twenty
Text Domain: twentytwenty
Version: 1.7
Version: 1.8
Requires at least: 4.7
Requires PHP: 5.2.4
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.

View File

@@ -59,7 +59,7 @@
*
* @since Twenty Twenty 1.0
*
* @param bool Whether to show the categories in article header, Default true.
* @param bool Whether to show the categories in article header. Default true.
*/
$show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );
@@ -162,10 +162,10 @@
get_template_part( 'template-parts/navigation' );
}
/**
* Output comments wrapper if it's a post, or if comments are open,
/*
* Output comments wrapper if it's a post, or if comments are open,
* or if there's a comment number and check for password.
* */
*/
if ( ( is_single() || is_page() ) && ( comments_open() || get_comments_number() ) && ! post_password_required() ) {
?>

View File

@@ -74,10 +74,10 @@
}
/**
* Output comments wrapper if it's a post, or if comments are open,
/*
* Output comments wrapper if it's a post, or if comments are open,
* or if there's a comment number and check for password.
* */
*/
if ( ( is_single() || is_page() ) && ( comments_open() || get_comments_number() ) && ! post_password_required() ) {
?>

View File

@@ -25,7 +25,7 @@ if ( is_singular() ) {
*
* @since Twenty Twenty 1.0
*
* @param bool Whether to show the categories in header, Default true.
* @param bool Whether to show the categories in header. Default true.
*/
$show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );

View File

@@ -9,19 +9,21 @@
* @since Twenty Twenty 1.0
*/
/**
* Translators:
* This text contains HTML to allow the text to be shorter on small screens.
* The text inside the span with the class nav-short will be hidden on small screens.
*/
$prev_text = sprintf(
'%s <span class="nav-prev-text">%s</span>',
'<span aria-hidden="true">&larr;</span>',
/*
* Translators: This text contains HTML to allow the text to be shorter on small screens.
* The text inside the span with the class nav-short will be hidden on small screens.
*/
__( 'Newer <span class="nav-short">Posts</span>', 'twentytwenty' )
);
$next_text = sprintf(
'<span class="nav-next-text">%s</span> %s',
/*
* Translators: This text contains HTML to allow the text to be shorter on small screens.
* The text inside the span with the class nav-short will be hidden on small screens.
*/
__( 'Older <span class="nav-short">Posts</span>', 'twentytwenty' ),
'<span aria-hidden="true">&rarr;</span>'
);

View File

@@ -1,5 +1,5 @@
/**
* Custom Color Overrides
*
* This file is automatically populated if the user chooses custom colors in the Customzier.
* This file is automatically populated if the user chooses custom colors in the Customizer.
*/

View File

@@ -324,6 +324,19 @@ select {
background-position: right 10px top 60%;
}
select:focus {
border: 3px solid #39414d;
border-radius: 0;
color: #28303d;
font-size: 1.125rem;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
padding: 10px 30px 10px 10px;
background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2328303d'><polygon points='0,0 10,0 5,5'/></svg>") no-repeat;
background-position: right 10px top 60%;
}
/*
* text-underline-offset doesn't work in Chrome at all 👎
* But looks nice in Safari/Firefox, so let's keep it and

View File

@@ -9,7 +9,7 @@ Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the
Requires at least: 5.3
Tested up to: 5.8
Requires PHP: 5.6
Version: 1.3
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyone

View File

@@ -449,7 +449,8 @@ figcaption,
padding: 0;
}
select {
select,
select:focus {
border: var(--form--border-width) solid var(--form--border-color);
border-radius: var(--form--border-radius);
color: var(--form--color-text);

View File

@@ -1,6 +1,8 @@
/**
* Get luminance from a HEX color.
*
* @since Twenty Twenty-One 1.0
*
* @param {string} hex - The hex color.
*
* @return {number} - Returns the luminance, number between 0 and 255.
@@ -13,6 +15,8 @@ function twentytwentyoneGetHexLum( hex ) { // jshint ignore:line
/**
* Get RGB from HEX.
*
* @since Twenty Twenty-One 1.0
*
* @param {string} hex - The hex color.
*
* @return {Object} - Returns an object {r, g, b}

View File

@@ -5,6 +5,8 @@
* with a few tweaks:
* Removed the hue picker script because we don't use it here
* Added the "palettes" argument in wpColorPicker().
*
* @since Twenty Twenty-One 1.0
*/
wp.customize.controlConstructor['twenty-twenty-one-color'] = wp.customize.Control.extend( {
ready: function() {

View File

@@ -7,6 +7,8 @@
/**
* Polyfill for Element.closest() because we need to support IE11.
*
* @since Twenty Twenty-One 1.0
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
*/
if ( ! Element.prototype.matches ) {
@@ -29,6 +31,8 @@ if ( ! Element.prototype.closest ) {
/**
* Polyfill for NodeList.foreach() because we need to support IE11.
*
* @since Twenty Twenty-One 1.0
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
*/
if ( window.NodeList && ! NodeList.prototype.forEach ) {

View File

@@ -7,9 +7,10 @@
/**
* Toggle an attribute's value
*
* @since Twenty Twenty-One 1.0
*
* @param {Element} el - The element.
* @param {boolean} withListeners - Whether we want to add/remove listeners or not.
* @since Twenty Twenty-One 1.0
*/
function twentytwentyoneToggleAriaExpanded( el, withListeners ) {
if ( 'true' !== el.getAttribute( 'aria-expanded' ) ) {
@@ -37,6 +38,8 @@ function twentytwentyoneCollapseMenuOnClickOutside( event ) {
/**
* Changes the position of submenus so they always fit the screen horizontally.
*
* @since Twenty Twenty-One 1.0
*
* @param {Element} li - The li element.
*/
function twentytwentyoneSubmenuPosition( li ) {
@@ -65,6 +68,8 @@ function twentytwentyoneSubmenuPosition( li ) {
/**
* Handle clicks on submenu toggles.
*
* @since Twenty Twenty-One 1.0
*
* @param {Element} el - The element.
*/
function twentytwentyoneExpandSubMenu( el ) { // jshint ignore:line
@@ -92,6 +97,8 @@ function twentytwentyoneExpandSubMenu( el ) { // jshint ignore:line
/**
* Menu Toggle Behaviors
*
* @since Twenty Twenty-One 1.0
*
* @param {string} id - The ID.
*/
var navMenu = function( id ) {
@@ -112,9 +119,12 @@ function twentytwentyoneExpandSubMenu( el ) { // jshint ignore:line
mobileButton.focus();
};
}
/**
* Trap keyboard navigation in the menu modal.
* Adapted from TwentyTwenty
* Adapted from Twenty Twenty.
*
* @since Twenty Twenty-One 1.0
*/
document.addEventListener( 'keydown', function( event ) {
var modal, elements, selectors, lastEl, firstEl, activeEl, tabKey, shiftKey, escKey;
@@ -158,7 +168,9 @@ function twentytwentyoneExpandSubMenu( el ) { // jshint ignore:line
/**
* Close menu and scroll to anchor when an anchor link is clicked.
* Adapted from TwentyTwenty.
* Adapted from Twenty Twenty.
*
* @since Twenty Twenty-One 1.1
*/
document.addEventListener( 'click', function( event ) {
// If target onclick is <a> with # within the href attribute

View File

@@ -6,6 +6,8 @@
* This is the source file for what is minified in the twenty_twenty_one_skip_link_focus_fix() PHP function.
*
* Learn more: https://git.io/vWdr2
*
* @since Twenty Twenty-One 1.0
*/
( function() {
var isIe = /(trident|msie)/i.test( navigator.userAgent );

View File

@@ -7,7 +7,7 @@ Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the
Requires at least: 5.3
Tested up to: 5.8
Requires PHP: 5.6
Version: 1.3
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyone

View File

@@ -1,4 +1,5 @@
select {
select,
select:focus {
border: var(--form--border-width) solid var(--form--border-color);
border-radius: var(--form--border-radius);
color: var(--form--color-text);

View File

@@ -15,8 +15,6 @@ class Twenty_Twenty_One_Custom_Colors {
/**
* Instantiate the object.
*
* @access public
*
* @since Twenty Twenty-One 1.0
*/
public function __construct() {
@@ -34,12 +32,9 @@ class Twenty_Twenty_One_Custom_Colors {
/**
* Determine the luminance of the given color and then return #fff or #000 so that the text is always readable.
*
* @access public
*
* @param string $background_color The background color.
*
* @since Twenty Twenty-One 1.0
*
* @param string $background_color The background color.
* @return string (hex color)
*/
public function custom_get_readable_color( $background_color ) {
@@ -53,12 +48,9 @@ class Twenty_Twenty_One_Custom_Colors {
* Both text and link colors needs to be updated.
* The code below needs to be updated, because the colors are no longer theme mods.
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @param string|null $context Can be "editor" or null.
*
* @return string
*/
public function generate_custom_color_variables( $context = null ) {
@@ -87,8 +79,6 @@ class Twenty_Twenty_One_Custom_Colors {
/**
* Customizer & frontend custom color variables.
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @return void
@@ -102,8 +92,6 @@ class Twenty_Twenty_One_Custom_Colors {
/**
* Editor custom color variables.
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @return void
@@ -127,12 +115,9 @@ class Twenty_Twenty_One_Custom_Colors {
*
* @static
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @param string $hex The HEX color.
*
* @return int Returns a number (0-255).
*/
public static function get_relative_luminance_from_hex( $hex ) {
@@ -158,12 +143,9 @@ class Twenty_Twenty_One_Custom_Colors {
/**
* Adds a class to <body> if the background-color is dark.
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @param array $classes The existing body classes.
*
* @return array
*/
public function body_class( $classes ) {

View File

@@ -27,8 +27,6 @@ class Twenty_Twenty_One_Customize_Color_Control extends WP_Customize_Color_Contr
/**
* Colorpicker palette
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @var array
@@ -38,8 +36,6 @@ class Twenty_Twenty_One_Customize_Color_Control extends WP_Customize_Color_Contr
/**
* Enqueue control related scripts/styles.
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @return void
@@ -60,8 +56,6 @@ class Twenty_Twenty_One_Customize_Color_Control extends WP_Customize_Color_Contr
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @uses WP_Customize_Control::to_json()

View File

@@ -29,8 +29,6 @@ class Twenty_Twenty_One_Customize_Notice_Control extends WP_Customize_Control {
*
* This simply prints the notice we need.
*
* @access public
*
* @since Twenty Twenty-One 1.0
*
* @return void

Some files were not shown because too many files have changed in this diff Show More