Changeset 4202 for trunk/wp-admin/plugins.php
- Timestamp:
- 09/21/2006 08:46:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r4144 r4202 10 10 sort($current); 11 11 update_option('active_plugins', $current); 12 include(ABSPATH . 'wp-content/plugins/' . trim( $_GET['plugin'] ));12 include(ABSPATH . PLUGINDIR . '/' . trim( $_GET['plugin'] )); 13 13 do_action('activate_' . trim( $_GET['plugin'] )); 14 14 } … … 43 43 // plugins. 44 44 foreach ($check_plugins as $check_plugin) { 45 if (!file_exists(ABSPATH . 'wp-content/plugins/' . $check_plugin)) {45 if (!file_exists(ABSPATH . PLUGINDIR . '/' . $check_plugin)) { 46 46 $current = get_option('active_plugins'); 47 47 $key = array_search($check_plugin, $current); … … 124 124 ?> 125 125 126 <p><?php _e( 'If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the <code>wp-content/plugins</code> directory and it will be automatically deactivated.'); ?></p>126 <p><?php _e(sprintf('If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.', PLUGINDIR)); ?></p> 127 127 128 128 <h2><?php _e('Get More Plugins'); ?></h2> 129 <p><?php _e( 'You can find additional plugins for your site in the <a href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a>. To install a plugin you generally just need to upload the plugin file into your <code>wp-content/plugins</code> directory. Once a plugin is uploaded, you may activate it here.'); ?></p>129 <p><?php _e(sprintf('You can find additional plugins for your site in the <a href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a>. To install a plugin you generally just need to upload the plugin file into your <code>%s</code> directory. Once a plugin is uploaded, you may activate it here.', PLUGINDIR)); ?></p> 130 130 131 131 </div>
Note: See TracChangeset
for help on using the changeset viewer.