WordPress.org

Make WordPress Core

Ticket #15718: 15718.diff

File 15718.diff, 1.8 KB (added by duck_, 4 years ago)
  • wp-admin/includes/class-wp-upgrader.php

     
    12261226        function bulk_footer() { 
    12271227                parent::bulk_footer(); 
    12281228                $update_actions =  array( 
    1229                         'themes_page' => '<a href="' . admin_url('themes.php') . '" title="' . esc_attr__('Go to themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>', 
    1230                         'updates_page' => '<a href="' . admin_url('update-core.php') . '" title="' . esc_attr__('Go to WordPress Updates page') . '" target="_parent">' . __('Return to WordPress Updates') . '</a>' 
     1229                        'themes_page' => '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Go to themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>', 
     1230                        'updates_page' => '<a href="' . self_admin_url('update-core.php') . '" title="' . esc_attr__('Go to WordPress Updates page') . '" target="_parent">' . __('Return to WordPress Updates') . '</a>' 
    12311231                ); 
    12321232 
    12331233                $update_actions = apply_filters('update_bulk_theme_complete_actions', $update_actions, $this->theme_info); 
     
    14171417                                unset($update_actions['preview'], $update_actions['activate']); 
    14181418                } 
    14191419 
    1420                 $update_actions['themes_page'] = '<a href="' . admin_url('themes.php') . '" title="' . esc_attr__('Return to Themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>'; 
     1420                $update_actions['themes_page'] = '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Return to Themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>'; 
    14211421 
    14221422                $update_actions = apply_filters('update_theme_complete_actions', $update_actions, $this->theme); 
    14231423                if ( ! empty($update_actions) )