From 3ad1748e8525f59248706d25c97100e9da331bdc Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Tue, 12 Nov 2019 11:36:41 -0600 Subject: [PATCH] Next step of Photon transition (#14009) --- functions.photon.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.photon.php b/functions.photon.php index f79e8ff50adb7..b34652072fa58 100644 --- a/functions.photon.php +++ b/functions.photon.php @@ -178,11 +178,11 @@ function jetpack_photon_url( $image_url, $args = array(), $scheme = null ) { /* * Need to perform a slowroll out per pMz3w-arH-p2 * - * 7.9 - Use the old method if the value is not 0. - * 8.0 - Use the old method if the value is not 0 or 1. + * 7.9 - Use the old method if the value is not 0 (thus 1 or 2). + * 8.0 - Use the old method if the value is 2 (thus not 0 or 1). [current step] * 8.1 - Remove this completely. */ - if ( 0 !== $subdomain ) { + if ( 2 === $subdomain ) { // Figure out which CDN subdomain to use. srand( crc32( $image_host_path ) ); // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_seeding_srand $subdomain = rand( 0, 2 ); // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_rand