@@ -65,5 +65,5 @@ |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | add_action( 'plugins_loaded', function () { |
| 68 | - new PageSpeedPurge(); |
|
| 68 | + new PageSpeedPurge(); |
|
| 69 | 69 | } ); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | public function __construct() { |
| 22 | 22 | // Enqueue css and js files |
| 23 | - if( ! is_admin() && is_admin_bar_showing() ) { |
|
| 23 | + if ( ! is_admin() && is_admin_bar_showing() ) { |
|
| 24 | 24 | add_action( 'wp_enqueue_scripts', array( $this, 'embed_admin_assets' ), 101 ); |
| 25 | 25 | } else { |
| 26 | 26 | add_action( 'admin_enqueue_scripts', array( $this, 'embed_admin_assets' ), 101 ); |
@@ -57,10 +57,10 @@ discard block |
||
| 57 | 57 | $plugin_dir = dirname( __FILE__ ); |
| 58 | 58 | |
| 59 | 59 | // wp-content/languages/plugin-name/plugin-name-ru_RU.mo |
| 60 | - load_textdomain( $textdomain, sprintf( '%s/plugins/%s-%s.mo', WP_LANG_DIR , $textdomain, $plugin_locale ) ); |
|
| 60 | + load_textdomain( $textdomain, sprintf( '%s/plugins/%s-%s.mo', WP_LANG_DIR, $textdomain, $plugin_locale ) ); |
|
| 61 | 61 | |
| 62 | 62 | // wp-content/plugins/plugin-name/languages/plugin-name-ru_RU.mo |
| 63 | - load_textdomain( $textdomain, sprintf( '%s/languages/%s-%s.mo', $plugin_dir , $textdomain, $plugin_locale ) ); |
|
| 63 | + load_textdomain( $textdomain, sprintf( '%s/languages/%s-%s.mo', $plugin_dir, $textdomain, $plugin_locale ) ); |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | |