Remove redundant 'Visit author homepage' title attributes for plugins and themes.
props joedolson. fixes #26554. Built from https://develop.svn.wordpress.org/trunk@28673 git-svn-id: http://core.svn.wordpress.org/trunk@28491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02657dcd66
commit
26d0ad5e12
|
@ -494,11 +494,11 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
if ( !empty( $plugin_data['Author'] ) ) {
|
if ( !empty( $plugin_data['Author'] ) ) {
|
||||||
$author = $plugin_data['Author'];
|
$author = $plugin_data['Author'];
|
||||||
if ( !empty( $plugin_data['AuthorURI'] ) )
|
if ( !empty( $plugin_data['AuthorURI'] ) )
|
||||||
$author = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
|
$author = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>';
|
||||||
$plugin_meta[] = sprintf( __( 'By %s' ), $author );
|
$plugin_meta[] = sprintf( __( 'By %s' ), $author );
|
||||||
}
|
}
|
||||||
if ( ! empty( $plugin_data['PluginURI'] ) )
|
if ( ! empty( $plugin_data['PluginURI'] ) )
|
||||||
$plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin site' ) . '">' . __( 'Visit plugin site' ) . '</a>';
|
$plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '">' . __( 'Visit plugin site' ) . '</a>';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the array of row meta for each plugin in the Plugins list table.
|
* Filter the array of row meta for each plugin in the Plugins list table.
|
||||||
|
|
|
@ -160,10 +160,10 @@ function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup
|
||||||
// Apply markup
|
// Apply markup
|
||||||
if ( $markup ) {
|
if ( $markup ) {
|
||||||
if ( $plugin_data['PluginURI'] && $plugin_data['Name'] )
|
if ( $plugin_data['PluginURI'] && $plugin_data['Name'] )
|
||||||
$plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin homepage' ) . '">' . $plugin_data['Name'] . '</a>';
|
$plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '">' . $plugin_data['Name'] . '</a>';
|
||||||
|
|
||||||
if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] )
|
if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] )
|
||||||
$plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
|
$plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '">' . $plugin_data['Author'] . '</a>';
|
||||||
|
|
||||||
$plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
|
$plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
|
||||||
|
|
||||||
|
|
|
@ -662,10 +662,7 @@ final class WP_Theme implements ArrayAccess {
|
||||||
break;
|
break;
|
||||||
case 'Author' :
|
case 'Author' :
|
||||||
if ( $this->get('AuthorURI') ) {
|
if ( $this->get('AuthorURI') ) {
|
||||||
static $attr = null;
|
$value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value );
|
||||||
if ( ! isset( $attr ) )
|
|
||||||
$attr = esc_attr__( 'Visit author homepage' );
|
|
||||||
$value = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $this->display( 'AuthorURI', true, $translate ), $attr, $value );
|
|
||||||
} elseif ( ! $value ) {
|
} elseif ( ! $value ) {
|
||||||
$value = __( 'Anonymous' );
|
$value = __( 'Anonymous' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue