PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/services/health-check/postname-permalink-check.php +11 -15 18.6 → trunk View file →
@@ -23,16 +23,12 @@
23 23
24 24 /**
25 25 * Constructor.
26 26 *
27 - * @param Postname_Permalink_Runner $runner The object that implements the actual health check.
27 + * @param Postname_Permalink_Runner $runner The object that implements the actual health check.
28 28 * @param Postname_Permalink_Reports $reports The object that generates WordPress-friendly results.
29 - * @return void
30 29 */
31 - public function __construct(
32 - Postname_Permalink_Runner $runner,
33 - Postname_Permalink_Reports $reports
34 - ) {
30 + public function __construct( Postname_Permalink_Runner $runner, Postname_Permalink_Reports $reports ) {
35 31 $this->runner = $runner;
36 32 $this->reports = $reports;
37 33 $this->reports->set_test_identifier( $this->get_test_identifier() );
38 34
@@ -39,17 +35,8 @@
39 35 $this->set_runner( $this->runner );
40 36 }
41 37
42 38 /**
43 - * Returns a human-readable label for this health check.
44 - *
45 - * @return string The human-readable label.
46 - */
47 - public function get_test_label() {
48 - return __( 'Postname permalink', 'wordpress-seo' );
49 - }
50 -
51 - /**
52 39 * Returns the WordPress-friendly health check result.
53 40 *
54 41 * @return string[] The WordPress-friendly health check result.
55 42 */
@@ -58,6 +45,15 @@
58 45 return $this->reports->get_success_result();
59 46 }
60 47
61 48 return $this->reports->get_has_no_postname_in_permalink_result();
49 + }
50 +
51 + /**
52 + * Returns whether the health check should be excluded from the results.
53 + *
54 + * @return bool false, because it's not excluded.
55 + */
56 + public function is_excluded() {
57 + return false;
62 58 }
63 59 }