Skip to content

Commit

Permalink
Disable bloganuary (#97136)
Browse files Browse the repository at this point in the history
* Disable bloganuary.

* Add comment clarifying the redundant logic.
  • Loading branch information
allilevine authored Dec 6, 2024
1 parent 17afd38 commit 979e162
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/data/blogging-prompt/is-bloganuary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ import moment from 'moment';
* @returns true if bloganuary mode is active
*/
export default function isBloganuary() {
// Disable for January 2025 and beyond (see https://wp.me/p5uIfZ-gxX).
// Intentionally redundant to make it easier to spot the disable condition,
// and avoid removing code we may re-enable in the future.
const BLOGANUARY_ENABLED = false;
if ( ! BLOGANUARY_ENABLED ) {
return false;
}
return moment().format( 'MM' ) === '01' || isEnabled( 'bloganuary' );
}

0 comments on commit 979e162

Please sign in to comment.