From 06cdadd676ab2b5a2ff49fd7edf466c7ed79b0f5 Mon Sep 17 00:00:00 2001 From: Maria Fernanda Magallanes Zubillaga Date: Thu, 6 Jun 2024 15:07:19 +0100 Subject: [PATCH] fix: stop using an empty enqued style in all contexts --- public/class-openedx-commerce-public.php | 2 -- public/css/openedx-commerce-public.css | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/class-openedx-commerce-public.php b/public/class-openedx-commerce-public.php index da3b7e22..8475cdb9 100644 --- a/public/class-openedx-commerce-public.php +++ b/public/class-openedx-commerce-public.php @@ -72,8 +72,6 @@ public function enqueue_styles() { * between the defined hooks and the functions defined in this * class. */ - - wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/openedx-commerce-public.css', array(), $this->version, 'all' ); } /** diff --git a/public/css/openedx-commerce-public.css b/public/css/openedx-commerce-public.css index 65bbf963..60a65535 100644 --- a/public/css/openedx-commerce-public.css +++ b/public/css/openedx-commerce-public.css @@ -1,4 +1,7 @@ /** * All of the CSS for your public-facing functionality should be * included in this file. + * + * Note: This file is not queued; you must queue it if you want to add styles here. + * For more information on why we dequeued this file, see https://github.com/openedx/openedx-wordpress-ecommerce/pull/79. */ \ No newline at end of file