Opened 7 years ago
Closed 4 years ago
#3309 closed defect (bug) (reported-upstream)
Feed shows posts while in 'Coming soon' mode
Reported by: | casiepa | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | WordCamp Site & Plugins | Keywords: | |
Cc: |
Description
Belfast has 'coming soon Mode ON' (see https://2018.belfast.wordcamp.org/) as it's about to happen in May next year, but the feed on https://2018.belfast.wordcamp.org/feed/ is suddenly displaying posts thanking the sponsors...
Feed should probably not show anything as long as 'coming soon' mode is ON ?
Change History (16)
#2
@
7 years ago
#4
@
7 years ago
@RMarks ok, thanks for the update.
I suppose something like this could somewhere be added when going into Coming Soon mode:
add_action( 'init', 'coming_soon_remove_feeds', 99 ); function coming_soon_remove_feeds() { // Disable all feeds foreach( array( '', '_rdf', '_rss', '_rss2', '_atom', '_rss2_comments', '_atom_comments' ) as $feed ) { add_action( 'do_feed' . $feed, 'coming_soon_remove_feeds_error', 1); } // Show message function coming_soon_remove_feeds_error() { wp_die( __( 'Feeds are not available while the site is in Coming Soon mode.', 'wordcamporg' ), 'Coming Soon mode ON', 403 ); } // Remove <link rel="alternate" type="application/rss+xml" title="WordCamp » Feed" href="https://2018.xyz.wordcamp.org/feed/" /> remove_action( 'wp_head', 'feed_links', 2 ); // Remove <link rel="alternate" type="application/rss+xml" title="WordCamp » Comments Feed" href="https://2018.xyz.wordcamp.org/comments/feed/" /> remove_action( 'wp_head', 'feed_links_extra', 3 ); // ??? It might be needed to flush the rewrite rules : flush_rewrite_rules(); }
This ticket was mentioned in Slack in #meta-wordcamp by casiepa. View the logs.
7 years ago
This ticket was mentioned in Slack in #meta-wordcamp by casiepa. View the logs.
7 years ago
This ticket was mentioned in Slack in #meta-wordcamp by rmarks. View the logs.
7 years ago
This ticket was mentioned in Slack in #meta-wordcamp by coreymckrill. View the logs.
7 years ago
This ticket was mentioned in Slack in #community-events by casiepa. View the logs.
5 years ago
#12
@
5 years ago
Maybe related: https://meta.trac.wordpress.org/ticket/4494
This ticket was mentioned in Slack in #meta-wordcamp by coreymckrill. View the logs.
5 years ago
This ticket was mentioned in Slack in #meta-wordcamp by iandunn. View the logs.
4 years ago
This ticket was mentioned in Slack in #meta-wordcamp by sippis. View the logs.
4 years ago
#16
@
4 years ago
- Resolution set to reported-upstream
- Status changed from assigned to closed
This ticket has been moved to GitHub https://github.com/WordPress/wordcamp.org/issues/600
@coreymckrill referred to this change just performed, but I don't see why it would have an impact: https://meta.trac.wordpress.org/changeset/6226