WordPress.org

Making WordPress.org

Changeset 8226


Ignore:
Timestamp:
02/12/2019 03:19:20 AM (7 months ago)
Author:
dd32
Message:

Trac: Add a noindex, follow robots header to file revisions and file-based changeset views.

Fixes #4168, #4169.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r8196 r8226  
    2828    # <meta name="robots">
    2929    if req.environ['PATH_INFO'].startswith('/attachment/') :
     30        robots = 'noindex, follow'
     31    elif req.environ['PATH_INFO'].startswith('/browser/') and 'rev' in req.args : # eg: /browser/trunk/?rev=37670
     32        robots = 'noindex, follow'
     33    elif req.environ['PATH_INFO'].startswith('/changeset/') and len( filter( None, req.environ['PATH_INFO'].split('/') ) ) > 2 : # eg: /changeset/123/trunk
    3034        robots = 'noindex, follow'
    3135    else :
Note: See TracChangeset for help on using the changeset viewer.