diff --git a/src/bp-core/classes/class-bp-button.php b/src/bp-core/classes/class-bp-button.php
index cd57f37f5..e1741caaf 100644
|
a
|
b
|
class BP_Button { |
| 324 | 324 | // Button properties. |
| 325 | 325 | $button = ''; |
| 326 | 326 | if ( ! empty( $r['button_element'] ) ) { |
| | 327 | // ensure href attribute is not used with button. |
| | 328 | if ( 'button' === $r['button_element'] ) { |
| | 329 | unset( $r['button_attr']['href'] ); |
| | 330 | } |
| | 331 | |
| 327 | 332 | $button = new BP_Core_HTML_Element( array( |
| 328 | 333 | 'element' => $r['button_element'], |
| 329 | 334 | 'attr' => $r['button_attr'], |