Making WordPress.org


Ignore:
Timestamp:
02/06/2015 05:53:41 PM (10 years ago)
Author:
kovshenin
Message:

WordCamp.org: Allow matching city.wordcamp.org/year-slug URLs when attempting to redirect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    r1153 r1231  
    149149    // russia.wordcamp.org/2014/11/25/post-name/
    150150    // russia.wordcamp.org/2014/2014/25/post-name/
     151    // russia.wordcamp.org/2015-ru/...
    151152
    152     if ( ! preg_match( '#^/[0-9]{4}/(?:[0-9]{4}/[0-9]{2}|[0-9]{2}|[0-9]{4})/[0-9]{2}/(.+)$#', $_SERVER['REQUEST_URI'], $matches ) )
     153    if ( ! preg_match( '#^/[0-9]{4}(?:-[^/]+)?/(?:[0-9]{4}/[0-9]{2}|[0-9]{2}|[0-9]{4})/[0-9]{2}/(.+)$#', $_SERVER['REQUEST_URI'], $matches ) )
    153154        return;
    154155
Note: See TracChangeset for help on using the changeset viewer.