mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
PHP 7.3 Compatibility: Fix compact related notices.
In PHP 7.3, the `compact()` function has been changed to issue an `E_NOTICE` level error if a passed string refers to an unset variable. In previous versions of PHP, this notice was silently skipped. This fixes a few more instances of unset variables in the WordPress admin. The full RFC can be viewed here: https://wiki.php.net/rfc/compact. See #44416. Merges [44185] into trunk. Fixes #45483. git-svn-id: https://develop.svn.wordpress.org/trunk@44297 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -427,6 +427,7 @@ function install_plugin_install_status( $api, $loop = false ) {
|
||||
$status = 'install';
|
||||
$url = false;
|
||||
$update_file = false;
|
||||
$version = '';
|
||||
|
||||
/*
|
||||
* Check to see if this plugin is known to be installed,
|
||||
|
||||
Reference in New Issue
Block a user