From 1c816c795b0030a91f9bfa212da894575b090db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Fri, 8 Feb 2013 16:20:01 +0000 Subject: [PATCH] Open external links to plugin homepages, plugin author homepages, and theme author homepages in a new window/tab. props SergeyBiryukov. fixes #20839. git-svn-id: http://core.svn.wordpress.org/trunk@23394 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-ms-themes-list-table.php | 2 +- wp-admin/includes/class-wp-plugins-list-table.php | 4 ++-- wp-admin/includes/plugin.php | 4 ++-- wp-includes/class-wp-theme.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 2461b1d1db..d4190249bf 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -331,7 +331,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { $theme_meta[] = sprintf( __( 'By %s' ), $theme->display('Author') ); if ( $theme->get('ThemeURI') ) - $theme_meta[] = '' . __( 'Visit Theme Site' ) . ''; + $theme_meta[] = '' . __( 'Visit Theme Site' ) . ''; $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status ); echo implode( ' | ', $theme_meta ); diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index a1cbeec681..ec60afdfe6 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -411,11 +411,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' ) . ''; $plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $status ); echo implode( ' | ', $plugin_meta ); diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 109e66d8b7..1a9a7a628e 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -157,10 +157,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 7585fba951..ca105e881a 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -651,7 +651,7 @@ final class WP_Theme implements ArrayAccess { 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( '%3$s', $this->display( 'AuthorURI', true, $translate ), $attr, $value ); } elseif ( ! $value ) { $value = __( 'Anonymous' ); }