[wp-trac] [WordPress Trac] #45065: Include Gutenberg packages in WordPress core.
WordPress Trac
noreply at wordpress.org
Wed Oct 17 15:28:37 UTC 2018
#45065: Include Gutenberg packages in WordPress core.
-------------------------+-------------------------
Reporter: omarreiss | Owner: omarreiss
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.0
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses: javascript
-------------------------+-------------------------
Changes (by atimmer):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"43738" 43738]:
{{{
#!CommitTicketReference repository="" revision="43738"
Script loader: Adjust JS packages registration.
Adjusts the packages registration after [43723]:
* Combine the different registration functions into one
`wp_default_packages` function. To reach this goal move the prefix
logic into a function so it can be called from different locations.
Use a `static` variable there to prevent duplicate inclusion of
`version.php`.
* Call this function from the `wp_default_scripts` action by
registering it as a default filter.
* Combine some of the logic in `_WP_Editors::print_tinymce_scripts`
into `wp_register_tinymce_scripts`. The logic to force an uncompressed
TinyMCE script file stays in `_WP_Editors::force_uncompressed_tinymce`
because that logic is very specific to the classic editor.
* The script handle `wp-tinymce` is now a dependency of the `editor`
script handle. In combination with the previous item, this makes the
classic editor work.
* Adjust the syntax of the script paths to be more consistent with
other WordPress code.
* Always use `"production"` mode for the media files to prevent people
from inadvertently committing development files.
Props pento, omarreiss.
Fixes #45065.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45065#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list