Skip to content

Commit 64b0135

Browse files
Use array_fill_keys
Co-authored-by: Weston Ruter <[email protected]>
1 parent 43ff073 commit 64b0135

File tree

1 file changed

+28
-25
lines changed

1 file changed

+28
-25
lines changed

src/wp-admin/includes/class-wp-plugins-list-table.php

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -767,31 +767,34 @@ public function single_row( $item ) {
767767
'plugin_information',
768768
array(
769769
'slug' => $plugin_slug,
770-
'fields' => array(
771-
'sections' => false,
772-
'rating' => false,
773-
'downloaded' => false,
774-
'last_updated' => false,
775-
'banners' => false,
776-
'icons' => false,
777-
'active_installs' => false,
778-
'short_description' => false,
779-
'tags' => false,
780-
'compatibility' => false,
781-
'contributors' => false,
782-
'ratings' => false,
783-
'screenshots' => false,
784-
'support_url' => false,
785-
'added' => false,
786-
'homepage' => false,
787-
'download_link' => false,
788-
'upgrade_notice' => false,
789-
'versions' => false,
790-
'business_model' => false,
791-
'repository_url' => false,
792-
'commercial_support_url' => false,
793-
'donate_link' => false,
794-
'preview_link' => false,
770+
'fields' => array_fill_keys(
771+
array(
772+
'sections',
773+
'rating',
774+
'downloaded',
775+
'last_updated',
776+
'banners',
777+
'icons',
778+
'active_installs',
779+
'short_description',
780+
'tags',
781+
'compatibility',
782+
'contributors',
783+
'ratings',
784+
'screenshots',
785+
'support_url',
786+
'added',
787+
'homepage',
788+
'download_link',
789+
'upgrade_notice',
790+
'versions',
791+
'business_model',
792+
'repository_url',
793+
'commercial_support_url',
794+
'donate_link',
795+
'preview_link',
796+
),
797+
false
795798
),
796799
)
797800
);

0 commit comments

Comments
 (0)