Ticket #7226: 7226.needle.02.patch
File 7226.needle.02.patch, 753 bytes (added by , 8 years ago) |
---|
-
src/bp-core/classes/class-bp-button.php
94 94 * 95 95 * @var string Default: 'div'. 96 96 */ 97 public $parent_element = ' div';97 public $parent_element = ''; 98 98 99 99 /** 100 100 * Element attributes for parent element. … … 153 153 * 154 154 * @var string|bool 155 155 */ 156 public $wrapper = ' ';156 public $wrapper = 'div'; 157 157 158 158 /** 159 159 * The DOM class of the button wrapper. … … 385 385 } 386 386 387 387 // Set element. 388 if ( false === $child ) {388 if ( false === $child && empty( $r[ "{$parent}_element" ] ) ) { 389 389 $r[ "{$parent}_element" ] = $r[ $prop ]; 390 390 391 391 // Set attributes.