Skip to content

Commit

Permalink
Next step of Photon transition (#14009)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj authored Nov 12, 2019
1 parent 6e87f84 commit 3ad1748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions.photon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ad1748

Please sign in to comment.