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 #183

Open
wants to merge 64 commits into
base: trunk
Choose a base branch
from
Open

Conversation

pull[bot]
Copy link

@pull pull bot commented Jan 23, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

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

…ference (#68132)

* Image size fix in lightbox

* Revert "Image size fix in lightbox"

This reverts commit 63f81c1.

* Update text description

* Description update

* Update index.js

Minor text revision

---------

Co-authored-by: karthick-murugan <[email protected]>
Co-authored-by: joedolson <[email protected]>
@pull pull bot added the ⤵️ pull label Jan 23, 2025
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, Gutenberg Plugin.
  • 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.

Copy link

github-actions bot commented Jan 23, 2025

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: @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: gutenbergplugin.

Co-authored-by: karthick-murugan <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: himanshupathak95 <[email protected]>
Co-authored-by: Infinite-Null <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: justlevine <[email protected]>
Co-authored-by: shimotmk <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: yogeshbhutkar <[email protected]>
Co-authored-by: SainathPoojary <[email protected]>
Co-authored-by: DAreRodz <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: ockham <[email protected]>
Co-authored-by: Mayank-Tripathi32 <[email protected]>
Co-authored-by: benazeer-ben <[email protected]>
Co-authored-by: peterwilsoncc <[email protected]>
Co-authored-by: grgar <[email protected]>
Co-authored-by: singhakanshu00 <[email protected]>
Co-authored-by: Gulamdastgir-Momin <[email protected]>
Co-authored-by: akasunil <[email protected]>

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

Mamaduka and others added 26 commits January 24, 2025 09:06
Relocates the backport log file for block comments to the experimental feature directory. The feature is currently experimental and will not be included in WordPress 6.8.

Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
* Editor: Standardize reduced motion handling using media queries

* Remove redundant mixin

* Editor: Fix Post Publish Panel animation sliding in reduced motion mode

Co-authored-by: himanshupathak95 <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Infinite-Null <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: shimotmk <[email protected]>
…n` (#68498)

* fix: Removed extra tooltips component in button component

* fix: label name

* fix: Removed view component

* doc: Update changelog for unreleased section

* Add heading before new changelog entry

---------

Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: ciampo <[email protected]>
* Changed Inline Documentation Order

* Changed Inline Documentation Order

Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: t-hamano <[email protected]>
* Fixed Position Issue in Dataviews

* Removed Empty Line

* Fixed Lint Issue

* Added Suggested Changes

* Added Suggested Changes

* fixed lint issue

* Fixed Lint Issue in field.js

* Added tab in js instead of space

* Fixed Lint Issue in field.js

* Fixed Lint Issue

* Fixed Lint Issue

* fixed field.js issue

* Added Suggested Changes

* fixed lint issue

* fixed lint issue

Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: pooja9712 <[email protected]>
* Navigation Submenu Block: Add example preview

Co-authored-by: himanshupathak95 <[email protected]>
Co-authored-by: carolinan <[email protected]>
…rver::handle_read_pending_messages() (#68411)

Use strings instead of integers for `signaling_server_retries`, since cookies are sent as strings.

Co-authored-by: justlevine <[email protected]>
Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: CGastrell <[email protected]>
…ue_stored_styles() (#68409)

Remove the invalid $media arg from wp_register_style() in in gutenberg_enqueue_stored_styles() and fallback to the default (all).

Co-authored-by: justlevine <[email protected]>
This PR fixes an issue in WP_Theme_JSON_Resolver_Gutenberg::get_theme_data() where the _doing_it_wrong() executes the $function_name, instead of providing a string.
The parameter has been updated to the string "add_theme_support( 'experimental-link-color' )" since that's where the user is "doing_it_wrong()`.


Co-authored-by: justlevine <[email protected]>
Bumps the github-actions group with 2 updates: [actions/setup-node](https://github.com/actions/setup-node) and [ruby/setup-ruby](https://github.com/ruby/setup-ruby).


Updates `actions/setup-node` from 4.1.0 to 4.2.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@39370e3...1d0ff46)

Updates `ruby/setup-ruby` from 1.213.0 to 1.214.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@28c4ded...1287d2b)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
  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]>
Co-authored-by: im3dabasia <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: afercia <[email protected]>
* Obviate mutation observer with resize observer for border-box

* Use `inset` to place visualizer instead of `padding`

* Omit children from resize observation

Co-authored-by: t-hamano <[email protected]>
* Use the term menu instead of navigation in nav elements labels.

* Adjust translators comments for clarity.

Co-authored-by: afercia <[email protected]>
Co-authored-by: SergeyBiryukov <[email protected]>
…rmance (#68898)

* Block Editor: Fix 'isBlockVisibleInTheInserter' selector helper performance
* Use the loop, Luke!

Unlinked contributors: ktmn.

Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: mmtr <[email protected]>
* `Spacer`: Fix changes being marked as persistent to `undo`

* Spacer: Remove unnecessary line breaks in edit.js

* `Spacer`: Simplify the usage of `__unstableMarkNextChangeAsNotPersistent`

* Refactor: Add comments to clarify the purpose of `__unstableMarkNextChangeAsNotPersistent`

* `Spacer`: Ensure changes are marked as not persistent in multiple conditions

* Spacer: Refactor `setAttributes` calls to avoid persistent changes during undo/redo operations

Co-authored-by: yogeshbhutkar <[email protected]>
Co-authored-by: stokesman <[email protected]>
…8581)

* Block Editor: Add documentation for SpacingSizesControl component

* Refactor `SpacingSizesControl` to use individual side values

