| @@ -25,8 +25,9 @@ | ||
| 25 | 25 | // Retrieve all site IDs from this network (WordPress >= 4.6 provides easy to use functions for that). |
| 26 | 26 | if ( function_exists( 'get_sites' ) && function_exists( 'get_current_network_id' ) ) { |
| 27 | 27 | $site_ids = get_sites( array( 'fields' => 'ids', 'network_id' => get_current_network_id() ) ); |
| 28 | 28 | } else { |
| 29 | + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Retrieving site IDs for multisite migration | |
| 29 | 30 | $site_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs WHERE site_id = $wpdb->siteid;" ); |
| 30 | 31 | } |
| 31 | 32 | // Install the plugin for all these sites. |
| 32 | 33 | foreach ( $site_ids as $site_id ) { |