WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32359, comment 9


Ignore:
Timestamp:
06/04/2015 04:17:40 PM (7 years ago)
Author:
stephdau
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32359, comment 9

    initial v1  
    55The change adds `#https?://[^/]+\.wordpress\.com/[\d/]+/.+#i` as a provider, which checks for:
    66 * `https?://[^/]+\.`: WPCOM subdomain (caret-slash to avoid URL based trickery)
    7  * `/[\d/]+/.+`: WPCOM doesn'tallow users to modif the URL structure, so digit or slash (`/2015/06/04/`), then slug
     7 * `/[\d/]+/.+`: WPCOM doesn't allow users to modif the URL structure, so digit or slash (`/2015/06/04/`), then slug
    88
    99The API URL passes the basic `for` identifier (set as `WP`), as required by WPCOM.