Closed mrhead closed 2 years ago
28b11fa Enable WP debug mode to show warnings and notices
Our customers occasionally contact us regarding warning and notices caused by our plugin. Enabling them in the dev environment will help us catch them before our customers do.
https://wordpress.org/support/article/debugging-in-wordpress/#php-errors-warnings-and-notices
0ddae25 Fix "Undefined variable" warnings in the bulk restrict tool
PHP 7.3 started emitting PHP notices for undefined variables passed to compact(). This resulted in two warnings in the bulk restrict tool.
compact()
This commit fixes it by setting the previously undefined variables for the bulk restrict tool and passing them down to the metabox template.
metabox
More info: https://php.watch/versions/7.3/compact-warn-undefined-vars
Fixes: https://3.basecamp.com/3293071/buckets/5610905/todos/5439585091
28b11fa Enable WP debug mode to show warnings and notices
Our customers occasionally contact us regarding warning and notices caused by our plugin. Enabling them in the dev environment will help us catch them before our customers do.
https://wordpress.org/support/article/debugging-in-wordpress/#php-errors-warnings-and-notices
0ddae25 Fix "Undefined variable" warnings in the bulk restrict tool
PHP 7.3 started emitting PHP notices for undefined variables passed to
compact()
. This resulted in two warnings in the bulk restrict tool.This commit fixes it by setting the previously undefined variables for the bulk restrict tool and passing them down to the
metabox
template.More info: https://php.watch/versions/7.3/compact-warn-undefined-vars
Fixes: https://3.basecamp.com/3293071/buckets/5610905/todos/5439585091