WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/21/2006 08:46:39 PM (14 years ago)
Author:
ryan
Message:

Turn hard-coded paths to defines. Pull gettext includes int wp-settings. Props mdawaffe. fixes #3157

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r4144 r4202  
    1010            sort($current);
    1111            update_option('active_plugins', $current);
    12             include(ABSPATH . 'wp-content/plugins/' . trim( $_GET['plugin'] ));
     12            include(ABSPATH . PLUGINDIR . '/' . trim( $_GET['plugin'] ));
    1313            do_action('activate_' . trim( $_GET['plugin'] ));
    1414        }
     
    4343// plugins.
    4444foreach ($check_plugins as $check_plugin) {
    45     if (!file_exists(ABSPATH . 'wp-content/plugins/' . $check_plugin)) {
     45    if (!file_exists(ABSPATH . PLUGINDIR . '/' . $check_plugin)) {
    4646            $current = get_option('active_plugins');
    4747            $key = array_search($check_plugin, $current);
     
    124124?>
    125125
    126 <p><?php _e('If something goes wrong with a plugin and you can&#8217;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&#8217;t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.', PLUGINDIR)); ?></p>
    127127
    128128<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>
    130130
    131131</div>
Note: See TracChangeset for help on using the changeset viewer.