PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
← All changes | includes/classes/Installer.php +3 -4 4.7.25.3.5 View file →
@@ -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 }