Ticket #50324: plugin-reproduce-50324.php
| File plugin-reproduce-50324.php, 355 bytes (added by , 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | // Plugin: Reproduce error "Error: Could not retrieve site data." |
| 3 | // Description: With plugin, cannot create new blogs in multisite |
| 4 | |
| 5 | add_action( 'clean_site_cache', function() { |
| 6 | update_site_option( 'insert_id_test' . time() , true ); |
| 7 | }); |
| 8 | |
| 9 | add_action( 'wp_initialize_site', function( $site ) { |
| 10 | // Anything in here will happen on the wrong site |
| 11 | } ); |
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)