From 7fa66244e469bd863f0502a68c668a29eb23b328 Mon Sep 17 00:00:00 2001 From: megane9988 Date: Thu, 7 Mar 2024 12:25:07 +0800 Subject: [PATCH 01/20] Social Icons: update Medium icon (#57073) * Social Icons: update Medium icon * add also php file Co-authored-by: megane9988 Co-authored-by: t-hamano Co-authored-by: colinduwe Co-authored-by: andersnoren --- packages/block-library/src/social-link/icons/medium.js | 2 +- packages/block-library/src/social-link/index.php | 2 +- packages/block-library/src/social-link/socials-with-bg.scss | 2 +- packages/block-library/src/social-link/socials-without-bg.scss | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/social-link/icons/medium.js b/packages/block-library/src/social-link/icons/medium.js index 88de49e65be04..a3979a3ada81b 100644 --- a/packages/block-library/src/social-link/icons/medium.js +++ b/packages/block-library/src/social-link/icons/medium.js @@ -5,6 +5,6 @@ import { Path, SVG } from '@wordpress/primitives'; export const MediumIcon = () => ( - + ); diff --git a/packages/block-library/src/social-link/index.php b/packages/block-library/src/social-link/index.php index 12c2904d558c7..b1f20178d9e36 100644 --- a/packages/block-library/src/social-link/index.php +++ b/packages/block-library/src/social-link/index.php @@ -224,7 +224,7 @@ function block_core_social_link_services( $service = '', $field = '' ) { ), 'medium' => array( 'name' => 'Medium', - 'icon' => '', + 'icon' => '', ), 'patreon' => array( 'name' => 'Patreon', diff --git a/packages/block-library/src/social-link/socials-with-bg.scss b/packages/block-library/src/social-link/socials-with-bg.scss index 67528dac91457..86079515f6971 100644 --- a/packages/block-library/src/social-link/socials-with-bg.scss +++ b/packages/block-library/src/social-link/socials-with-bg.scss @@ -104,7 +104,7 @@ } .wp-social-link-medium { - background-color: #02ab6c; + background-color: #000; color: #fff; } diff --git a/packages/block-library/src/social-link/socials-without-bg.scss b/packages/block-library/src/social-link/socials-without-bg.scss index 3979123bab60b..ee364ae634afa 100644 --- a/packages/block-library/src/social-link/socials-without-bg.scss +++ b/packages/block-library/src/social-link/socials-without-bg.scss @@ -79,7 +79,7 @@ } .wp-social-link-medium { - color: #02ab6c; + color: #000; } .wp-social-link-meetup { From 9888332bc0a0f75787637d6778a15109e0477f7d Mon Sep 17 00:00:00 2001 From: Rich Collier Date: Thu, 7 Mar 2024 12:55:06 +0800 Subject: [PATCH 02/20] Fix typo in Dataviews Pagination and Font Collection components (#59656) Co-authored-by: rcoll --- packages/dataviews/src/pagination.js | 4 ++-- .../global-styles/font-library-modal/font-collection.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/dataviews/src/pagination.js b/packages/dataviews/src/pagination.js index 4e44b5e9ca4b2..a1e3c644cb5ba 100644 --- a/packages/dataviews/src/pagination.js +++ b/packages/dataviews/src/pagination.js @@ -36,11 +36,11 @@ const Pagination = memo( function Pagination( { { createInterpolateElement( sprintf( // translators: %s: Total number of pages. - _x( 'Page of %s', 'paging' ), + _x( 'Page of %s', 'paging' ), totalPages ), { - CurrenPageControl: ( + CurrentPageControl: ( of %s', + 'Page of %s', 'paging' ), totalPages ), { - CurrenPageControl: ( + CurrentPageControl: ( Date: Thu, 7 Mar 2024 11:08:52 +0530 Subject: [PATCH 03/20] Font Library: Fix typo in upload text (#59655) A typo in font uploader string Co-authored-by: mujuonly --- .../components/global-styles/font-library-modal/upload-fonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/upload-fonts.js b/packages/edit-site/src/components/global-styles/font-library-modal/upload-fonts.js index f96057fb62ae4..f5e3c9f7ac255 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/upload-fonts.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/upload-fonts.js @@ -199,7 +199,7 @@ function UploadFonts() { { __( - 'Uploaded fonts appear in your library and can be used in your theme. Supported formats: .tff, .otf, .woff, and .woff2.' + 'Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2.' ) } From 581a614bf35cc393048ac1f745c21fc5efa5a759 Mon Sep 17 00:00:00 2001 From: Musannif Zahir Date: Thu, 7 Mar 2024 14:18:30 +0800 Subject: [PATCH 04/20] Update React documentation links for forms (#59657) Co-authored-by: mzahir Co-authored-by: tellthemachines Co-authored-by: helgatheviking --- packages/components/src/form-token-field/README.md | 2 +- packages/components/src/form-token-field/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/form-token-field/README.md b/packages/components/src/form-token-field/README.md index 41083789f1340..f78aec8301495 100644 --- a/packages/components/src/form-token-field/README.md +++ b/packages/components/src/form-token-field/README.md @@ -4,7 +4,7 @@ A `FormTokenField` is a field similar to the tags and categories fields in the i Up to one hundred suggestions that match what the user has typed so far will be shown from which the user can pick from (auto-complete). Tokens are separated by the "," character. Suggestions can be selected with the up or down arrows and added with the tab or enter key. -The `value` property is handled in a manner similar to controlled form components. See [Forms](http://facebook.github.io/react/docs/forms.html) in the React Documentation for more information. +The `value` property is handled in a manner similar to controlled form components. See [Forms](https://react.dev/reference/react-dom/components#form-components) in the React Documentation for more information. ## Keyboard Accessibility diff --git a/packages/components/src/form-token-field/index.tsx b/packages/components/src/form-token-field/index.tsx index 82e80ff08e2cf..50dc8d66b8786 100644 --- a/packages/components/src/form-token-field/index.tsx +++ b/packages/components/src/form-token-field/index.tsx @@ -40,7 +40,7 @@ const identity = ( value: string ) => value; * Tokens are separated by the "," character. Suggestions can be selected with the up or down arrows and added with the tab or enter key. * * The `value` property is handled in a manner similar to controlled form components. - * See [Forms](http://facebook.github.io/react/docs/forms.html) in the React Documentation for more information. + * See [Forms](https://react.dev/reference/react-dom/components#form-components) in the React Documentation for more information. */ export function FormTokenField( props: FormTokenFieldProps ) { const { From 686bd6d603cbb62e9562d8c463099eaca9f1731b Mon Sep 17 00:00:00 2001 From: Hiroshi Urabe Date: Thu, 7 Mar 2024 14:43:28 +0800 Subject: [PATCH 05/20] add optional chain to length. (#59658) --- .../edit-site/src/components/global-styles/screen-colors.js | 2 +- .../edit-site/src/components/global-styles/screen-typography.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/screen-colors.js b/packages/edit-site/src/components/global-styles/screen-colors.js index 18c90d7296c4c..c843297a67398 100644 --- a/packages/edit-site/src/components/global-styles/screen-colors.js +++ b/packages/edit-site/src/components/global-styles/screen-colors.js @@ -47,7 +47,7 @@ function ScreenColors() { />
- { !! colorVariations.length && ( + { !! colorVariations?.length && ( ) } diff --git a/packages/edit-site/src/components/global-styles/screen-typography.js b/packages/edit-site/src/components/global-styles/screen-typography.js index 5731b5c043fab..2ff58445c24c1 100644 --- a/packages/edit-site/src/components/global-styles/screen-typography.js +++ b/packages/edit-site/src/components/global-styles/screen-typography.js @@ -40,7 +40,7 @@ function ScreenTypography() { />
- { !! typographyVariations.length && ( + { !! typographyVariations?.length && ( ) } { ! window.__experimentalDisableFontLibrary && ( From 46303d279824ec9f03490d4084bf37d073e63c93 Mon Sep 17 00:00:00 2001 From: Ella <4710635+ellatrix@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:01:16 +0800 Subject: [PATCH 06/20] List view: fix stuck moving animation on Enter (#59644) Co-authored-by: ellatrix Co-authored-by: andrewserong --- .../block-editor/src/components/use-moving-animation/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-editor/src/components/use-moving-animation/index.js b/packages/block-editor/src/components/use-moving-animation/index.js index 4a66fe6fb6e63..a6ac0968ca16f 100644 --- a/packages/block-editor/src/components/use-moving-animation/index.js +++ b/packages/block-editor/src/components/use-moving-animation/index.js @@ -142,6 +142,7 @@ function useMovingAnimation( { triggerAnimationOnChange, clientId } ) { return () => { controller.stop(); + controller.set( { x: 0, y: 0 } ); }; }, [ previous, From 059b19cd3d8619fca185eddf92fb00601b405a42 Mon Sep 17 00:00:00 2001 From: strangehill Date: Thu, 7 Mar 2024 15:33:38 +0800 Subject: [PATCH 07/20] =?UTF-8?q?Replace=20=E2=80=9Csidebar=E2=80=9D=20wit?= =?UTF-8?q?h=20=E2=80=9Cpanel=E2=80=9D=20in=20README.md=20(#59664)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Begins to address issue #57546 Co-authored-by: Strangehill --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index bbe3f8e0290e7..31471a9928b2c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -12,7 +12,7 @@ The elements highlighted are: 1. **Inserter:** A panel for inserting blocks into the content canvas 2. **Content canvas:** The content editor, which holds content created with blocks -3. **Settings Sidebar:** A sidebar panel for configuring a block’s settings when selected or the settings of the post +3. **Settings Panel** A panel for configuring a block’s settings when selected or the settings of the post Through the Block Editor, you create content modularly using blocks. Many [blocks](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/) are available in WordPress by default, and you can also [create your own](https://developer.wordpress.org/block-editor/getting-started/create-block/). From 61367a62e105be5cbc614e4307aa1f9c6f4ebff7 Mon Sep 17 00:00:00 2001 From: Andrew Fleming Date: Thu, 7 Mar 2024 15:37:13 +0800 Subject: [PATCH 08/20] Plugin short description less than 150 characters. (#59661) Co-authored-by: andrewfleming Co-authored-by: tellthemachines Co-authored-by: swissspidy --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 8ebcfd1406b0d..5ce8ef1a600e7 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Stable tag: V.V.V License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html -The Gutenberg plugin provides editing, customization, and site building features to WordPress. This beta plugin allows you to test bleeding-edge features before they land in future WordPress releases. +The Gutenberg plugin adds editing, customization, and site building to WordPress. Use it to test beta features before their official release. == Description == From 18893525ecd99164e664452354c464c67426a268 Mon Sep 17 00:00:00 2001 From: Huzaifa Al Mesbah Date: Thu, 7 Mar 2024 13:43:34 +0600 Subject: [PATCH 09/20] Fix: Typo correction in tff to ttf (#59665) Co-authored-by: huzaifaalmesbah --- .../fonts-block-theme/styles/variation-new-font-family.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpunit/data/themedir1/fonts-block-theme/styles/variation-new-font-family.json b/phpunit/data/themedir1/fonts-block-theme/styles/variation-new-font-family.json index 01c6027835f97..0af954cbecaa8 100644 --- a/phpunit/data/themedir1/fonts-block-theme/styles/variation-new-font-family.json +++ b/phpunit/data/themedir1/fonts-block-theme/styles/variation-new-font-family.json @@ -15,7 +15,7 @@ "fontStyle": "normal", "fontWeight": "400", "src": [ - "file:./assets/fonts/open-sans/OpenSans-VariableFont_wdth,wght.tff" + "file:./assets/fonts/open-sans/OpenSans-VariableFont_wdth,wght.ttf" ] }, { @@ -24,7 +24,7 @@ "fontStyle": "italic", "fontWeight": "400", "src": [ - "file:./assets/fonts/open-sans/OpenSans-Italic-VariableFont_wdth,wght.tff" + "file:./assets/fonts/open-sans/OpenSans-Italic-VariableFont_wdth,wght.ttf" ] } ] From e286e0a340f8282c66f0d97865d80f39d81f5495 Mon Sep 17 00:00:00 2001 From: Jaclyn Chen Date: Thu, 7 Mar 2024 16:00:09 +0800 Subject: [PATCH 10/20] Replace `isSmall` prop with `size` in `NavigationMenuSelector` (#59667) * Replace `isSmall` with small `size` prop in `NavigationMenuSelector`. * Add a test case to ensure `size="small"` on a `Button` sets the class to `is-small`. Co-authored-by: jaclync --- .../src/navigation/edit/navigation-menu-selector.js | 2 +- packages/components/src/button/test/index.tsx | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/navigation/edit/navigation-menu-selector.js b/packages/block-library/src/navigation/edit/navigation-menu-selector.js index d895de770fdaf..14b6e1706ffe7 100644 --- a/packages/block-library/src/navigation/edit/navigation-menu-selector.js +++ b/packages/block-library/src/navigation/edit/navigation-menu-selector.js @@ -131,7 +131,7 @@ function NavigationMenuSelector( { { ( { onClose } ) => ( <> diff --git a/packages/components/src/button/test/index.tsx b/packages/components/src/button/test/index.tsx index 9b719f23a923f..699db1b75429f 100644 --- a/packages/components/src/button/test/index.tsx +++ b/packages/components/src/button/test/index.tsx @@ -593,6 +593,11 @@ describe( 'Button', () => { expect( screen.getByRole( 'button' ) ).toHaveClass( 'is-small' ); } ); + it( 'should have the is-small class when small class prop is passed', () => { + render(