Skip to:
Content

BuddyPress.org

Changeset 11187


Ignore:
Timestamp:
10/12/2016 12:40:12 AM (3 years ago)
Author:
r-a-y
Message:

Core: Fix backward compatibility for BP_Button class.

See https://buddypress.trac.wordpress.org/ticket/7226#comment:43

Props needle, hnla.

Fixes #7226.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-button.php

    r11116 r11187  
    9595     * @var string Default: 'div'.
    9696     */
    97     public $parent_element = 'div';
     97    public $parent_element = '';
    9898
    9999    /**
     
    154154     * @var string|bool
    155155     */
    156     public $wrapper = '';
     156    public $wrapper = 'div';
    157157
    158158    /**
     
    386386
    387387            // Set element.
    388             if ( false === $child ) {
     388            if ( false === $child && empty( $r[ "{$parent}_element" ] ) ) {
    389389                $r[ "{$parent}_element" ] = $r[ $prop ];
    390390
Note: See TracChangeset for help on using the changeset viewer.