Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/wp-admin/includes/class-wp-plugins-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,22 @@ public function single_row( $item ) {
);
}

if ( ! empty( $plugin_data['AuthorName'] ) && isset( $plugin_data['slug'] ) && current_user_can( 'install_plugins' ) ) {
$author_name = wp_strip_all_tags( $plugin_data['AuthorName'] );
$plugin_meta[] = sprintf(
'<a href="%s" aria-label="%s">%s</a>',
esc_url(
network_admin_url(
'plugin-install.php?tab=search&s=' . urlencode( $author_name )
)
),
/* translators: %s: Plugin author name. */
esc_attr( sprintf( __( 'Search for more plugins by %s' ), $author_name ) ),
/* translators: %s: Plugin author name. */
esc_html( sprintf( __( 'View more plugins by %s' ), $author_name ) )
);
}

/**
* Filters the array of row meta for each plugin in the Plugins list table.
*
Expand Down
Loading