From 979e16217f0eb2874f21ae266021736f5f687741 Mon Sep 17 00:00:00 2001 From: Allison Levine <1689238+allilevine@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:10:54 -0500 Subject: [PATCH] Disable bloganuary (#97136) * Disable bloganuary. * Add comment clarifying the redundant logic. --- client/data/blogging-prompt/is-bloganuary.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/data/blogging-prompt/is-bloganuary.ts b/client/data/blogging-prompt/is-bloganuary.ts index 21a54d84bbf1e..167105ade2032 100644 --- a/client/data/blogging-prompt/is-bloganuary.ts +++ b/client/data/blogging-prompt/is-bloganuary.ts @@ -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' ); }