Update UpdateChecker.php - add check
This commit is contained in:
parent
cc5c8d9eca
commit
a622b0047a
|
|
@ -292,6 +292,8 @@ if ( !class_exists(UpdateChecker::class, false) ):
|
||||||
|
|
||||||
$reportingItems = json_decode($args['body'][$typePluralised], true);
|
$reportingItems = json_decode($args['body'][$typePluralised], true);
|
||||||
|
|
||||||
|
if ( null === $reportingItems ) return $args;
|
||||||
|
|
||||||
foreach ( $reportingItems[$typePluralised] as $key => $item ) {
|
foreach ( $reportingItems[$typePluralised] as $key => $item ) {
|
||||||
// https://make.wordpress.org/core/2021/06/29/introducing-update-uri-plugin-header-in-wordpress-5-8/
|
// https://make.wordpress.org/core/2021/06/29/introducing-update-uri-plugin-header-in-wordpress-5-8/
|
||||||
if (dirname($key) === $this->directoryName) {
|
if (dirname($key) === $this->directoryName) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue