#1951 closed defect (bug) (fixed)
Bug: Shortcodes doesn't work
Reported by: | _DorsVenabili | Owned by: | |
---|---|---|---|
Milestone: | 1.2 | Priority: | major |
Severity: | Version: | ||
Component: | Keywords: | shortcode code post | |
Cc: |
Description
I have the last trunk version of BP and I have a function in functions.php like this:
Google Maps Shortcode
function fn_googleMaps($atts, $content = null) {
extract(shortcode_atts(array(
"width" => '640',
"height" => '480',
"src" =>
), $atts));
return '<iframe width="'.$width.'" height="'.$height.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'.$src.'"></iframe>';
}
add_shortcode("googlemap", "fn_googleMaps");
The problem is that using the last trunk version my googlemaps shortcodes worked, but not now with the last BP trunk version of today, in other words, it must to show a google map when somebody write: [googlemap src="http://www.example.com"]. It's very important to use the shortcodes when you don't want your BP users can write code in their posts.
Nothing has been changed with shortcodes - are you sure you haven'y done something that has caused this? Can you revert to a previous trunk version and test?