Skip to content

Commit

Permalink
*Rename instance function wrapper to not conflict with wp-rocket asyn…
Browse files Browse the repository at this point in the history
…c css
  • Loading branch information
pcfreak30 committed Jul 18, 2017
1 parent 66370cf commit 0ffbff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rocket-async-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0ffbff4

Please sign in to comment.