From 26d0ad5e126cab03dc51c5535acff6535484aeaa Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 Jun 2014 04:52:16 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-plugins-list-table.php | 4 ++-- wp-admin/includes/plugin.php | 4 ++-- wp-includes/class-wp-theme.php | 5 +---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index e75c7a2c7d..2d5e4979b0 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -494,11 +494,11 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( !empty( $plugin_data['Author'] ) ) { $author = $plugin_data['Author']; if ( !empty( $plugin_data['AuthorURI'] ) ) - $author = '' . $plugin_data['Author'] . ''; + $author = '' . $plugin_data['Author'] . ''; $plugin_meta[] = sprintf( __( 'By %s' ), $author ); } if ( ! empty( $plugin_data['PluginURI'] ) ) - $plugin_meta[] = '' . __( 'Visit plugin site' ) . ''; + $plugin_meta[] = '' . __( 'Visit plugin site' ) . ''; /** * Filter the array of row meta for each plugin in the Plugins list table. diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index b321118876..67b116ea57 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -160,10 +160,10 @@ function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup // Apply markup if ( $markup ) { if ( $plugin_data['PluginURI'] && $plugin_data['Name'] ) - $plugin_data['Title'] = '' . $plugin_data['Name'] . ''; + $plugin_data['Title'] = '' . $plugin_data['Name'] . ''; if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] ) - $plugin_data['Author'] = '' . $plugin_data['Author'] . ''; + $plugin_data['Author'] = '' . $plugin_data['Author'] . ''; $plugin_data['Description'] = wptexturize( $plugin_data['Description'] ); diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index 25e153fe2b..eaf244b78e 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -662,10 +662,7 @@ final class WP_Theme implements ArrayAccess { break; case 'Author' : if ( $this->get('AuthorURI') ) { - static $attr = null; - if ( ! isset( $attr ) ) - $attr = esc_attr__( 'Visit author homepage' ); - $value = sprintf( '%3$s', $this->display( 'AuthorURI', true, $translate ), $attr, $value ); + $value = sprintf( '%2$s', $this->display( 'AuthorURI', true, $translate ), $value ); } elseif ( ! $value ) { $value = __( 'Anonymous' ); }