mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-17 08:05:21 +01:00
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:
parent
9576fc93bf
commit
9e91b81274
@ -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&plugin=' . $plugin['slug'] .
|
$action_links[] = '<a href="' . self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin['slug'] .
|
||||||
'&TB_iframe=true&width=600&height=550' ) . '" class="thickbox" title="' .
|
'&TB_iframe=true&width=600&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>';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user