[wp-trac] [WordPress Trac] #38501: Google indexes draft page in preview mode.
WordPress Trac
noreply at wordpress.org
Wed Oct 26 22:02:46 UTC 2016
#38501: Google indexes draft page in preview mode.
--------------------------+----------------------
Reporter: milleronic | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.6.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by peterwilsoncc):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Replying to [comment:2 milleronic]:
> I know that draft posts can only be seen if logged in, but search
engines should not index them, as a search may bring up the post which
will return a 404, which confuses people looking for something on the
site. (This has occurred more than once on our site)
>
> So can posts not having a status of 'publish' include a robots nofollow
attribute in the head?
I expect the cause on your site is a plugin removing the login check for
previews. That the plugin allows Google to index the page is a plugin bug,
not a core bug.
On a standard WP install, search engines will receive a 404 and will not
index the site.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38501#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list