Changeset 15898
- Timestamp:
- 10/21/2010 05:06:52 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r15871 r15898 1359 1359 1360 1360 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>'; 1362 1362 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() ) 1366 1366 unset( $install_actions['activate'], $install_actions['preview'] ); 1367 1367 -
trunk/wp-admin/includes/default-list-tables.php
r15887 r15898 4185 4185 foreach ( (array) $tabs as $action => $text ) { 4186 4186 $class = ( $action == $tab ) ? ' class="current"' : ''; 4187 $href = admin_url('theme-install.php?tab=' . $action);4187 $href = self_admin_url('theme-install.php?tab=' . $action); 4188 4188 $display_tabs[$action] = "<a href='$href'$class>$text</a>"; 4189 4189 } -
trunk/wp-admin/includes/theme-install.php
r15727 r15898 78 78 ?> 79 79 <h4><?php _e('Feature Filter') ?></h4> 80 <form method="post" action="<?php echo admin_url( 'theme-install.php?tab=search' ); ?>">80 <form method="post" action="<?php echo self_admin_url( 'theme-install.php?tab=search' ); ?>"> 81 81 <p class="install-help"><?php _e('Find a theme based on specific features') ?></p> 82 82 <?php … … 117 117 <h4><?php _e('Install a theme in .zip format') ?></h4> 118 118 <p class="install-help"><?php _e('If you have a theme in a .zip format, you may install it by uploading it here.') ?></p> 119 <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('update.php?action=upload-theme') ?>">119 <form method="post" enctype="multipart/form-data" action="<?php echo self_admin_url('update.php?action=upload-theme') ?>"> 120 120 <?php wp_nonce_field( 'theme-upload') ?> 121 121 <input type="file" name="themezip" /> … … 141 141 if ( !is_array($actions) ) { 142 142 $actions = array(); 143 $actions[] = '<a href="' . admin_url('theme-install.php?tab=theme-information&theme=' . $theme->slug .143 $actions[] = '<a href="' . self_admin_url('theme-install.php?tab=theme-information&theme=' . $theme->slug . 144 144 '&TB_iframe=true&tbWidth=500&tbHeight=385') . '" class="thickbox thickbox-preview onclick" title="' . esc_attr(sprintf(__('Install “%s”'), $name)) . '">' . __('Install') . '</a>'; 145 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . esc_attr(sprintf(__('Preview “%s”'), $name)) . '">' . __('Preview') . '</a>'; 145 if ( !is_network_admin() ) 146 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . esc_attr(sprintf(__('Preview “%s”'), $name)) . '">' . __('Preview') . '</a>'; 146 147 $actions = apply_filters('theme_install_action_links', $actions, $theme); 147 148 } … … 289 290 case 'install': 290 291 if ( current_user_can('install_themes') ) : 291 $buttons .= '<a class="button-primary" id="install" href="' . wp_nonce_url( admin_url('update.php?action=install-theme&theme=' . $api->slug), 'install-theme_' . $api->slug) . '" target="_parent">' . __('Install Now') . '</a>';292 $buttons .= '<a class="button-primary" id="install" href="' . wp_nonce_url(self_admin_url('update.php?action=install-theme&theme=' . $api->slug), 'install-theme_' . $api->slug) . '" target="_parent">' . __('Install Now') . '</a>'; 292 293 endif; 293 294 break; 294 295 case 'update_available': 295 296 if ( current_user_can('update_themes') ) : 296 $buttons .= '<a class="button-primary" id="install" href="' . wp_nonce_url( admin_url('update.php?action=upgrade-theme&theme=' . $update_file), 'upgrade-theme_' . $update_file) . '" target="_parent">' . __('Install Update Now') . '</a>';297 $buttons .= '<a class="button-primary" id="install" href="' . wp_nonce_url(self_admin_url('update.php?action=upgrade-theme&theme=' . $update_file), 'upgrade-theme_' . $update_file) . '" target="_parent">' . __('Install Update Now') . '</a>'; 297 298 endif; 298 299 break; -
trunk/wp-admin/network/menu.php
r15886 r15898 20 20 21 21 $menu[10] = array(__('Users'), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'div'); 22 22 23 $menu[15] = array(__('Themes'), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div'); 24 $submenu['themes.php'][5] = array( __('Themes'), 'manage_network_themes', 'themes.php' ); 25 $submenu['themes.php'][10] = array( _x('Add New', 'theme'), 'manage_network_themes', 'theme-install.php' ); 26 $submenu['themes.php'][15] = array( _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php' ); 23 27 24 28 $plugin_update_count = $theme_update_count = $wordpress_update_count = 0; … … 60 64 $menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator-last' ); 61 65 62 $submenu['themes.php'][5] = array( __('Themes'), 'manage_network_themes', 'themes.php' );63 $submenu['themes.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_themes', 'theme-editor.php' );64 65 66 require_once(ABSPATH . 'wp-admin/includes/menu.php'); 66 67 -
trunk/wp-admin/theme-install.php
r15578 r15898 16 16 $title = __('Install Themes'); 17 17 $parent_file = 'themes.php'; 18 $submenu_file = 'themes.php'; 18 if ( !is_network_admin() ) 19 $submenu_file = 'themes.php'; 19 20 20 21 wp_enqueue_style( 'theme-install' ); … … 36 37 add_contextual_help($current_screen, $help); 37 38 38 include( './admin-header.php');39 include(ABSPATH . 'wp-admin/admin-header.php'); 39 40 ?> 40 41 <div class="wrap"> 41 <?php screen_icon(); ?> 42 <?php 43 screen_icon(); 44 45 if ( is_network_admin() ) : ?> 46 <h2><?php echo esc_html( $title ); ?></h2> 47 <?php else : ?> 42 48 <h2><a href="themes.php" class="nav-tab"><?php echo esc_html_x('Manage Themes', 'theme'); ?></a><a href="theme-install.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a></h2> 43 49 44 <?php $wp_list_table->views(); ?> 50 <?php 51 endif; 52 53 $wp_list_table->views(); ?> 45 54 46 55 <br class="clear" /> … … 48 57 </div> 49 58 <?php 50 include( './admin-footer.php');59 include(ABSPATH . 'wp-admin/admin-footer.php'); 51 60
Note: See TracChangeset
for help on using the changeset viewer.