[wp-trac] [WordPress Trac] #28030: cast $content as a string when calling do_shortcode()
    WordPress Trac 
    noreply at wordpress.org
       
    Fri Apr 25 18:57:16 UTC 2014
    
    
  
#28030: cast $content as a string when calling do_shortcode()
--------------------------+------------------------------
 Reporter:  webstract     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Shortcodes    |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Comment (by webstract):
 Replying to [comment:4 ocean90]:
 > You can't cast an array to a string. It should give you a array to
 string conversion notice. $content should be always a string.
 >
 > What is the code of `make_more_shortcodes()`?
 This is the `make_more_shortcodes()` function...
 {{{
 function make_more_shortcodes($atts)
 {
         return do_shortcode(preg_replace('/~([^{|}]*)~/', "[$1]", $atts));
 }
 }}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28030#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list