Skip to content

Commit 3230569

Browse files
committed
Note ordering logic.
1 parent 6d294b0 commit 3230569

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

inc/seo-compat.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,21 @@ function is_noindex( $post ) {
1919
return true; // No post found, treat as noindex.
2020
}
2121

22-
// Check for Yoast SEO noindex.
22+
/*
23+
* Check in order of number of active installs.
24+
*
25+
* To optimize performance for the majority of users, the
26+
* checks are ordered by the popularity of the SEO plugins.
27+
*
28+
* Popularity data from the WordPress plugin repository.
29+
*/
30+
31+
// Check for Yoast SEO noindex (10 million+).
2332
if ( is_yoast_noindex( $post ) ) {
2433
return true;
2534
}
2635

27-
// Check All in One SEO noindex.
36+
// Check All in One SEO noindex (3 million+).
2837
if ( is_aioseo_noindex( $post ) ) {
2938
return true;
3039
}

0 commit comments

Comments
 (0)