Skip to content

Commit

Permalink
Capitalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Sep 11, 2014
1 parent a6ae2c9 commit 1f40956
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/extension-meta/extension-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,13 @@ public static function getPluginHeaders($fileContents) {
$headers['Title'] = $headers['Name'];

//"Depends" is a comma-separated list. Convert it to an array.
if ( !empty($headers['depends']) ){
$headers['depends'] = array_map('trim', explode(',', $headers['depends']));
if ( !empty($headers['Depends']) ){
$headers['Depends'] = array_map('trim', explode(',', $headers['Depends']));
}

//Same for "Provides"
if ( !empty($headers['provides']) ){
$headers['provides'] = array_map('trim', explode(',', $headers['provides']));
if ( !empty($headers['Provides']) ){
$headers['Provides'] = array_map('trim', explode(',', $headers['Provides']));
}

//If it doesn't have a name, it's probably not a plugin.
Expand Down

0 comments on commit 1f40956

Please sign in to comment.