Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] trunk from WordPress:trunk #69

Open
wants to merge 1,391 commits into
base: trunk
Choose a base branch
from
Open

Conversation

pull[bot]
Copy link

@pull pull bot commented Jul 20, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Copy link

github-actions bot commented Jul 20, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @leemyongpakva, @gutenbergplugin.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: leemyongpakva, gutenbergplugin.

Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: renatho <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: dhruvang21 <[email protected]>
Co-authored-by: sirreal <[email protected]>
Co-authored-by: draganescu <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: mikachan <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: Vrishabhsk <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: sabernhardt <[email protected]>
Co-authored-by: jeryj <[email protected]>
Co-authored-by: vk17-starlord <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: akasunil <[email protected]>
Co-authored-by: rmccue <[email protected]>
Co-authored-by: ajlende <[email protected]>
Co-authored-by: westonruter <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: jsnajdr <[email protected]>
Co-authored-by: mediaformat <[email protected]>
Co-authored-by: michalczaplinski <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: AnmolVerma404 <[email protected]>
Co-authored-by: SH4LIN <[email protected]>
Co-authored-by: mattrwalker <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: mreishus <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: mcsf <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: madhusudhand <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: prajapatisagar <[email protected]>
Co-authored-by: DAreRodz <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@pull pull bot added the ⤵️ pull label Jul 20, 2024
Copy link

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core.
  • Labels found: ⤵️ pull.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

MaggieCabrera and others added 27 commits October 10, 2024 17:51
* changed from using borders to use pseudo elements

* added comments

* Include frame size in the scaling calculation

Instead of adding the frame size as a border (which causes reflow issues), include the frame size in the scaling calculation so there's always a left/right gutter of the frame size.

* Account for scaling in the frame height

* Calculation in CSS

* Revert "Calculation in CSS"

This reverts commit 38de9fc.

* Add comment about why the calculation for scaling needs to happen in the JS

* Force px value for frameSize

* Restore previous frameSize var setting

* Add back line break

* Use padding top/bottom instead of before/after for top/bottom frame

* Remove more before/after css since we are using padding

---------

Co-authored-by: Jerry Jones <[email protected]>
Co-authored-by: Alex Lende <[email protected]>
Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: jeryj <[email protected]>
Co-authored-by: ajlende <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: getdave <[email protected]>
Co-authored-by: talldan <[email protected]>
…erge when merging background styles (#66002)

Backporting the current state of WordPress/wordpress-develop#7486 and adding tests.

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: mukeshpanchal27 <[email protected]>
Co-authored-by: felixarntz <[email protected]>
Co-authored-by: andrewserong < [email protected]>
Co-authored-by: joemcgill < [email protected]>
Co-authored-by: renatho <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: allilevine <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: peterwilsoncc <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: colorful-tones <[email protected]>
When navigating between the "All Patterns" tab (specifically on page 2) and the "Template Parts" tab, the patterns fail to load correctly, and a "No Results" message is displayed. This commit checks for a previous post type, and, if different, resets the pagination to page 1 to ensure the first page of new post types are shown.

---------

Co-authored-by: dhruvang21 <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: talldan <[email protected]>
* removed outdated e2 tests and added a new one

* Update test/e2e/specs/site-editor/zoom-out.spec.js

Co-authored-by: Daniel Richards <[email protected]>

* fixed canvas selector

* check the size of the iframe after scaling

* check if the canvas is separated

* reformat comments

* updated test after rebasing trunk with latest changes

* recalculate the position using padding instead of border

---------

Co-authored-by: Daniel Richards <[email protected]>
Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: talldan <[email protected]>
* Update preact packages

* Update package-lock

* Fix some EffectFn types

* Remove outdated ts-expect-error

* Add changelog

Co-authored-by: sirreal <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
* always preview style variations using desktop device type

* Improve comment

---------

Co-authored-by: draganescu <[email protected]>
Co-authored-by: getdave <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: juanfra <[email protected]>
* Add heading level curation documentation.

Co-authored-by: ndiego <[email protected]>
Co-authored-by: ryanwelcher <[email protected]>
* Fix isControlAllowed and isTemplate logic

* Remove isTemplate check when inherit is already being checked

Co-authored-by: mikachan <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: daviedR <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: oandregal <[email protected]>
Co-authored-by: mtias <[email protected]>
Co-authored-by: draganescu <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: richtabor <[email protected]>
)

Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: getdave <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
…de is not default (#66065)

Co-authored-by: talldan <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: bph <[email protected]>
* Hide grid visualizer when template locked or block editing mode is not default

* Remove unlocks
Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
* Modify box-shadow to allow transition delay

* Replace hex with

* Replace $black with currentColor

* Update changelog

---------

Co-authored-by: Marin Atanasov <[email protected]>

Co-authored-by: Vrishabhsk <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: t-hamano <[email protected]>
* Improve PostURL terminology and accessibility.

* Restore createInterpolateElement after rebase.

* Remove value truncation after PR 64053.

* Replace term URL with Permalink.

* Reduce post url intro text top margin.

Co-authored-by: afercia <[email protected]>
Co-authored-by: joedolson <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: annezazu <[email protected]>
Co-authored-by: t-hamano <[email protected]>
* style.scss direction and alignment

* editor.scss direction and alignment

* Revert changes to `editor.scss`

* Switch `left` to `initial` and add comment

Co-authored-by: sabernhardt <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ankitpanchal75 <[email protected]>
Co-authored-by: torounit <[email protected]>
* Restores setting zoom out mode to useZoomOut hook

* Fix test

---------

Co-authored-by: jeryj <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: draganescu <[email protected]>
Co-authored-by: getdave <[email protected]>
…5941)

