Changes between Version 1 and Version 2 of Ticket #58664, comment 16
- Timestamp:
- 09/05/2023 08:04:41 PM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58664, comment 16
v1 v2 20 20 Seems `wp_print_inline_script_tag()` is not particularly suitable for this kind of usage. Wouldn't it be better to try to improve it instead of wrapping all "normal" scripts in WP in that PHP code? 21 21 22 Also I don't think it is a good change for `wp_print_inline_script_tag()` to accept a callback as well as a string. Seems to just mak ing it all more complexwithout much benefits. These are all "hard coded" scripts in wp-admin that can (and should) be tweaked or updated as needed.22 Also I don't think it is a good change for `wp_print_inline_script_tag()` to accept a callback as well as a string. Seems to just make it all more complex and maybe a bit confusing without much benefits. These are all "hard coded" scripts in wp-admin that can (and should) be tweaked or updated as needed.