Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Admin::esc_notice( string $message = '' )
Escape message string output
Description Description
Parameters Parameters
- $message
-
(Optional)
Default value: ''
Return Return
(string)
Source Source
File: includes/admin/classes/class-bbp-admin.php
private function esc_notice( $message = '' ) { // Get allowed HTML $tags = wp_kses_allowed_html(); // Allow spans with classes in notices $tags['span'] = array( 'class' => 1 ); // Parse the message and remove unsafe tags $text = wp_kses( $message, $tags ); // Return the message text return $text; }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |