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/links-table-reports.php +12 -10 18.6 → trunk View file →
@@ -8,8 +8,9 @@
8 8 /**
9 9 * Presents a set of different messages for the Links_Table health check.
10 10 */
11 11 class Links_Table_Reports {
12 +
12 13 use Reports_Trait;
13 14
14 15 /**
15 16 * Shortlinker object used to create short links for reports.
@@ -20,11 +21,12 @@
20 21
21 22 /**
22 23 * Constructor
23 24 *
24 - * @param Report_Builder_Factory $report_builder_factory The factory for result builder objects. This class uses the report builder to generate WordPress-friendly health check results.
25 - * @param WPSEO_Shortlinker $shortlinker Object used to add short links to the report description.
26 - * @return void
25 + * @param Report_Builder_Factory $report_builder_factory The factory for result builder objects.
26 + * This class uses the report builder to generate WordPress-friendly
27 + * health check results.
28 + * @param WPSEO_Shortlinker $shortlinker Object used to add short links to the report description.
27 29 */
28 30 public function __construct(
29 31 Report_Builder_Factory $report_builder_factory,
30 32 WPSEO_Shortlinker $shortlinker
@@ -65,13 +67,13 @@
65 67 *
66 68 * @return string The description as a string.
67 69 */
68 70 private function get_success_description() {
69 - return sprintf(
71 + return \sprintf(
70 72 /* translators: 1: Link to the Yoast SEO blog, 2: Link closing tag. */
71 73 \esc_html__( 'The text link counter helps you improve your site structure. %1$sFind out how the text link counter can enhance your SEO%2$s.', 'wordpress-seo' ),
72 74 '<a href="' . $this->shortlinker->get( 'https://yoa.st/3zw' ) . '" target="_blank">',
73 - WPSEO_Admin_Utils::get_new_tab_message() . '</a>'
75 + WPSEO_Admin_Utils::get_new_tab_message() . '</a>',
74 76 );
75 77 }
76 78
77 79 /**
@@ -79,12 +81,12 @@
79 81 *
80 82 * @return string The description as a string.
81 83 */
82 84 private function get_links_table_not_accessible_description() {
83 - return sprintf(
85 + return \sprintf(
84 86 /* translators: 1: Yoast SEO. */
85 87 \__( 'For this feature to work, %1$s needs to create a table in your database. We were unable to create this table automatically.', 'wordpress-seo' ),
86 - 'Yoast SEO'
88 + 'Yoast SEO',
87 89 );
88 90 }
89 91
90 92 /**
@@ -92,12 +94,12 @@
92 94 *
93 95 * @return string The actions as a string.
94 96 */
95 97 private function get_actions() {
96 - return sprintf(
98 + return \sprintf(
97 99 /* translators: 1: Link to the Yoast help center, 2: Link closing tag. */
98 - esc_html__( '%1$sFind out how to solve this problem on our help center%2$s.', 'wordpress-seo' ),
100 + \esc_html__( '%1$sFind out how to solve this problem on our help center%2$s.', 'wordpress-seo' ),
99 101 '<a href="' . $this->shortlinker->get( 'https://yoa.st/3zv' ) . '" target="_blank">',
100 - WPSEO_Admin_Utils::get_new_tab_message() . '</a>'
102 + WPSEO_Admin_Utils::get_new_tab_message() . '</a>',
101 103 );
102 104 }
103 105 }