Closed delawski closed 5 years ago
As per a recent WordPress VIP review of the plugin, an issue has been raised that we shouldn't use esc_js() in Plugin.php, L165:
esc_js()
Plugin.php, L165
return sprintf( "<script>performance && performance.mark( 'mark_%s' );</script>\n", esc_js( $mark_slug ) );
Instead, as per VIP best practices we should use wp_json_encode().
wp_json_encode()
As per a recent WordPress VIP review of the plugin, an issue has been raised that we shouldn't use
esc_js()
inPlugin.php, L165
:Instead, as per VIP best practices we should use
wp_json_encode()
.