Skip to content

simplify multisite iteration in (un)install routine#49

Merged
stklcode merged 1 commit into
developfrom
refactor/install
May 23, 2026
Merged

simplify multisite iteration in (un)install routine#49
stklcode merged 1 commit into
developfrom
refactor/install

Conversation

@stklcode
Copy link
Copy Markdown
Owner

get_sites()1 is guaranteed to be available on WP 5.1 and later and never returns the legacy array of arrays structure. Drop the redundant checks.

We also do not require the fill site object, so let's just fetch IDs.

Footnotes

  1. https://developer.wordpress.org/reference/functions/get_sites/

get_sites() is guaranteed to be available on WP 5.1 and later and never
returns the legacy array of arrays structure. Drop the redundant checks.

We also do not require the fill site object, so let's just fetch IDs.
@stklcode stklcode added this to the 1.8.0 milestone May 23, 2026
@stklcode stklcode self-assigned this May 23, 2026
@sonarqubecloud
Copy link
Copy Markdown

@stklcode stklcode merged commit 6d73a96 into develop May 23, 2026
21 of 22 checks passed
@stklcode stklcode deleted the refactor/install branch May 23, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant