Opened 8 years ago
Closed 8 years ago
#45506 closed defect (bug) (fixed)
wp_register_tinymce_scripts() provides incorrect arguments to includes_url()
| Reported by: | volodymyrkolesnykov | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.0.2 |
| Component: | Script Loader | Version: | 5.0 |
| Severity: | normal | Keywords: | fixed-5.0 has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch