Opened 4 years ago
Last modified 4 years ago
#54861 new enhancement
cache_javascript_headers() is not call by core
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 5.9 |
| Component: | General | Keywords: | needs-patch 2nd-opinion |
| Focuses: | Cc: |
Description
I can't where this function is used in core should we move it to depicted if its not being used?
Note: See
TracTickets for help on using
tickets.
Historical uses, unused since WP 2.5 (This is a grep over https://core.svn.wordpress.org/branches/)
./2.3/wp-includes/js/tinymce/tiny_mce_config.php: cache_javascript_headers(); ./2.2/wp-includes/js/tinymce/tiny_mce_config.php: cache_javascript_headers(); ./2.1/wp-includes/js/list-manipulation-js.php:<?php @require_once('../../wp-config.php'); cache_javascript_headers(); ?> ./2.1/wp-includes/js/wp-ajax-js.php:<?php @require_once('../../wp-config.php'); cache_javascript_headers(); ?> ./2.1/wp-includes/js/autosave-js.php:cache_javascript_headers(); ./2.1/wp-includes/js/tinymce/tiny_mce_config.php: cache_javascript_headers(); ./2.1/wp-admin/cat-js.php:cache_javascript_headers(); ./2.1/wp-admin/dbx-admin-key-js.php:cache_javascript_headers(); ./2.1/wp-admin/upload-js.php:<?php require_once('admin.php'); cache_javascript_headers(); ?>According to https://wpdirectory.net/ it's used in a handful of plugins but nothing significant.
Seems like an ideal function to be deprecated.