Make WordPress Core


Ignore:
Timestamp:
11/20/2010 01:38:21 AM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-plugin-install-list-table.php

    r16182 r16499  
    104104        foreach ( (array) $tabs as $action => $text ) {
    105105            $class = ( $action == $tab ) ? ' class="current"' : '';
    106             $href = admin_url('plugin-install.php?tab=' . $action);
     106            $href = self_admin_url('plugin-install.php?tab=' . $action);
    107107            $display_tabs[$action] = "<a href='$href'$class>$text</a>";
    108108        }
     
    179179
    180180            $action_links = array();
    181             $action_links[] = '<a href="' . admin_url( 'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
     181            $action_links[] = '<a href="' . self_admin_url( 'plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
    182182                                '&amp;TB_iframe=true&amp;width=600&amp;height=550' ) . '" class="thickbox" title="' .
    183183                                esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '">' . __( 'Details' ) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.