[wp-trac] [WordPress Trac] #57795: [@wordpress packages] Make the safeguard for using private APIs opt-out rather than opt-in
WordPress Trac
noreply at wordpress.org
Thu Feb 23 10:43:54 UTC 2023
#57795: [@wordpress packages] Make the safeguard for using private APIs opt-out
rather than opt-in
--------------------------+--------------------
Reporter: zieladam | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 6.2
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+--------------------
Summary: The current system of sharing private APIs in Gutenberg
(WordPress/gutenberg#46131) includes a safeguard to prevent the same
module from opting-in twice. However, this safeguard is only intended for
WordPress core and not for the released @wordpress packages. As a result,
developers must currently explicitly disable this check in order to
install the @wordpress packages. Some developers have reported troubles
with updating these packages to the latest version.
This Trac ticket proposes to make the check for sharing private APIs opt-
out for the @wordpress packages. This change would be implemented by
setting the ALLOW_EXPERIMENT_REREGISTRATION to false in the WordPress
core, allowing the Gutenberg plugin to use true as the default value.
Impact: This change would streamline the process for installing the
@wordpress packages, making it easier for developers to use these packages
in their projects.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57795>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list