Opened 5 years ago
Last modified 5 years ago
#54861 new enhancement
cache_javascript_headers() is not call by core
| Reported by: | pbearne | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | 5.9 |
| Severity: | normal | Keywords: | needs-patch 2nd-opinion |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.