I run a large university multi-site installation and one of our blogs is experiencing very strange behavior: Its Jetpack plugin seems to think that the blog's base URL is that of our dev server rather than the production blog URL. This manifests itself in several ways:
- The ShortLinks button (which generates http://wp.me/ short-links for published posts) generates links to our dev server rather than production.
- Emails from the newsletter feature link to the dev server rather than production.
- The "Home Page" stats in the stats view links to the dev server rather than production.
I dumped the full multi-site database and have verified that the dev server's URL doesn't exist in the database anywhere except this site's
stats_cache entry. Deleting that row and refreshing the dashboard simply downloads the dev server's URL from wordpress.com, so it seems that the offending URL is being stored on wordpress.com. To fully verify this, I dumped the output of http://stats.wordpress.com/csv.php?days=1&limit=8&summarize&table=postviews&blog_id=XXXXXXX and get the following:
Array (  => Array (  => post_id  => post_title  => post_permalink  => views )  => Array (  => 0  => Home page  => http://dev.example.edu/~username/wordpress/sitename/  => 67 )  => Array (  => 780  => Submit  => http://blogs.example.edu/sitename/submissions/  => 21 )  => Array (  => 2  => About  => http://blogs.example.edu/sitename/about/  => 10 )  => Array (  => 1974  => Vol. 32, No. 4 (2012)  => http://blogs.example.edu/sitename/vol-32-no-4-2012/  => 3 ) ...
As you can see, most page post_permalink URLs are correct, but the "Home Page" post_permalink URL is for the dev server.
How can I (or the blog owner) update the site's URL that is stored on wordpress.com so that the Jetpack plugins will work correctly?