elementor / WordPressURLDetector

A library to get all public URLs from a WordPress application.
The Unlicense
7 stars 4 forks source link

fix getting active plugins in multisite environment #8

Closed stefanullinger closed 3 years ago

stefanullinger commented 3 years ago

As discussed in https://github.com/leonstafford/wp2static/issues/730 WordPress stores network active plugins of a Wordpress multisite environment in the active_sitewide_plugins option of the wp_sitemeta table. This option can be accessed using get_site_option.

We need to merge these plugins with the blog's active plugins in order to get a list of all active plugins for a single blog.

leonstafford commented 3 years ago

Thanks @stefanullinger, sorry, the settings for repo require me to manually approve first pull request, it seems.

Tests failing in this repo before first release, regardless, so I've merged this in and will do same in WP2Static, thanks so much for putting in both!!