#61754 closed defect (bug) (fixed)
Unused array_merge call?
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | Script Loader | Keywords: | has-patch |
Focuses: | Cc: |
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.
6 months 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
@
5 months ago
- Resolution fixed deleted
- Status changed from closed to 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.
Good catch! Added in [44265] / #45348.