From fc48332984488402d0db7d3e1d10a0ba1727732d Mon Sep 17 00:00:00 2001 From: Kaspars Date: Mon, 14 Dec 2015 17:26:34 +0200 Subject: [PATCH] Use the getter method instead --- include/minit-css.php | 4 +--- include/minit-js.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/include/minit-css.php b/include/minit-css.php index 8a4ba35..9cbf40c 100644 --- a/include/minit-css.php +++ b/include/minit-css.php @@ -9,9 +9,7 @@ function __construct( $plugin ) { $this->plugin = $plugin; - global $wp_styles; - - parent::__construct( $wp_styles, 'css' ); + parent::__construct( wp_styles(), 'css' ); } diff --git a/include/minit-js.php b/include/minit-js.php index ffa5569..fe09680 100644 --- a/include/minit-js.php +++ b/include/minit-js.php @@ -9,9 +9,7 @@ function __construct( $plugin ) { $this->plugin = $plugin; - global $wp_scripts; - - parent::__construct( $wp_scripts, 'js' ); + parent::__construct( wp_scripts(), 'js' ); }