Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #58664, comment 16


Ignore:
Timestamp:
09/05/2023 08:04:41 PM (3 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58664, comment 16

    v1 v2  
    2020Seems `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?
    2121
    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 making it all more complex without much benefits. These are all "hard coded" scripts in wp-admin that can (and should) be tweaked or updated as needed.
     22Also 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.