[wp-trac] Re: [WordPress Trac] #9955: Missing preg_quote parameters
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 23 22:51:12 GMT 2009
#9955: Missing preg_quote parameters
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: General | Version:
Severity: normal | Keywords: has-patch commit early
-------------------------------+--------------------------------------------
Comment(by Denis-de-Bernardy):
cool. the one for shortcodes is unneeded if we change add_shortcode() to
use:
{{{
if ( is_callable($func) )
$shortcode_tags[$tag] = $func;
}}}
to something like:
{{{
$tag = sanitize_title($tag);
if ( is_callable($func) )
$shortcode_tags[$tag] = $func;
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9955#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list