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
Add deprecation shim for __experimentalPluginPostExcerpt
#61219
Comments
Hi, Peter. Thanks for creating this issue. 🙇♂️ The report is valid and logical. |
@retrofox @peterwilsoncc thanks, so what's the recommended approach? I have some pending code changes using |
👋 Paul, do you think you could do it following these guidelines? https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/#accessing-a-panel-programmatically |
@retrofox so you mean remove it and add a custom one? |
You don't need the __experimentalPluginPostExcerpt to customize the post excerpt panel. For instance, we created a custom post excerpt with AI in the Jetpack plugin. You can probably do something similar. |
I didn't realize that we actually nooped the component, I'm fine restoring the component as it was with a deprecation. We can noop in a future version. |
let's restore it then |
Description
wp.editPost.__experimentalPluginPostExcerpt
was exposed as an accessible API in WordPress 6.5 and subsequently deprecated in #61188 with a no-op function.This breaks backward compatibility for extenders using the API so the deprecation needs to be fixed to provide a shim for the recommended process for adding content to such panels.
Step-by-step reproduction instructions
POC plugin:
Screenshots, screen recording, code snippet
WordPress trunk
Gutenberg 4abdb39
Gutenberg trunk
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: