@@ -7,8 +7,8 @@ class EnqueueScripts extends Plugin {
77 function __construct () {
88
99 // Enqueue frontend/backend scripts
10- add_action ( 'wp_enqueue_scripts ' , array ( $ this , 'enqueue_frontend_scripts ' ) );
11- add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'enqueue_admin_scripts ' ) );
10+ add_action ( 'wp_enqueue_scripts ' , array ( $ this , 'enqueue_frontend_scripts ' ) );
11+ add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'enqueue_admin_scripts ' ) );
1212
1313 // Inject plugin settings into page head
1414 $ this ->inject_javascript_settings ();
@@ -19,7 +19,7 @@ function __construct() {
1919 if ( in_array ( 'frontend ' , $ enqueue_font_awesome ) )
2020 add_action ( 'wp_enqueue_scripts ' , array ( $ this , 'enqueue_font_awesome ' ) );
2121 if ( in_array ( 'backend ' , $ enqueue_font_awesome ) )
22- add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'enqueue_font_awesome ' ) );
22+ add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'enqueue_font_awesome ' ) );
2323 }
2424
2525 }
@@ -90,7 +90,7 @@ private function inject_javascript_settings() {
9090
9191 $ args = array (
9292 'variable_name ' => $ this ->prefix ( 'plugin_settings ' , '_ ' ),
93- 'target ' => ['wp ' , 'admin ' ]
93+ 'target ' => [ 'wp ' , 'admin ' ]
9494 );
9595
9696 $ values = array (
0 commit comments