| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | * @since 3.0 |
| 33 | 33 | */ |
| 34 | 34 | public function setup() { |
| 35 | 35 | add_action( 'admin_init', [ $this, 'calculate_install_status' ], 9 ); |
| 36 | - add_filter( 'admin_title', [ $this, 'filter_admin_title' ], 10, 2 ); | |
| 36 | + add_filter( 'admin_title', [ $this, 'filter_admin_title' ], 10 ); | |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Filter admin title for install page |
| @@ -39,13 +39,12 @@ | ||
| 39 | 39 | /** |
| 40 | 40 | * Filter admin title for install page |
| 41 | 41 | * |
| 42 | 42 | * @param string $admin_title Current title |
| 43 | - * @param string $title Original title | |
| 44 | 43 | * @since 3.0 |
| 45 | 44 | * @return string |
| 46 | 45 | */ |
| 47 | - public function filter_admin_title( $admin_title, $title ) { | |
| 46 | + public function filter_admin_title( $admin_title ) { | |
| 48 | 47 | if ( 'install' === Screen::factory()->get_current_screen() ) { |
| 49 | 48 | // translators: Site Name |
| 50 | 49 | return sprintf( esc_html__( 'ElasticPress Setup ‹ %s — WordPress', 'elasticpress' ), esc_html( get_bloginfo( 'name' ) ) ); |
| 51 | 50 | } |
| @@ -75,9 +74,9 @@ | ||
| 75 | 74 | } |
| 76 | 75 | |
| 77 | 76 | $host = Utils\get_host(); |
| 78 | 77 | |
| 79 | - if ( empty( $host ) && empty( $_POST['ep_host'] ) ) { // phpcs:ignore | |
| 78 | + if ( empty( $host ) && empty( $_POST['ep_host'] ) ) { | |
| 80 | 79 | $this->install_status = 2; |
| 81 | 80 | |
| 82 | 81 | return; |
| 83 | 82 | } |