Skip to content

Conversation

@enricobattocchi
Copy link
Member

@enricobattocchi enricobattocchi commented Jan 22, 2026

…se and update dependencies in package.json and yarn.lock.

Context

Summary

This PR can be summarized in the following changelog entry:

  • Replaces @wordpress/edit-post with @wordpress/editor and updates dependencies.

Relevant technical choices:

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

Relevant test scenarios

  • Changes should be tested with the browser console open
  • Changes should be tested on different posts/pages/taxonomies/custom post types/custom taxonomies
  • Changes should be tested on different editors (Default Block/Gutenberg/Classic/Elementor/other)
  • Changes should be tested on different browsers
  • Changes should be tested on multisite

Test instructions for QA when the code is in the RC

  • QA should use the same steps as above.

QA can test this PR by following these steps:

Impact check

This PR affects the following parts of the plugin, which may require extra testing:

  • Block editor interface of the Plugin. Already part of regression tests.

UI changes

  • This PR changes the UI in the plugin. I have added the 'UI change' label to this PR.

Documentation

  • I have written documentation for this change. For example, comments in the Relevant technical choices, comments in the code, documentation on Confluence / shared Google Drive / Yoast developer portal, or other.

Quality assurance

  • I have tested this code to the best of my abilities
  • I have added unittests to verify the code works as intended

Innovation

  • No innovation project is applicable for this PR.
  • This PR falls under an innovation project. I have attached the innovation label and noted the work hours.

Fixes #

…se and update dependencies in `package.json` and `yarn.lock`.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the deprecated @wordpress/edit-post package with @wordpress/editor throughout the codebase. This change aligns with WordPress's current best practices as @wordpress/edit-post has been superseded by @wordpress/editor for accessing post editor functionality.

Changes:

  • Updated package dependency from @wordpress/edit-post to @wordpress/editor in package.json
  • Replaced import statements and API calls from @wordpress/edit-post to @wordpress/editor in JavaScript files
  • Updated webpack configuration to reference the new package

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
package.json Replaces @wordpress/edit-post dependency with @wordpress/editor
js/src/duplicate-post-edit-script.js Updates imports and store references from edit-post to editor
config/webpack/webpack.config.js Updates WordPress package list to include @wordpress/editor instead of @wordpress/edit-post

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@enricobattocchi enricobattocchi merged commit 207cebb into trunk Jan 22, 2026
1 check passed
@enricobattocchi enricobattocchi deleted the fix/deprecations branch January 22, 2026 15:51
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.

1 participant