Making WordPress.org

Changeset 9871


Ignore:
Timestamp:
05/13/2020 06:20:53 AM (6 years ago)
Author:
dd32
Message:

Support Forums: Noindex the child pages of user profiles.

Fixes #4769.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r9863 r9871  
    412412                        if ( bbpress()->displayed_user && bbpress()->displayed_user->has_cap( 'bbp_blocked' ) ) {
    413413                                $robots = true;
     414
    414415                        // Users with no Topics/Replies/Reviews are not indexed.
    415416                        } elseif (
    … …  
    418419                                ! wporg_support_get_user_reviews_count()
    419420                        ) {
     421                                $robots = true;
     422
     423                        // Noindex all of the single user subpages.
     424                        } elseif ( ! bbp_is_single_user_profile() ) {
    420425                                $robots = true;
    421426                        }
Note: See TracChangeset for help on using the changeset viewer.