wp-youtube-lyte
wp-youtube-lyte copied to clipboard
Compatibility with bedrock-autoloader which loads plugins as must-use plugins
Fixes 2 problems:
- Couple of times
plugins_url() . '/' . plugin_basename( dirname( __FILE__ ) ) . '<relative url here>'
was used which resolved to/plugins/wp-youtube-lyte/<relative url here>
. And that doesn't work when the plugin is loaded as/mu-plugins/wp-youtube-lyte
. - As workaround for issue roots/bedrock-autoloader#29, I explicitly made
$lyteSettings
declared asglobal
.