header); ?>
files as $handle => $file) {
$file_path = untrailingslashit(get_home_path()) . $file->url;
$file_size = file_exists($file_path) ? ' (' . WP_Optimize()->format_size(@filesize($file_path)) . ')' : ''; // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
echo '- success ? '' : ' class="failed"').'>'.htmlspecialchars($file->url).''.$file_size.'';
if (property_exists($file, 'debug')) echo ''.htmlspecialchars($file->debug).'';
echo ' ';
printf(' %2$s', htmlspecialchars($file->url), __('Exclude', 'wp-optimize'));
$minify_config = get_option('wpo_minify_config');
if (preg_match('/\.js$/i', $file->url, $matches)) {
if ('individual' === $minify_config['enable_defer_js']) {
printf(' | %2$s', htmlspecialchars($file->url), __('Defer loading', 'wp-optimize'));
}
} elseif (preg_match('/\.css$/i', $file->url, $matches)) {
printf(' | %2$s', htmlspecialchars($file->url), __('Load asynchronously', 'wp-optimize'));
}
echo '
';
}
?>