- Timestamp:
- 06/02/2024 07:12:25 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-core-html-element.php
r13878 r13900 14 14 */ 15 15 class BP_Core_HTML_Element { 16 16 17 /** 17 18 * Open tag for an element. … … 23 24 * @var string 24 25 */ 25 public $open_tag = '';26 public $open_tag = ''; 26 27 27 28 /** … … 45 46 * @var string 46 47 */ 47 public $close_tag = '';48 public $close_tag = ''; 48 49 49 50 /** … … 91 92 $this->open_tag = sprintf( '<%1$s %2$s />', $elem, $attributes ); 92 93 93 // All other elements.94 // All other elements. 94 95 } else { 95 96 $this->open_tag = sprintf( '<%1$s %2$s>', $elem, $attributes ); 96 97 $this->inner_html = ! empty( $r['inner_html'] ) ? $r['inner_html'] : ''; 97 $this->close_tag = sprintf( '</%1$s>', $elem );98 $this->close_tag = sprintf( '</%1$s>', $elem ); 98 99 } 99 100 } … … 104 105 * @since 2.7.0 105 106 * 106 * @param string $prop Property name. Either 'open_tag', 'inner_html', 'close_tag'.107 * @param string $prop Property name. Either 'open_tag', 'inner_html', 'close_tag'. 107 108 * @return string 108 109 */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)