Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
is_installed()
check now directly checks if the table exists and use the site cache instead of relying just on the option.wpmu_new_blog
is deprecated, so swapping it out forwp_insert_site
.Also simplified the usage a bit, now just have the public methods listed below. I checked the methods I removed and didn't see any usage, but because they were public I've added them back with deprecation notices just for extra safety during updates.
The only piece this PR doesn't solve for is the "Prepare for schema changes" action item. Will handle that separately when the time comes, probably with
needs_db_update()
andmaybe_run_database_update()
methods.Testing
Single Site:
Multisite: