Closed nviitala closed 5 years ago
$bugsnagWordpress to be Bugsnag_Wordpress object
$bugsnagWordpress is null
Run wp-cli's eval-file ( https://developer.wordpress.org/cli/commands/eval-file/ ) to file which has a $bugsnagWordpress variable
1.3.0
Suggested fix: Add: global $bugsnagWordpress; before: $bugsnagWordpress = new Bugsnag_Wordpress(); On bugsnag.php
global $bugsnagWordpress;
$bugsnagWordpress = new Bugsnag_Wordpress();
Hi @nviitala, thanks for the feedback, sorry it's taken so long to get to this. We'll have a look at making that change.
This will be fixed in #40
Expected behavior
$bugsnagWordpress to be Bugsnag_Wordpress object
Observed behavior
$bugsnagWordpress is null
Steps to reproduce
Run wp-cli's eval-file ( https://developer.wordpress.org/cli/commands/eval-file/ ) to file which has a $bugsnagWordpress variable
Version
1.3.0
Additional information
Suggested fix: Add:
global $bugsnagWordpress;
before:$bugsnagWordpress = new Bugsnag_Wordpress();
On bugsnag.php