| @@ -179,11 +179,17 @@ | ||
| 179 | 179 | $box = $this; |
| 180 | 180 | |
| 181 | 181 | // replace boxzilla specific shortcodes |
| 182 | 182 | $close_link = sprintf('<a href="javascript:Boxzilla.dismiss(%d);">', $this->ID ); |
| 183 | - $content = str_replace( '[boxzilla-close]', $close_link, $content ); | |
| 184 | - $content = str_replace( '[/boxzilla-close]', '</a>', $content ); | |
| 185 | 183 | |
| 184 | + $replacements = array( | |
| 185 | + '[boxzilla_close]' => $close_link, // accept underscore and dash here for consistency with other shortcode | |
| 186 | + '[boxzilla-close]' => $close_link, | |
| 187 | + '[/boxzilla_close]' => '</a>', | |
| 188 | + '[/boxzilla-close]' => '</a>', | |
| 189 | + ); | |
| 190 | + | |
| 191 | + $content = str_replace( array_keys( $replacements ), array_values( $replacements ), $content ); | |
| 186 | 192 | |
| 187 | 193 | /** |
| 188 | 194 | * Filters the HTML for the box content |
| 189 | 195 | * |