Make WordPress Core

Ticket #50324: plugin-reproduce-50324.php

File plugin-reproduce-50324.php, 355 bytes (added by trepmal, 4 years ago)

A plugin to reproduce the issue

Line 
1<?php
2// Plugin: Reproduce error "Error: Could not retrieve site data."
3// Description: With plugin, cannot create new blogs in multisite
4
5add_action( 'clean_site_cache', function() {
6        update_site_option( 'insert_id_test' . time() , true );
7});
8
9add_action( 'wp_initialize_site', function( $site ) {
10        // Anything in here will happen on the wrong site
11} );