Skip to content

Skip cancelled events in city redirect and latest-site hints#1612

Open
dd32 wants to merge 2 commits into
productionfrom
fix/claude/1600-skip-cancelled-events-redirect
Open

Skip cancelled events in city redirect and latest-site hints#1612
dd32 wants to merge 2 commits into
productionfrom
fix/claude/1600-skip-cancelled-events-redirect

Conversation

@dd32
Copy link
Copy Markdown
Member

@dd32 dd32 commented Feb 13, 2026

Summary

  • Modifies get_latest_site() in sunrise-wordcamp.php to exclude sites whose WordCamp tracker post has wcpt-cancelled status
  • Updates all three query paths in get_latest_home_url() in latest-site-hints.php with the same exclusion
  • Cancelled event sites remain accessible at their direct URLs (e.g., city.wordcamp.org/2025/) - only the automatic redirect is affected

Closes #1600

Test plan

  • Verify that city.wordcamp.org redirects to the most recent non-cancelled event
  • Verify that the "See the next edition" banner on older events does not link to a cancelled event
  • Verify that a cancelled event site is still directly accessible at its full URL
  • Verify the redirect still works correctly for cities with no cancelled events

Generated with Claude Code

dd32 and others added 2 commits February 13, 2026 18:08
When a WordCamp is cancelled, visiting the city URL (e.g., city.wordcamp.org)
should redirect to the most recent non-cancelled event instead of the cancelled
one. Similarly, the "See the next edition" banner should not link to a cancelled
event.

Both get_latest_site() in sunrise and get_latest_home_url() in latest-site-hints
now exclude sites whose corresponding WordCamp tracker post has wcpt-cancelled status.

Closes #1600

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add phpcs:disable/enable blocks for trusted $wpdb table name
interpolation in prepared statements.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cancelled events should not be the default redirect target for city.wordcamp.org

1 participant