* Fixed : Modal dialog: small improvement for elementShouldBeHidden #65829

* Refactor `elementShouldBeHidden` to combine all checks into a single return statement

* Added : PR description in changelog.md

* Removed comments from function and fixed changelog

* Removed modal details from bug fixes and moved to enhancements

* Add missing empty line to changelog.

* moved : PR details to enhancement section

* Add missing empty line to changelog.

---------

Co-authored-by: vk17-starlord <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: up1512001 <[email protected]>
Bumps the github-actions group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/cache](https://github.com/actions/cache) and [ruby/setup-ruby](https://github.com/ruby/setup-ruby).


Updates `actions/checkout` from 4.2.0 to 4.2.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@d632683...eef6144)

Updates `actions/cache` from 4.1.0 to 4.1.1
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@2cdf405...3624ceb)

Updates `ruby/setup-ruby` from 1.195.0 to 1.196.0
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb)
- [Commits](ruby/setup-ruby@086ffb1...f269373)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: ruby/setup-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: desrosj <[email protected]>
* Remove background-color and box-shadow from actions

* Shorten primary field’s text on hover or selected state

* Data Views list layout: revise for improved text truncation

* Let primary field be full with in resting state

* Remove seemingly errant border radius on item wrapper

* Unnest actions gridcells

* Fix cursor style of list items

* Update test selector

* Revert "Update test selector"

This reverts commit 59e8b7d.

* Put primary field in front if it has interactive elements

---------

Co-authored-by: colorful-tones <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: renatho <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: juanfra <[email protected]>
* Remove the verb Toggle from the Block Inserter button.

* Adjust tests.

* Try to fix performance test.

* Try to fix perf test

---------

Co-authored-by: afercia <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: draganescu <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: kristastevens <[email protected]>
Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: youknowriad <[email protected]>
- Add initial tests for image rendering

Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
* Remove bindings bootstrap functions

* Remove bootstrap calls

* Remove old filter

* Adapt unit tests

* Add compat filter in Gutenberg

* Only run script if not already registered

* Remove extra label in test

* Remove unit test

* Add backport changelog

* Return warning if any client-only prop is defined

Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: ryanwelcher <[email protected]>
t-hamano and others added 30 commits October 28, 2024 23:09
* Get subcomponent descriptions

* Add BaseControl.VisualLabel as Storybook subcomponent

