Ticket #20839: 20839.2.patch
File 20839.2.patch, 4.0 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/class-wp-ms-themes-list-table.php
331 331 $theme_meta[] = sprintf( __( 'By %s' ), $theme->display('Author') ); 332 332 333 333 if ( $theme->get('ThemeURI') ) 334 $theme_meta[] = '<a href="' . $theme->display('ThemeURI') . '" title="' . esc_attr__( 'Visit theme homepage' ) . '" >' . __( 'Visit Theme Site' ) . '</a>';334 $theme_meta[] = '<a href="' . $theme->display('ThemeURI') . '" title="' . esc_attr__( 'Visit theme homepage' ) . '" target="_blank">' . __( 'Visit Theme Site' ) . '</a>'; 335 335 336 336 $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status ); 337 337 echo implode( ' | ', $theme_meta ); -
wp-admin/includes/class-wp-plugins-list-table.php
411 411 if ( !empty( $plugin_data['Author'] ) ) { 412 412 $author = $plugin_data['Author']; 413 413 if ( !empty( $plugin_data['AuthorURI'] ) ) 414 $author = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '" >' . $plugin_data['Author'] . '</a>';414 $author = '<a href="' . $plugin_data['AuthorURI'] . '" title="' . esc_attr__( 'Visit author homepage' ) . '" target="_blank">' . $plugin_data['Author'] . '</a>'; 415 415 $plugin_meta[] = sprintf( __( 'By %s' ), $author ); 416 416 } 417 417 if ( ! empty( $plugin_data['PluginURI'] ) ) 418 $plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin site' ) . '" >' . __( 'Visit plugin site' ) . '</a>';418 $plugin_meta[] = '<a href="' . $plugin_data['PluginURI'] . '" title="' . esc_attr__( 'Visit plugin site' ) . '" target="_blank">' . __( 'Visit plugin site' ) . '</a>'; 419 419 420 420 $plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $status ); 421 421 echo implode( ' | ', $plugin_meta ); -
wp-admin/includes/plugin.php
157 157 // Apply markup 158 158 if ( $markup ) { 159 159 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>'; 161 161 162 162 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>'; 164 164 165 165 $plugin_data['Description'] = wptexturize( $plugin_data['Description'] ); 166 166 -
wp-includes/class-wp-theme.php
651 651 static $attr = null; 652 652 if ( ! isset( $attr ) ) 653 653 $attr = esc_attr__( 'Visit author homepage' ); 654 $value = sprintf( '<a href="%1$s" title="%2$s" >%3$s</a>', $this->display( 'AuthorURI', true, $translate ), $attr, $value );654 $value = sprintf( '<a href="%1$s" title="%2$s" target="_blank">%3$s</a>', $this->display( 'AuthorURI', true, $translate ), $attr, $value ); 655 655 } elseif ( ! $value ) { 656 656 $value = __( 'Anonymous' ); 657 657 }