Skip to content

Commit 0ffbff4

Browse files
committed
*Rename instance function wrapper to not conflict with wp-rocket async css
1 parent 66370cf commit 0ffbff4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rocket-async-css.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ function rocket_async_css_autoloader( $class_name ) {
6565

6666
spl_autoload_register( 'rocket_async_css_autoloader' );
6767
endif;
68-
if ( ! function_exists( 'Rocket_async_css' ) ):
68+
if ( ! function_exists( 'get_rocket_async_css' ) ):
6969

7070
/**
7171
* Function wrapper to get instance of plugin
7272
*
7373
* @return Rocket_async_css
7474
*/
75-
function rocket_async_css() {
75+
function get_rocket_async_css() {
7676
return Rocket_Async_Css::get_instance();
7777
}
7878

79-
add_action( 'plugins_loaded', 'rocket_async_css', 11 );
79+
add_action( 'plugins_loaded', 'get_rocket_async_css', 11 );
8080

8181
endif;
8282

0 commit comments

Comments
 (0)