PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
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 | admin/statistics/class-statistics-service.php +6 -6 18.428.5 View file →
@@ -14,9 +14,9 @@
14 14 * Cache transient id.
15 15 *
16 16 * @var string
17 17 */
18 - const CACHE_TRANSIENT_KEY = 'wpseo-statistics-totals';
18 + public const CACHE_TRANSIENT_KEY = 'wpseo-statistics-totals';
19 19
20 20 /**
21 21 * Class that generates interesting statistics about things.
22 22 *
@@ -46,9 +46,9 @@
46 46 * @return WP_REST_Response The response object.
47 47 */
48 48 public function get_statistics() {
49 49 // Switch to the user locale with fallback to the site locale.
50 - switch_to_locale( \get_user_locale() );
50 + switch_to_locale( get_user_locale() );
51 51
52 52 $this->labels = $this->labels();
53 53 $statistics = $this->statistic_items();
54 54
@@ -208,24 +208,24 @@
208 208 WPSEO_Rank::NO_FOCUS => sprintf(
209 209 /* translators: %1$s expands to an opening strong tag, %2$s expands to a closing strong tag */
210 210 __( 'Posts %1$swithout%2$s a focus keyphrase', 'wordpress-seo' ),
211 211 '<strong>',
212 - '</strong>'
212 + '</strong>',
213 213 ),
214 214 WPSEO_Rank::BAD => sprintf(
215 215 /* translators: %s expands to the score */
216 216 __( 'Posts with the SEO score: %s', 'wordpress-seo' ),
217 - '<strong>' . __( 'Needs improvement', 'wordpress-seo' ) . '</strong>'
217 + '<strong>' . __( 'Needs improvement', 'wordpress-seo' ) . '</strong>',
218 218 ),
219 219 WPSEO_Rank::OK => sprintf(
220 220 /* translators: %s expands to the score */
221 221 __( 'Posts with the SEO score: %s', 'wordpress-seo' ),
222 - '<strong>' . __( 'OK', 'wordpress-seo' ) . '</strong>'
222 + '<strong>' . __( 'OK', 'wordpress-seo' ) . '</strong>',
223 223 ),
224 224 WPSEO_Rank::GOOD => sprintf(
225 225 /* translators: %s expands to the score */
226 226 __( 'Posts with the SEO score: %s', 'wordpress-seo' ),
227 - '<strong>' . __( 'Good', 'wordpress-seo' ) . '</strong>'
227 + '<strong>' . __( 'Good', 'wordpress-seo' ) . '</strong>',
228 228 ),
229 229 WPSEO_Rank::NO_INDEX => __( 'Posts that should not show up in search results', 'wordpress-seo' ),
230 230 ];
231 231 }