* Simplify component example and documentation
- Removed unnecessary props and wrappers
- Added proper state management with useState hook
- Ensured consistent documentation between the component and README
- Replaced SpacerBlock with Example component
- Added proper imports for SpacingSizesControl and useState
- Removed unnecessary View wrapper and optional props
- Updated README to match the new implementation

* Consolidate README and update import examples

- Removed redundant description section in README
- Consolidated component description into a single paragraph
- Updated import examples to use `__experimentalSpacingSizesControl` alias
- Removed screenshot reference
- Standardized prop descriptions

Co-authored-by: Infinite-Null <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: glendaviesnz <[email protected]>
Co-authored-by: mburridge <[email protected]>
* Editor: Improve conditions for displaying new page assembler
* Add note as inline comment

Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: carolinan <[email protected]>
…oltips (#68628)

* Navigation Link: Replace missing link tooltip with ARIA label

* Navigation Link: Improve accessibility by removing tooltip in favor of visual states

* Navigation Link Block: Remove redundant aria-labels

* Navigation Link Block: Change the draft underline color from amber to red

* Restore original markup and span element.

* Adjust CSS.

* Remove extra line.

---------

Co-authored-by: himanshupathak95 <[email protected]>
Co-authored-by: afercia <[email protected]>
* docs: Update links to HTTPS

* docs: Generated build docs

* docs: Fix redirected documentation links

Co-authored-by: SainathPoojary <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
DAreRodz and others added 30 commits January 29, 2025 23:50
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
* Categories: Add Color Support

Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: mcsf <[email protected]>
…68951)

* Block Editor: Display root appender when default block is disabled
* Handle multi-selection

Unlinked contributors: virgiliud, MGabrane, alexis-magina, sweco-seerjf.

Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
* Reset editor canvas view when navigating away from CSS screen

* Added effect to reset editorCanvasContainerView when navigating away from CSS screen
* Added tracking of previous path using usePrevious hook to detect navigation changes
* Added comparison of current and previous paths to determine when to reset the view
* Reset view to undefined to ensure clean state for next CSS screen activation

* Reset editor canvas view when navigating back from CSS screen

* Added onBack handler to ScreenCSS component
* Added setEditorCanvasContainerView to reset view state
* Added missing dependencies for view state management
* Fixed Additional CSS button not working after navigation

Co-authored-by: Infinite-Null <[email protected]>
Co-authored-by: t-hamano <[email protected]>
* Block Hooks: Repurpose GB compat function
* Block Hooks: Absorb temporary wrapper block functionality into apply_block_hooks_to_content
* Remove now-obsolete logic from Post Content block
* Remove now-obsolete logic from Synced Pattern block
* Whitespace
* Use in gutenberg_insert_hooked_blocks_into_rest_response
* Remove now-obsolete variable
* Use in Navigation block
* Navigation block: Remove now-obsolete Block Hooks helpers
* Rename function
* Replace filters correctly
* Rename context to post
* Add type annotation
* Add PHPDoc
* Add backport changelog

Unlinked contributors: theMasudRana, jacobzymet.

Co-authored-by: ockham <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: rinkalpagdar <[email protected]>
Co-authored-by: PaulREnglish <[email protected]>
Co-authored-by: ryelle <[email protected]>
* RSS block border support

* Added block and spacing support for RSS block

* Doc Build

* Lint js fix

* Lint js fix

* Feed back changes

* Review changes

* Update packages/block-library/src/rss/editor.scss

Co-authored-by: Aaron Robertshaw <[email protected]>

* Update packages/block-library/src/rss/style.scss

Co-authored-by: Aaron Robertshaw <[email protected]>

* Eslint fix & Format change

---------

Co-authored-by: benazeer1909 <[email protected]>
Co-authored-by: Aaron Robertshaw <[email protected]>


Unlinked contributors: benazeerhassan1909.

Co-authored-by: benazeer-ben <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Modifies the redirects from deprecated site-editor URLs to use 302 temporary redirects rather than 301 permanent redirects. This prevents the browser from caching the redirect as the destination will differ for logged in and logged out users.

This also switches from using `wp_redirect()` to `wp_safe_redirect()` in accordance with best practices when redirecting within a WordPress site.

Follow up to #67199
Incorporating changes in WordPress/wordpress-develop#7903
See https://core.trac.wordpress.org/ticket/62585

Co-authored-by: peterwilsoncc <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
…68995)

This optional chaining is already present in 21 other lines in Gutenberg where `sizes` (in `media_details`) is indexed, but is missing on these two lines.

For some reason, `media_details` is an empty object for some of my attachments on my site, so this throws a TypeError. This change resolves this issue.

Co-authored-by: grgar <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: himanshupathak95 <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: Mayank-Tripathi32 <[email protected]>
Co-authored-by: t-hamano <[email protected]>
* Archives: Add Color Support

Co-authored-by: shail-mehta <[email protected]>
Co-authored-by: carolinan <[email protected]>
* feat: add remove button for block editor shadow panel

* refactor: simplify the markup

* refactor: revert `toggle` markup and use consistent wording

* a11y: return focus to parent button on reset

Co-authored-by: yogeshbhutkar <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: singhakanshu00 <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
* Added discord in social links.

* Remove separator color fixtures.

* Restore separator color fixture.

* Added svg version.

Co-authored-by: Gulamdastgir-Momin <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: mrfoxtalbot <[email protected]>
Co-authored-by: donalirl <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: spacedmonkey <[email protected]>
Co-authored-by: TimothyBJacobs <[email protected]>
Co-authored-by: iamtakashi <[email protected]>
* Removed custom dropdown and implemented resolution tool component

* Remove constant file and use inline constant

* Extract resolution tool logic to separate component

Co-authored-by: akasunil <[email protected]>
Co-authored-by: Mamaduka <[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.