Skip to content

Commit

Permalink
Site Cloner: Only run cron on WordCamp network
Browse files Browse the repository at this point in the history
When it's ran on the Events network, it ends up not finding any sites because the `wordcamp` posts live on Central.
  • Loading branch information
iandunn committed Oct 22, 2023
1 parent d3c95a2 commit f744d65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function sites_endpoint() {
*/
function prime_wordcamp_sites() {
// This only needs to run on a single site, then the whole network can use the cached result.
if ( ! is_main_site() ) {
if ( WORDCAMP_NETWORK_ID !== get_current_network_id() || ! is_main_site() ) {
return;
}

Expand Down

0 comments on commit f744d65

Please sign in to comment.