[wp-trac] [WordPress Trac] #11948: Shortcode parser doesn't support hyphen in shortcode name
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 20 02:14:32 UTC 2010
#11948: Shortcode parser doesn't support hyphen in shortcode name
--------------------------+-------------------------------------------------
Reporter: ukdmbfan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Shortcodes | Version: 2.9.1
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
Comment(by wpmuguru):
This worked for me in MU 2.9.1:
{{{
function ra_shortcode_test( $atts, $content = null ) {
return 'hello world';
}
add_shortcode( 'ra-test-code', 'ra_shortcode_test' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11948#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list