Make WordPress Core

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


Ignore:
Timestamp:
09/05/2023 08:03:53 PM (3 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58664, comment 16

    initial v1  
    1919
    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?
     21
     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 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.