@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | public function filterWordPressFooter( $text ) |
| 25 | 25 | { |
| 26 | - if( $this->app->config['remove_wordpress_footer'] )return; |
|
| 26 | + if( $this->app->config[ 'remove_wordpress_footer' ] )return; |
|
| 27 | 27 | return $text; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -33,24 +33,24 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function registerAssets() |
| 35 | 35 | { |
| 36 | - if( $this->app->screen()->id == sprintf( 'toplevel_page_%s', apply_filters( 'pollux/settings/option', Settings::ID ))) { |
|
| 36 | + if( $this->app->screen()->id == sprintf( 'toplevel_page_%s', apply_filters( 'pollux/settings/option', Settings::ID ) ) ) { |
|
| 37 | 37 | wp_enqueue_script( 'common' ); |
| 38 | 38 | wp_enqueue_script( 'wp-lists' ); |
| 39 | 39 | wp_enqueue_script( 'postbox' ); |
| 40 | 40 | } |
| 41 | 41 | wp_enqueue_style( 'pollux/main.css', |
| 42 | 42 | $this->app->url( 'assets/main.css' ), |
| 43 | - apply_filters( 'pollux/enqueue/css/deps', [] ), |
|
| 43 | + apply_filters( 'pollux/enqueue/css/deps', [ ] ), |
|
| 44 | 44 | $this->app->version |
| 45 | 45 | ); |
| 46 | 46 | wp_enqueue_script( 'pollux/main.js', |
| 47 | 47 | $this->app->url( 'assets/main.js' ), |
| 48 | - apply_filters( 'pollux/enqueue/js/deps', [] ), |
|
| 48 | + apply_filters( 'pollux/enqueue/js/deps', [ ] ), |
|
| 49 | 49 | $this->app->version |
| 50 | 50 | ); |
| 51 | 51 | wp_localize_script( 'pollux/main.js', |
| 52 | 52 | apply_filters( 'pollux/enqueue/js/localize/name', $this->app->id ), |
| 53 | - apply_filters( 'pollux/enqueue/js/localize/variables', [] ) |
|
| 53 | + apply_filters( 'pollux/enqueue/js/localize/variables', [ ] ) |
|
| 54 | 54 | ); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function removeDashboardWidgets() |
| 62 | 62 | { |
| 63 | - if( !$this->app->config['remove_dashboard_widgets'] )return; |
|
| 63 | + if( !$this->app->config[ 'remove_dashboard_widgets' ] )return; |
|
| 64 | 64 | $widgets = apply_filters( 'pollux/dashoard/widgets', [ |
| 65 | 65 | 'dashboard_primary', |
| 66 | 66 | 'dashboard_quick_press', |
| 67 | - ]); |
|
| 67 | + ] ); |
|
| 68 | 68 | foreach( $widgets as $widget ) { |
| 69 | 69 | remove_meta_box( $widget, 'dashboard', 'normal' ); |
| 70 | 70 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function removeWordPressMenu() |
| 78 | 78 | { |
| 79 | - if( !$this->app->config['remove_wordpress_menu'] )return; |
|
| 79 | + if( !$this->app->config[ 'remove_wordpress_menu' ] )return; |
|
| 80 | 80 | global $wp_admin_bar; |
| 81 | 81 | $wp_admin_bar->remove_menu( 'wp-logo' ); |
| 82 | 82 | } |