[wp-trac] [WordPress Trac] #45506: wp_register_tinymce_scripts() provides incorrect arguments to includes_url()

WordPress Trac noreply at wordpress.org
Thu Dec 6 21:44:31 UTC 2018


#45506: wp_register_tinymce_scripts() provides incorrect arguments to
includes_url()
---------------------------------+-----------------------------
 Reporter:  volodymyrkolesnykov  |      Owner:  (none)
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  Awaiting Review
Component:  General              |    Version:  5.0
 Severity:  normal               |   Keywords:
  Focuses:                       |
---------------------------------+-----------------------------
 {{{#!php
 $scripts->add( 'wp-tinymce-lists', includes_url(
 "js/tinymce/plugins/lists/plugin$suffix.js", array( 'wp-tinymce' ),
 $tinymce_version ) );
 }}}

 should be

 {{{#!php
 $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`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45506>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list