[wp-trac] [WordPress Trac] #64196: Command Palette: Refactor enqueue function to remove regex.

WordPress Trac noreply at wordpress.org
Thu Nov 6 14:18:06 UTC 2025


#64196: Command Palette: Refactor enqueue function to remove regex.
--------------------------+----------------------------
 Reporter:  cbravobernal  |       Owner:  davidbaumwald
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  6.9
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+----------------------------

Comment (by wildworks):

 > The fix is not much different than the proposed HTML API code. All we
 have to do is track depth based on opening and closing tags, or use
 `WP_HTML_Processor` and rely on its `get_depth()` report.

 @dmsnell Thank you for telling me this! I'll try this approach tomorrow.

 I might address this feedback in the same pull request as well: #64177

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


More information about the wp-trac mailing list