diff --git a/.gitignore b/.gitignore index b780f97..2f3787f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ vendor/ tests/wp-content + +.idea + diff --git a/src/T10ns.php b/src/T10ns.php index fba7926..4906773 100644 --- a/src/T10ns.php +++ b/src/T10ns.php @@ -111,14 +111,11 @@ public function extract_package_data( $package ) { $this->slug = $this->extract_slug( $package->getName(), $this->package_type ); break; - case 'package': - if ( 'johnpbloch/wordpress' === $package->getName() || 'roots/wordpress' === $package->getName() ) { - $this->package_type = 'core'; - $this->slug = 'wordpress-core'; - break; - } - $this->is_wp_package = false; - return false; + case 'wordpress-core': + $this->package_type = 'core'; + $this->slug = 'wordpress-core'; + break; + default: $this->is_wp_package = false; return false;