Skip to content

Commit

Permalink
fix wordpress core languages
Browse files Browse the repository at this point in the history
  • Loading branch information
msalaj committed Sep 24, 2022
1 parent 48d7c41 commit 6fd1df6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
vendor/

tests/wp-content

.idea

13 changes: 5 additions & 8 deletions src/T10ns.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6fd1df6

Please sign in to comment.