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 | src/bulk-editor/application/posts/posts-collector-interface.php +24 -0 28.1 → 28.5 View file →
@@ -18,8 +18,32 @@
18 18 */
19 19 public const STATUSES = [ 'publish', 'draft', 'pending', 'future' ];
20 20
21 21 /**
22 + * The fields the "needs improvement" filter can target, as sent by the client.
23 + *
24 + * @var array<string>
25 + */
26 + public const NEEDS_IMPROVEMENT_FIELDS = [ 'seo_title', 'meta_description', 'social_title', 'social_description' ];
27 +
28 + /**
29 + * The inclusive lower bound of the per-field score range that counts as "needs improvement".
30 + *
31 + * The bad + ok score groups are 1-70; 0 (and a missing/NULL value) means "never scored" and is deliberately
32 + * outside the range, so unscored posts only match through the empty check.
33 + *
34 + * @var int
35 + */
36 + public const NEEDS_IMPROVEMENT_MIN_SCORE = 1;
37 +
38 + /**
39 + * The inclusive upper bound of the per-field score range that counts as "needs improvement".
40 + *
41 + * @var int
42 + */
43 + public const NEEDS_IMPROVEMENT_MAX_SCORE = 70;
44 +
45 + /**
22 46 * Collects a page of posts for the given query.
23 47 *
24 48 * @param Posts_Query $query The query describing the page to collect.
25 49 *