[wp-trac] [WordPress Trac] #26649: escaped shortcodes should not be expanded during 'get_the_excerpt'

WordPress Trac noreply at wordpress.org
Thu Mar 27 06:06:54 UTC 2025


#26649: escaped shortcodes should not be expanded during 'get_the_excerpt'
-------------------------------------------------+-------------------------
 Reporter:  bobbingwide                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.9
Component:  Shortcodes                           |     Version:  3.7.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch good-first-bug has-unit-   |     Focuses:
  tests early                                    |
-------------------------------------------------+-------------------------

Comment (by devsahadat):

 The issue is valid, and the proposed fix correctly prevents escaped
 shortcodes from executing unexpectedly. I have tested it, and it works as
 expected, handling edge cases without side effects.

 The approach aligns with strip_shortcodes(), ensuring consistent behavior.

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


More information about the wp-trac mailing list