From cf6f881bcf0103ab4cbc240fceb782f9d1fb9676 Mon Sep 17 00:00:00 2001 From: COQUARD Cyrille Date: Mon, 21 Mar 2022 17:00:19 +0100 Subject: [PATCH 1/7] Centralized hide_scripts and hide_noscripts i the RegexTrait.php --- .../Optimization/AbstractOptimization.php | 2 +- .../Optimization/RUCSS/Controller/UsedCSS.php | 36 ------------------- inc/Engine/Optimization/RegexTrait.php | 36 +++++++++++++++++++ 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/inc/Engine/Optimization/AbstractOptimization.php b/inc/Engine/Optimization/AbstractOptimization.php index 975cd66b12..b4e65d97f9 100644 --- a/inc/Engine/Optimization/AbstractOptimization.php +++ b/inc/Engine/Optimization/AbstractOptimization.php @@ -10,7 +10,7 @@ * @author Remy Perona */ abstract class AbstractOptimization { - + use RegexTrait; /** * Plugin options. * diff --git a/inc/Engine/Optimization/RUCSS/Controller/UsedCSS.php b/inc/Engine/Optimization/RUCSS/Controller/UsedCSS.php index 0a72a5aa2b..6776ecfce7 100644 --- a/inc/Engine/Optimization/RUCSS/Controller/UsedCSS.php +++ b/inc/Engine/Optimization/RUCSS/Controller/UsedCSS.php @@ -477,23 +477,6 @@ private function update_last_accessed( int $id ): bool { ); } - /** - * Hides