* Display `children` as required prop

* BaseControl: Auto-generate readme

* Fixup

* Fixup

Co-authored-by: mirka <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: jeryj <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: draganescu <[email protected]>
* README: Add Storybook badge

* Add alt tag

Co-authored-by: tyxla <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: colorful-tones <[email protected]>
Co-authored-by: dhruvang21 <[email protected]>
)

* Given that this fixes a 6.7 regression move the code into 6.7 compat.

* Move for loop into context block

* Move backport log to 6.7

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: mcsf <[email protected]>
Co-authored-by: youknowriad <[email protected]>
* Add --targetDir flag to allow targeting a directory where to scaffold the plugin/files.

* Not using the targetDir when in --no-plugin mode

* Change the name of the flag to match others and update changelog.

* WIP commit.

* Add logic to generate the paths for the root and block files in one place.

* Add a new parameter to allow passing the path once rather than generating it in the function.

* Modify the other functions to use the generated paths.

* Update the command description.

* Update packages/create-block/CHANGELOG.md

* Refactor the handling for the root directory

* Improve the documentation for target dir

* Reorder CLI options in the docs

* Ensure that $slug is replaced.

---------

Co-authored-by: Greg Ziółkowski <[email protected]>

Co-authored-by: ryanwelcher <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: t-hamano <[email protected]>
#61375)

* Scripts: Add a --zip-root-folder argument to the plugin-zip command (#60481)

* Scripts: Change the plugin-zip command to add a folder in the plugin zip file by default

1. The plugin-zip command will now create a root folder in the zip file matching the name of the plugin. This aligns with the documentation stating that "By default, it uses Plugin Handbook best practices to discover files."
2. `--zip-root-folder` argument from my previous commit is now named `--root-folder`
3. The --root-folder argument will allow specifying a custom folder, or no folder for backwards compatibility.

Example usage:

{{{
npm run plugin-zip --root-folder='foo'
}}}

Follow-up to [61375], [60481].

Props justlevine, gziolo.

* Add CHANGELOG entry

* Update CHANGELOG.md

* Scripts: Modify plugin-zip to add no-root-folder and root-folder options
Require an argument for root-folder.
Add option no-root-folder to zip files without a root folder for backwards compatibility.
Update documentation, and changelog.
(#60481)

* Scripts: adjust message for plugin-zip command

Apply suggestions from code review. props: @gziolo

Co-authored-by: Greg Ziółkowski <[email protected]>

* Update packages/scripts/README.md

Co-authored-by: Aki Hamano <[email protected]>

---------

Co-authored-by: Greg Ziółkowski <[email protected]>
Co-authored-by: Aki Hamano <[email protected]>

Co-authored-by: nicolasgalvez <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: justlevine <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: hbhalodia <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
…ts Page cases (#66355)

* Add the correct consistent label on document bar

* Add the utililty custom hook to get the page badge based on current view

* Change the variable name to be more precise

* Update the document bar label display logic

* Address the PR feedbacks

Co-authored-by: hbhalodia <[email protected]>
Co-authored-by: Vrishabhsk <[email protected]>
Co-authored-by: afercia <[email protected]>
* Remove most of the occurrences of the verb toggle.

* Remove term panel.

Co-authored-by: afercia <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: mcsf <[email protected]>
* TabPanel: Add 40px size prop to tab Button

* Add changelog

Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: mirka <[email protected]>
…st used tags (#66566)

* PostTaxonomiesFlatTermSelector: Restore space between tag list and most used tags

* Update packages/editor/src/components/post-taxonomies/flat-term-selector.js

Co-authored-by: Lena Morita <[email protected]>

---------

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: torounit <[email protected]>
Co-authored-by: jsnajdr <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: tyxla <[email protected]>
…block_style_variations() for better performance (#66539)

* Backporting theme json performance optimizations from WordPress/wordpress-develop#7586

* Tentatively backport using `get_blocks_metadata` instead of `WP_Block_Type_Registry` to get block names.

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: mukeshpanchal27 <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.