Make WordPress Core


Ignore:
Timestamp:
12/16/2010 06:12:55 AM (13 years ago)
Author:
nacin
Message:

Use maybe_network_admin_url. see #15840.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import.php

    r16976 r16978  
    4545require_once ('admin-header.php');
    4646$parent_file = 'tools.php';
    47 $href = is_multisite() ? network_admin_url( 'plugin-install.php' ) : admin_url( 'plugin-install.php' );
    4847?>
    4948
     
    110109            }
    111110            if ( empty($action) )
    112                 $action = '<a href="' . esc_url( $href . '?tab=plugin-information&plugin=' . $plugin_slug .
    113                                         '&from=import&TB_iframe=true&width=600&height=550' ) . '" class="thickbox" title="' .
     111                $action = '<a href="' . esc_url( maybe_network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug .
     112                                        '&from=import&TB_iframe=true&width=600&height=550' ) ) . '" class="thickbox" title="' .
    114113                                        esc_attr__('Install importer') . '">' . $data[0] . '</a>';
    115114        } else {
     
    132131
    133132if ( current_user_can('install_plugins') )
    134     echo '<p>' . sprintf( __('If the importer you need is not listed, <a href="%s">search the plugins directory</a> to see if an importer is available.'), esc_url( $href . '?tab=search&type=tag&s=importer' ) ) . '</p>';
     133    echo '<p>' . sprintf( __('If the importer you need is not listed, <a href="%s">search the plugins directory</a> to see if an importer is available.'), esc_url( maybe_network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '</p>';
    135134?>
    136135
Note: See TracChangeset for help on using the changeset viewer.