[wp-trac] [WordPress Trac] #37767: Conditionally modify $tagnames in strip_shortcodes()

WordPress Trac noreply at wordpress.org
Thu Oct 27 07:19:37 UTC 2016


#37767: Conditionally modify $tagnames in strip_shortcodes()
-------------------------------------------------+-------------------------
 Reporter:  danielbachhuber                      |       Owner:
     Type:  enhancement                          |  aaroncampbell
 Priority:  normal                               |      Status:  reopened
Component:  Shortcodes                           |   Milestone:  4.7
 Severity:  normal                               |     Version:
 Keywords:  good-first-bug has-patch has-unit-   |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------
Changes (by sebastian.pisula):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 hmm, I don't know but i try use code but this don't work.

 {{{#!php
 <?php
 add_filter('strip_shortcodes_tagnames', function(){
         return array( 'gallery' );
 });
 }}}

 My content:


 {{{ before [gallery link="file" ids="603,582,580,578"] after }}}


 but this work:

 {{{ before [gallery] after }}}

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


More information about the wp-trac mailing list