Skip to content

Commit

Permalink
more reliable settings page detection for assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Spreeuw committed Sep 4, 2018
1 parent 2278f0f commit 3157d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wcpdf-assets.php
Expand Up @@ -82,7 +82,7 @@ public function backend_scripts_styles ( $hook ) {

// only load on our own settings page
// maybe find a way to refer directly to WPO\WC\PDF_Invoices\Settings::$options_page_hook ?
if ( $hook == 'woocommerce_page_wpo_wcpdf_options_page' || $hook == 'settings_page_wpo_wcpdf_options_page' ) {
if ( $hook == 'woocommerce_page_wpo_wcpdf_options_page' || $hook == 'settings_page_wpo_wcpdf_options_page' || ( isset($_GET['page']) && $_GET['page'] == 'wpo_wcpdf_options_page' ) ) {
wp_enqueue_style(
'wpo-wcpdf-settings-styles',
WPO_WCPDF()->plugin_url() . '/assets/css/settings-styles.css',
Expand Down

0 comments on commit 3157d7e

Please sign in to comment.