mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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: https://develop.svn.wordpress.org/trunk@23394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -651,7 +651,7 @@ final class WP_Theme implements ArrayAccess {
|
||||
static $attr = null;
|
||||
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 );
|
||||
$value = sprintf( '<a href="%1$s" title="%2$s" target="_blank">%3$s</a>', $this->display( 'AuthorURI', true, $translate ), $attr, $value );
|
||||
} elseif ( ! $value ) {
|
||||
$value = __( 'Anonymous' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user