From 0ffbff48cb7c57e552cac03ca1ea191eb4645d35 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 18 Jul 2017 04:08:07 -0400 Subject: [PATCH] *Rename instance function wrapper to not conflict with wp-rocket async css --- rocket-async-css.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rocket-async-css.php b/rocket-async-css.php index 89cb372..293e744 100644 --- a/rocket-async-css.php +++ b/rocket-async-css.php @@ -65,18 +65,18 @@ function rocket_async_css_autoloader( $class_name ) { spl_autoload_register( 'rocket_async_css_autoloader' ); endif; -if ( ! function_exists( 'Rocket_async_css' ) ): +if ( ! function_exists( 'get_rocket_async_css' ) ): /** * Function wrapper to get instance of plugin * * @return Rocket_async_css */ - function rocket_async_css() { + function get_rocket_async_css() { return Rocket_Async_Css::get_instance(); } - add_action( 'plugins_loaded', 'rocket_async_css', 11 ); + add_action( 'plugins_loaded', 'get_rocket_async_css', 11 ); endif;