activate_plugins
Who sees the warning that another plugin loaded an outdated SVG sanitizer.
Capability · Easy SVG · Status: Internal · Defined in easy-svg.php
Internal: not part of the promised public surface. It may change without notice.
Usage
current_user_can( 'activate_plugins' )
Example
if ( current_user_can( 'activate_plugins' ) ) {
$message = easy_svg_outdated_sanitizer_message();
}
Description
easy_svg_outdated_sanitizer_notice() checks activate_plugins before printing, because the person who can act on the warning is the one who can deactivate the plugin that ships the older library. The notice shows only on the dashboard, the Plugins screen and the media library.
Related
Was this page helpful?