WordPress.com classic stats

Redirects the new stats page to the classic stats page

A continuación se muestran las versiones de este script en las que se actualizó el código. Ver todas las versiones.

  • v2.3.0 9/10/2017 Use consistent quotation marks, Bump copyright date, Add tests Tests are written with the Mocha testing framework using Sinon as the stubbing library and Chai as the assertion library., Add entrypoint, Merge branch 'f/tests' into dev, Version bump to v2.3.0
  • v2.2.1 23/6/2017 Use search() instead of contains() String.prototype.contains does not exist. There is String.prototype.includes, but that was introduced in ES2015. To maintain "wide" browser support, the older String.prototype.contains is used instead., Version bump to v2.2.1
  • v2.2.0 15/6/2017 Do not redirect if explicitly requested from=wp-admin is added to the URL if the "Show Me" button is clicked in the wp-admin stats. Since this script is only run on page load and will not affect any AJAX requests made by the React app, one can interact with the new stats normally., Version bump to v2.2.0
  • v2.1.2 25/2/2017 Synced from GitHub - Get user's default blog more reliably The assumption that the user's default blog is first in the list is no longer valid. Make use of the currentUser object available in the environment to get the user's defaut blog. - Version bump to v2.1.2
  • v2.1.1 20/1/2017 Synced from GitHub - Add missing semicolons While not strictly necessary, add the semicolons for consistency. - Ignore /countryviews WordPress.com implemented a country summary page. https://en.forums.wordpress.com/topic/stats-feedback/page/7#post-2845891 - Ignore posts summary page (/posts) Although this page has a counterpart in the classic stats, properly redirecting involves parsing some query parameters (e.g. translating "num" into "numdays"). Just ignore it for now so things don't br...
  • v2.1.0 26/12/2016 Synced from GitHub - Redirect even when there is no blog domain in the URL Scrape the page for the default blog and get the stats link when there is no blog domain in the URL. In the future, this should be handled with an API call.
  • v2.0.1 25/12/2016 Synced from GitHub - Correctly match URLs with no stats type Make the stats type optional. The original reason for not catching that case is that /stats/example.wordpress.com would redirect to /stats/insights/example.wordpress.com, but this appears to be a JavaScript redirect and would not get caught by the script. Additionally, since match returns null when there is no match, treating parsedUrl as an array to extract the stats type and the blog domain will fail.
  • v2.0.0 22/12/2016 Synced from GitHub - Reformat fetchJSONFile for consistency - Redirect to the classic dashboard stats page Since the old stats page is gone with a 301 redirect, redirect instead to the classic dashboard stats page. Credits to Dennis for the idea.
  • v1.0.2 22/12/2016 Synced from GitHub - Disable functionality to prevent infinite redirect WordPress.com has taken down the old stats page and replaced it with a 301 redirect to the new stats page, creating an infinite redirect loop. Until a fix can be made to redirect to the classic stats page, disable the functionality so the infinite redirect does not occur.
  • v1.0.1 29/3/2015 Synced from GitHub - Redirect for private and Jetpack-enabled blogs - Merge branch 'dev'. Bump to v1.0.1
  • v1.0.0 16/3/2015 Synced from GitHub - Add Greasy Fork镜像 links
  • v1.0.0 16/3/2015 Imported from URL

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元