WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16881, comment 7


Ignore:
Timestamp:
03/18/2011 07:42:16 AM (7 years ago)
Author:
joelhardi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16881, comment 7

    initial v1  
    1 The patch I just added is a one-liner so I attached it here.
     1The patch I came up with is a one-liner so I attached it here.
    22
    3 There may be a better way organizationally to implement this but it wasn't obvious so I thought I'd post this and take a second look tomorrow. The one-liner does what I was talking about to address the double-indexing issue.
     3There may be a better way organizationally to implement this but it wasn't obvious so I thought I'd post this and take a second look tomorrow. The only other code that checks whether replytocom is set is in comments-template.php -- not sure it makes sense to add an action to wp_head from there.
     4
     5The one-liner does what I was talking about to address the double-indexing issue.
     6
     7Incidentally, there are other URLs we might want to protect from indexing always, for instance wp-login.php (I always put /*.php in robots.txt).