linking plugin name to the plugin url in system status

This commit is contained in:
Patrick Rauland 2013-07-30 21:31:19 -05:00
parent 34624fa4ca
commit 012e6fe2f9
1 changed files with 7 additions and 1 deletions

View File

@ -190,6 +190,12 @@
if ( ! empty( $plugin_data['Name'] ) ) {
// link the plugin name to the plugin url if available
$plugin_name = $plugin_data['Name'];
if ( ! empty( $plugin_data['PluginURI'] ) ) {
$plugin_name = '<a href="' . $plugin_data['PluginURI'] . '" title="' . __( 'Visit plugin homepage' , 'woocommerce' ) . '">' . $plugin_name . '</a>';
}
if ( strstr( $dirname, 'woocommerce' ) ) {
if ( false === ( $version_data = get_transient( $plugin . '_version_data' ) ) ) {
@ -214,7 +220,7 @@
$version_string = ' &ndash; <strong style="color:red;">' . $version_data['version'] . ' ' . __( 'is available', 'woocommerce' ) . '</strong>';
}
$wc_plugins[] = $plugin_data['Name'] . ' ' . __( 'by', 'woocommerce' ) . ' ' . $plugin_data['Author'] . ' ' . __( 'version', 'woocommerce' ) . ' ' . $plugin_data['Version'] . $version_string;
$wc_plugins[] = $plugin_name . ' ' . __( 'by', 'woocommerce' ) . ' ' . $plugin_data['Author'] . ' ' . __( 'version', 'woocommerce' ) . ' ' . $plugin_data['Version'] . $version_string;
}
}