Skip to content
Permalink
Browse files

Script Loader: Misplaced parenthesis when `wp-tinymce-lists` is added.

A closing parenthesis was misplaced in the `$scripts->add( 'wp-tinymce-lists' )` call, causing the dependencies and version to be incorrectly passed to `includes_url()` instead.

Props volodymyrkolesnykov.
Fixes: #45506.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44211 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
desrosj committed Dec 15, 2018
1 parent f948d08 commit 30684bede304e8e70288def2b6cc4587c8c46c62
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-includes/script-loader.php
@@ -60,7 +60,7 @@ function wp_register_tinymce_scripts( &$scripts, $force_uncompressed = false ) {
$scripts->add( 'wp-tinymce', includes_url( 'js/tinymce/' ) . "plugins/compat3x/plugin$dev_suffix.js", array( 'wp-tinymce-root' ), $tinymce_version );
}
$scripts->add( 'wp-tinymce-lists', includes_url( "js/tinymce/plugins/lists/plugin$suffix.js", array( 'wp-tinymce' ), $tinymce_version ) );
$scripts->add( 'wp-tinymce-lists', includes_url( "js/tinymce/plugins/lists/plugin$suffix.js" ), array( 'wp-tinymce' ), $tinymce_version );
}
/**

0 comments on commit 30684be

Please sign in to comment.
You can’t perform that action at this time.