Opened 6 years ago
Closed 6 years ago
#45506 closed defect (bug) (fixed)
wp_register_tinymce_scripts() provides incorrect arguments to includes_url()
Reported by: | volodymyrkolesnykov | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.0.2 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | Script Loader | Keywords: | fixed-5.0 has-patch |
Focuses: | Cc: |
Description
$scripts->add( 'wp-tinymce-lists', includes_url( "js/tinymce/plugins/lists/plugin$suffix.js", array( 'wp-tinymce' ), $tinymce_version ) );
should be
$scripts->add( 'wp-tinymce-lists', includes_url( "js/tinymce/plugins/lists/plugin$suffix.js" ), array( 'wp-tinymce' ), $tinymce_version );
Right now, array( 'wp-tinymce' )
is passed as $scheme
argument to includes_url()
, and according to the documentation, it should be either string
or null
, not an array
.
Attachments (1)
Change History (9)
Note: See
TracTickets for help on using
tickets.
Patch