Skip to:
Content

BuddyPress.org

Ticket #8498: 8498.diff

File 8498.diff, 626 bytes (added by sbrajesh, 4 years ago)
  • src/bp-core/classes/class-bp-button.php

    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 { 
    324324                // Button properties.
    325325                $button = '';
    326326                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
    327332                        $button = new BP_Core_HTML_Element( array(
    328333                                'element'    => $r['button_element'],
    329334                                'attr'       => $r['button_attr'],