[wp-trac] [WordPress Trac] #57832: Multiple classes should be in separate files (class-wp-block-parser.php)
WordPress Trac
noreply at wordpress.org
Tue Jun 27 00:43:58 UTC 2023
#57832: Multiple classes should be in separate files (class-wp-block-parser.php)
----------------------------------------------+----------------------------
Reporter: aristath | Owner:
| SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.3
Component: Editor | Version: 6.2
Severity: normal | Resolution: fixed
Keywords: has-patch commit gutenberg-merge | Focuses: coding-
| standards
----------------------------------------------+----------------------------
Changes (by peterwilsoncc):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"56048" 56048]:
{{{
#!CommitTicketReference repository="" revision="56048"
Editor: Update block-serialization-default-parser package for WP 6.3 Beta
1.
Update the `@wordpress/block-serialization-default-parser` to 4.35.1 for
WordPress 6.3 Beta 1. These changes split the following classes in to
their own files in order to match the WordPress PHP coding standards:
* `WP_Block_Parser_Block`
* `WP_Block_Parser_Frame`
* `WP_Block_Parser`
These classes were previously all included in the `src/wp-includes/class-
wp-block-parser.php` file. In order to maintain backward compatibly for
developers requiring the file directly, the relocated classes are replaced
with `require_once` calls in the original file.
In order to retain the commit history of the new files, they have been
created using the `svn copy` command.
Props aristath, rajanpanchal2028, jrf, SergeyBiryukov, costdev, manfcarlo,
spacedmonkey, mukesh27, isabel_brison, dd32.
Fixes #57832.
See #58623.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57832#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list