Changeset 15867 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 10/20/2010 02:16:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r15519 r15867 102 102 foreach ( (array)$api_tags as $tag ) 103 103 $tags[ $tag['name'] ] = (object) array( 104 'link' => esc_url( admin_url('plugin-install.php?tab=search&type=tag&s=' . urlencode($tag['name'])) ),104 'link' => esc_url( self_admin_url('plugin-install.php?tab=search&type=tag&s=' . urlencode($tag['name'])) ), 105 105 'name' => $tag['name'], 106 106 'id' => sanitize_title_with_dashes($tag['name']), … … 144 144 <h4><?php _e('Install a plugin in .zip format') ?></h4> 145 145 <p class="install-help"><?php _e('If you have a plugin in a .zip format, you may install it by uploading it here.') ?></p> 146 <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('update.php?action=upload-plugin') ?>">146 <form method="post" enctype="multipart/form-data" action="<?php echo self_admin_url('update.php?action=upload-plugin') ?>"> 147 147 <?php wp_nonce_field( 'plugin-upload') ?> 148 148 <label class="screen-reader-text" for="pluginzip"><?php _e('Plugin zip file'); ?></label> … … 196 196 $version = $plugin->new_version; 197 197 if ( current_user_can('update_plugins') ) 198 $url = wp_nonce_url( admin_url('update.php?action=upgrade-plugin&plugin=' . $update_file), 'upgrade-plugin_' . $update_file);198 $url = wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin=' . $update_file), 'upgrade-plugin_' . $update_file); 199 199 break; 200 200 } … … 207 207 if ( empty($installed_plugin) ) { 208 208 if ( current_user_can('install_plugins') ) 209 $url = wp_nonce_url( admin_url('update.php?action=install-plugin&plugin=' . $api->slug), 'install-plugin_' . $api->slug);209 $url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $api->slug), 'install-plugin_' . $api->slug); 210 210 } else { 211 211 $key = array_shift( $key = array_keys($installed_plugin) ); //Use the first plugin regardless of the name, Could have issues for multiple-plugins in one directory if they share different version numbers … … 227 227 // "install" & no directory with that slug 228 228 if ( current_user_can('install_plugins') ) 229 $url = wp_nonce_url( admin_url('update.php?action=install-plugin&plugin=' . $api->slug), 'install-plugin_' . $api->slug);229 $url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $api->slug), 'install-plugin_' . $api->slug); 230 230 } 231 231 }
Note: See TracChangeset
for help on using the changeset viewer.