#61754 closed defect (bug) (fixed)
Unused array_merge call?
| Reported by: | kkmuffme | Owned by: | davidbaumwald |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.7 |
| Component: | Script Loader | Version: | 5.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
https://github.com/WordPress/wordpress-develop/blame/trunk/src/wp-includes/script-loader.php#L616
This is redundant since it's not used if not assigned.
Attachments (2)
Change History (13)
This ticket was mentioned in PR #7276 on WordPress/wordpress-develop by @akshat2802.
2 years ago
#2
- Keywords has-patch added
https://core.trac.wordpress.org/ticket/61754
This PR removes unused Array Merge call from script-loader.php
#5
@
23 months ago
- Resolution fixed
- Status closed → reopened
I believe the intention in [44265] / #45348 was to actually merge the arrays, otherwise the wp_editor_settings filter is applied in wp_tinymce_inline_scripts(), but the result is not used anywhere:
/** This filter is documented in wp-includes/class-wp-editor.php */ $editor_settings = apply_filters( 'wp_editor_settings', array( 'tinymce' => true ), 'classic-block' );
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Good catch! Added in [44265] / #45348.