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

WordPress Trac noreply at wordpress.org
Tue Nov 4 12:50:49 UTC 2025


#64196: Command Palette: Refactor enqueue function to remove regex.
--------------------------+--------------------
 Reporter:  cbravobernal  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.9
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 The `wp_enqueue_command_palette_assets()` function uses REGEX to remove
 all HTML tags and their contents from the menu items, so that it only
 display text.

 It was using REGEX for it, and can be replaced with the Tag Processor.

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


More information about the wp-trac mailing list