Opened 10 years ago
Closed 9 years ago
#870 closed defect (bug) (fixed)
Lowercase P in Google search results for developer.wordpress.org
Reported by: | SergeyBiryukov | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | |
Cc: |
Description
Most of function reference pages are indexed by Google with lowercase P for WordPress in the title (see the screenshot). That doesn't match the actual <title>
tag of those pages.
First noticed this a couple of months ago, and it has not changed since then.
This is pretty trivial, but maybe it's something we can fix?
Attachments (1)
Change History (12)
#3
in reply to:
↑ 2
@
10 years ago
Replying to SergeyBiryukov:
Yeah, but maybe we can trigger the re-indexing somehow?
Depending on how the sitemaps are structured, we could resubmit the sitemap(s).
This ticket was mentioned in Slack in #meta-devhub by atimmer. View the logs.
10 years ago
#6
in reply to:
↑ 5
@
10 years ago
Replying to iandunn:
@nickhamze pointed out that it's also happening for the plugin repo description. That text isn't being pulled from the page, though; is it also from the site maps?
That's actually a different bug. It's using the description from DMOZ, which we could prevent by adding a noodp
meta robots tag to the head
. I've opened ticket #1095 to fix this.
#7
@
10 years ago
So this problem is caused by the fact that Google thinks it can create a better title for the page than we can and thus generates one itself. The reason for that is that the title we're generating is too long, it would look like this in the search results:
I think we could prevent this by generating a title that's shorter, something like
wp_delete_file() Function | WordPress Developer Resources
To be honest, I don't even think we need the (), and that this could still be too long with longer function names, so an even better option would be this:
wp_delete_file function | WordPress Developer
Happy to provide more input if needed. This article I wrote a couple of years ago might give more input too.
On the live site WordPress is capitalised correctly, so I think this should be fixed as soon as Google re-indexes.