Make WordPress Core


Ignore:
Timestamp:
10/21/2010 05:06:52 PM (14 years ago)
Author:
nacin
Message:

Network admin theme install. props PeteMall, fixes #15184.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r15871 r15898  
    13591359
    13601360        if ( $this->type == 'web' )
    1361             $install_actions['themes_page'] = '<a href="' . admin_url('theme-install.php') . '" title="' . esc_attr__('Return to Theme Installer') . '" target="_parent">' . __('Return to Theme Installer') . '</a>';
     1361            $install_actions['themes_page'] = '<a href="' . self_admin_url('theme-install.php') . '" title="' . esc_attr__('Return to Theme Installer') . '" target="_parent">' . __('Return to Theme Installer') . '</a>';
    13621362        else
    1363             $install_actions['themes_page'] = '<a href="' . admin_url('themes.php') . '" title="' . esc_attr__('Themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>';
    1364 
    1365         if ( ! $this->result || is_wp_error($this->result) )
     1363            $install_actions['themes_page'] = '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>';
     1364
     1365        if ( ! $this->result || is_wp_error($this->result) || is_network_admin() )
    13661366            unset( $install_actions['activate'], $install_actions['preview'] );
    13671367
Note: See TracChangeset for help on using the changeset viewer.