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

View File

@ -103,7 +103,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
$display_tabs = array(); $display_tabs = array();
foreach ( (array) $tabs as $action => $text ) { foreach ( (array) $tabs as $action => $text ) {
$class = ( $action == $tab ) ? ' class="current"' : ''; $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>"; $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 ); $author = wp_kses( $author, $plugins_allowedtags );
$action_links = array(); $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="' . '&amp;TB_iframe=true&amp;width=600&amp;height=550' ) . '" class="thickbox" title="' .
esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '">' . __( 'Details' ) . '</a>'; esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '">' . __( 'Details' ) . '</a>';