Skip to content

Commit c9361a5

Browse files
committed
Output mu-plugin Name field in to title key.
1 parent dab4689 commit c9361a5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
},
2929
"config": {
3030
"process-timeout": 7200,
31-
"sort-packages": true
31+
"sort-packages": true,
32+
"allow-plugins": {
33+
"dealerdirect/phpcodesniffer-composer-installer": true
34+
}
3235
},
3336
"extra": {
3437
"branch-alias": {

src/Plugin_Command.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ protected function get_all_items() {
234234
$mu_version = $mu_plugin['Version'];
235235
}
236236

237+
$mu_title = '';
238+
if ( ! empty( $mu_plugin['Name'] ) ) {
239+
$mu_title = $mu_plugin['Title'];
240+
}
241+
237242
$items[ $file ] = array(
238243
'name' => Utils\get_plugin_name( $file ),
239244
'status' => 'must-use',
@@ -242,7 +247,7 @@ protected function get_all_items() {
242247
'update_package' => null,
243248
'version' => $mu_version,
244249
'update_id' => '',
245-
'title' => Utils\get_plugin_name( $file ),
250+
'title' => $mu_title,
246251
'description' => '',
247252
'file' => $file,
248253
);

0 commit comments

Comments
 (0)