mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01:00
Don't show plugin by line if no author. Props Denis-de-Bernardy. fixes #4632 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e9636d400c
commit
7c6f70ba9c
@ -121,7 +121,7 @@ function _get_plugin_data_markup_translate($plugin_data, $markup = true, $transl
|
|||||||
else
|
else
|
||||||
$plugin_data['Title'] = $plugin_data['Name'];
|
$plugin_data['Title'] = $plugin_data['Name'];
|
||||||
|
|
||||||
if ( ! empty($plugin_data['AuthorURI']) )
|
if ( ! empty($plugin_data['AuthorURI']) && ! empty($plugin_data['Author']) )
|
||||||
$plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . __( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
|
$plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . __( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
|
||||||
|
|
||||||
$plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
|
$plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
|
||||||
|
Loading…
Reference in New Issue
Block a user