Sanitizereasy_svg_outdated_sanitizer_message()

easy_svg_outdated_sanitizer_message()

Returns the warning text for an outdated sanitizer, or an empty string.

Function · Easy SVG · Status: Internal · Defined in easy-svg.php

Internal: not part of the promised public surface. It may change without notice.

Usage

easy_svg_outdated_sanitizer_message( string $class = '\\enshrined\\svgSanitize\\Sanitizer' ): string

Example

$message = easy_svg_outdated_sanitizer_message();
if ( '' !== $message ) {
	WP_CLI::warning( $message );
}

Description

Empty when the class is missing or current. Otherwise a translated sentence naming the file the class came from, shortened to start at wp-content, so an administrator can find the plugin responsible.

Parameters

body
$classstring

Class to check.

Return value

returnstring

The message, or an empty string.