wp_get_sites is deprecated; use get_sites()
-
PHP error logs show:
wp_get_sites is <strong>deprecated</strong> since version 4.6.0! Use get_sites() instead
due to these lines:wordfence/lib/wfScanEngine.php: $blogIDs = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM {$wpdb->blogs} WHERE blog_id > %d ORDER BY blog_id ASC", $this->gsbMultisiteBlogOffset)); //Can't use wp_get_sites or get_sites because they return empty at 10k sites wordfence/lib/wordfenceURLHoover.php: $blogIDs = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}"); //Can't use wp_get_sites or get_sites because they return empty at 10k sites wordfence/lib/wfLog.php: $sites = wp_get_sites(array(
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_get_sites is deprecated; use get_sites()’ is closed to new replies.