Make WordPress Core


Ignore:
Timestamp:
02/08/2013 04:20:01 PM (11 years ago)
Author:
helen
Message:

Open external links to plugin homepages, plugin author homepages, and theme author homepages in a new window/tab. props SergeyBiryukov. fixes #20839.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r23191 r23394  
    158158    if ( $markup ) {
    159159        if ( $plugin_data['PluginURI'] && $plugin_data['Name'] )
    160             $plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin homepage' ) . '">' . $plugin_data['Name'] . '</a>';
     160            $plugin_data['Title'] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin homepage' ) . '" target="_blank">' . $plugin_data['Name'] . '</a>';
    161161
    162162        if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] )
    163             $plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '">' . $plugin_data['Author'] . '</a>';
     163            $plugin_data['Author'] = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '" target="_blank">' . $plugin_data['Author'] . '</a>';
    164164
    165165        $plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
Note: See TracChangeset for help on using the changeset viewer.