self_admin_url in plugin-install. props ocean90, fixes #14062.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-11-20 01:38:21 +00:00
parent 9576fc93bf
commit 9e91b81274
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
$display_tabs = array();
foreach ( (array) $tabs as $action => $text ) {
$class = ( $action == $tab ) ? ' class="current"' : '';
$href = admin_url('plugin-install.php?tab=' . $action);
$href = self_admin_url('plugin-install.php?tab=' . $action);
$display_tabs[$action] = "<a href='$href'$class>$text</a>";
}
@ -178,7 +178,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
$author = wp_kses( $author, $plugins_allowedtags );
$action_links = array();
$action_links[] = '<a href="' . admin_url( 'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
$action_links[] = '<a href="' . self_admin_url( 'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
'&amp;TB_iframe=true&amp;width=600&amp;height=550' ) . '" class="thickbox" title="' .
esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '">' . __( 'Details' ) . '</a>';