[wp-trac] [WordPress Trac] #59778: remove not needed function call in wp_post_preview_js

WordPress Trac noreply at wordpress.org
Thu Nov 2 12:09:54 UTC 2023


#59778: remove not needed function call in wp_post_preview_js
---------------------------+------------------------------
 Reporter:  pbearne        |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  javascript
---------------------------+------------------------------

Comment (by pbearne):

 I agree the change made by @westonruter was an improvement of what was
 there before, and having the <script> tag makes clear that you are looking
 at a block JS code.

 But in all the cases, you could not include the <script> tag and get the
 same output with one less call.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59778#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list