Unchecked reference to MULTISITE in framework throws fatals in PHP 8+
-
In the Plainview WP SDK, a reference is made to the
MULTISITE
constant: https://plugins.trac.wordpress.org/browser/threewp-broadcast/tags/51.03/src/sdk/wordpress/base.php?marks=115-116#L110But the
MULTISITE
constant is not always defined on legacy WPMS installations. As such, PHP 8 throws an “unknown constant” fatal error.I’m unsure that it’s necessary to check a constant here. The function
is_multisite()
should give you what you need for the purposes of this SDK.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.