Changeset 13818 for trunk/src/bp-core/bp-core-functions.php
- Timestamp:
- 04/28/2024 12:23:47 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-functions.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r13777 r13818 19 19 */ 20 20 function bp_version() { 21 echo bp_get_version();21 echo esc_html( bp_get_version() ); 22 22 } 23 23 /** … … 38 38 */ 39 39 function bp_db_version() { 40 echo bp_get_db_version();40 echo esc_html( bp_get_db_version() ); 41 41 } 42 42 /** … … 57 57 */ 58 58 function bp_db_version_raw() { 59 echo bp_get_db_version_raw();59 echo esc_html( bp_get_db_version_raw() ); 60 60 } 61 61 /** … … 79 79 */ 80 80 function bp_major_version( $version = '' ) { 81 echo bp_get_major_version( $version);81 echo esc_html( bp_get_major_version( $version ) ); 82 82 } 83 83 … … 113 113 */ 114 114 function bp_initial_version() { 115 echo bp_get_initial_version();115 echo esc_html( bp_get_initial_version() ); 116 116 } 117 117 … … 1571 1571 */ 1572 1572 function bp_core_iso8601_date( $timestamp = '' ) { 1573 echo bp_core_get_iso8601_date( $timestamp);1573 echo esc_attr( bp_core_get_iso8601_date( $timestamp ) ); 1574 1574 } 1575 1575 /** … … 1696 1696 <div id="message" class="bp-template-notice <?php echo esc_attr( $type ); ?>"> 1697 1697 1698 <?php echo $content; ?> 1698 <?php 1699 // Escaping is done in `bp-core/bp-core-filters.php`. 1700 // phpcs:ignore WordPress.Security.EscapeOutput 1701 echo $content; 1702 ?> 1699 1703 1700 1704 </div> … … 3165 3169 */ 3166 3170 function bp_email_post_type() { 3167 echo bp_get_email_post_type();3171 echo esc_html( bp_get_email_post_type() ); 3168 3172 } 3169 3173 /** … … 3291 3295 */ 3292 3296 function bp_email_tax_type() { 3293 echo bp_get_email_tax_type();3297 echo esc_html( bp_get_email_tax_type() ); 3294 3298 } 3295 3299 /** … … 4496 4500 esc_html( $unsub_msg ), 4497 4501 array( 4498 'link_url' => home_url(),4499 'link_text' => __( 'Go to website\'s home page.', 'buddypress' ),4502 'link_url' => esc_url( home_url() ), 4503 'link_text' => esc_html__( 'Go to website\'s home page.', 'buddypress' ), 4500 4504 ) 4501 4505 );
Note:
See TracChangeset
for help on using the changeset viewer.