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: ''


Top ↑

Return Return

(string)


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.