Skip to content

Commit

Permalink
Sunrise: Redirect to 2024 sites until flagship events are over (Asia,…
Browse files Browse the repository at this point in the history
… Europe, US) (#1190)
  • Loading branch information
ryelle authored Jan 8, 2024
1 parent 9ae4804 commit 9c4d8c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public_html/wp-content/sunrise-wordcamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,20 +510,20 @@ function get_canonical_year_url( $domain, $path ) {
// See also `WordCamp\Sunrise\Latest_Site_Hints\get_latest_home_url()`.
switch ( $domain ) {
case "europe.wordcamp.$tld":
if ( time() <= strtotime( '2023-06-20' ) ) {
return "https://europe.wordcamp.$tld/2023/";
if ( time() <= strtotime( '2024-06-20' ) ) {
return "https://europe.wordcamp.$tld/2024/";
}
break;

case "us.wordcamp.$tld":
if ( time() <= strtotime( '2023-10-01' ) ) {
return "https://us.wordcamp.$tld/2023/";
if ( time() <= strtotime( '2024-09-25' ) ) {
return "https://us.wordcamp.$tld/2024/";
}
break;

case "asia.wordcamp.$tld":
if ( time() <= strtotime( '2023-02-20' ) ) {
return "https://asia.wordcamp.$tld/2023/";
if ( time() <= strtotime( '2024-03-15' ) ) {
return "https://asia.wordcamp.$tld/2024/";
}
break;
}
Expand Down

0 comments on commit 9c4d8c5

Please sign in to comment.