Skip to:
Content

BuddyPress.org

Changeset 11777


Ignore:
Timestamp:
12/31/2017 08:26:55 PM (7 years ago)
Author:
hnla
Message:

Correct stray HTML characters in template notice button string

Commit removes stray HTML characters from being rendered in output string for the sitewide notice close button screen reader 'span' introduced in r11582.

See #7649

Props @uzosky

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-template.php

    r11750 r11777  
    13381338                    <strong><?php echo stripslashes( wp_filter_kses( $notice->subject ) ) ?></strong><br />
    13391339                    <?php echo stripslashes( wp_filter_kses( $notice->message) ) ?>
    1340                     <button type="button" id="close-notice" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Dismiss this notice', 'buddypress' ) ?>"><span class="bp-screen-reader-text"><?php _e( 'Dismiss this notice', 'buddypress' ) ?>"></span> <span aria-hidden="true">&Chi;</span></button>
     1340                    <button type="button" id="close-notice" class="bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Dismiss this notice', 'buddypress' ) ?>"><span class="bp-screen-reader-text"><?php _e( 'Dismiss this notice', 'buddypress' ) ?></span> <span aria-hidden="true">&Chi;</span></button>
    13411341                    <?php wp_nonce_field( 'bp_messages_close_notice', 'close-notice-nonce' ); ?>
    13421342                </p>
Note: See TracChangeset for help on using the changeset viewer.