[wp-trac] [WordPress Trac] #35813: Warning during register shortcode with array tag

WordPress Trac noreply at wordpress.org
Fri Feb 12 14:47:13 UTC 2016


#35813: Warning during register shortcode with array tag
------------------------------+-----------------------------
 Reporter:  sebastian.pisula  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 {{{
 Warning: trim() expects parameter 1 to be string, array given in /wp-
 includes/shortcodes.php on line 92
 }}}

 I think that should be new condition:

 {{{#!php
 <?php
 if ( ! is_string( $tag ) ) { }
 }}}

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


More information about the wp-trac mailing list