From f4952d97ee7932edcd60edfef430cc11a3f54091 Mon Sep 17 00:00:00 2001 From: Armando Liccardo Date: Tue, 25 Feb 2025 14:18:31 +0000 Subject: [PATCH] fixed missing action to load styles from merging from main --- includes/Performance.php | 6 ++++-- styles/styles.css | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/Performance.php b/includes/Performance.php index 9cad1d7..b58e181 100644 --- a/includes/Performance.php +++ b/includes/Performance.php @@ -86,6 +86,8 @@ public function __construct( Container $container ) { new RestAPI(); } + add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) ); + add_filter( 'newfold-runtime', array( $this, 'add_to_runtime' ), 100 ); ! defined( 'NFD_PERFORMANCE_PLUGIN_LANGUAGES_DIR' ) && define( 'NFD_PERFORMANCE_PLUGIN_LANGUAGES_DIR', dirname( $container->plugin()->file ) . '/vendor/newfold-labs/wp-module-performance/languages' ); @@ -308,9 +310,9 @@ public function add_sub_menu_page() { ); } /** - * Enqueue scripts and styles in admin + * Enqueue styles and styles in admin */ - public function enqueue_scripts() { + public function enqueue_styles() { $brand = $this->container->plugin()->brand; if ( is_settings_page( $brand ) ) { $plugin_url = $this->container->plugin()->url . get_styles_path(); diff --git a/styles/styles.css b/styles/styles.css index 50b61cb..c94c1f2 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -15,7 +15,6 @@ position: absolute; } - .nfd-performance-jetpack-boost-container-install-activate-button{ position: absolute; width: 300px;