hardening 2.3: 2meet-data-optimizer-latepoint-addon 0.1.3 (uninstall on large networks) #4

Merged
wpdev merged 2 commits from hardening/2.3 into main 2026-09-27 18:37:36 +08:00
Showing only changes of commit c2c6d90f0c - Show all commits
+9 -1
View File
@@ -15,7 +15,15 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
// dropping it loses no data; LatePoint's tables are left untouched.
global $wpdb;
$tmdo_latepoint_blogs = is_multisite() ? get_sites( array( 'fields' => 'ids' ) ) : array( get_current_blog_id() );
// 'number' => 0: get_sites() returns only 100 sites by default.
$tmdo_latepoint_blogs = is_multisite()
? get_sites(
array(
'fields' => 'ids',
'number' => 0,
)
)
: array( get_current_blog_id() );
foreach ( $tmdo_latepoint_blogs as $tmdo_latepoint_blog ) {
if ( is_multisite() ) {
switch_to_blog( $tmdo_latepoint_blog );