wp-youtube-lyte icon indicating copy to clipboard operation
wp-youtube-lyte copied to clipboard

Compatibility with bedrock-autoloader which loads plugins as must-use plugins

Open gerwinjansen opened this issue 10 months ago • 2 comments

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 as global.

gerwinjansen avatar Apr 19 '24 18:04 gerwinjansen