PluginProbe
Boxzilla – WordPress Popup Builder / 3.2
Boxzilla – WordPress Popup Builder v3.2
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
← All changes | src/class-box.php +8 -2 3.1.153.2 View file →
@@ -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 *