BoldGrid / boldgrid-backup

The Total Upkeep plugin.
GNU General Public License v2.0
11 stars 9 forks source link

[Bug] Fatal Error if Plugin Directory has a name other than boldgrid-backup #492

Open jessecowens opened 3 years ago

jessecowens commented 3 years ago

Describe the bug If the plugin is activated and its directory name is anything other than boldgrid-backup, a fatal error will occur:

Fatal error: Uncaught Error: Call to a member function wordpress_option_updated() on null
in wp-content/plugins/boldgrid-backup-stop/includes/class-boldgrid-backup-activator.php on line 136

To Reproduce Steps to reproduce the behavior:

  1. Install the plugin and rename its directory
  2. Activate the plugin

Expected behavior The plugin should avoid a fatal error in this case, checking to see what the proper path of the plugin files are instead or relying on boldgrid-backup

Additional context This issue was reported on the WordPress.org Forums here