Changeset 7999 for trunk/wp-admin/plugins.php
- Timestamp:
- 05/27/2008 05:55:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r7846 r7999 19 19 error_reporting( E_ALL ^ E_NOTICE ); 20 20 @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. 21 include( ABSPATH . PLUGINDIR . '/' . $plugin);21 include(WP_PLUGIN_DIR . '/' . $plugin); 22 22 } elseif ( 'deactivate' == $_GET['action'] ) { 23 23 check_admin_referer('deactivate-plugin_' . $_GET['plugin']); … … 124 124 $action_links[] = "<a href='" . wp_nonce_url("plugins.php?action=activate&plugin=$plugin_file", 'activate-plugin_' . $plugin_file) . "' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>"; 125 125 } 126 if ( current_user_can('edit_plugins') && is_writable( ABSPATH . PLUGINDIR . '/' . $plugin_file) )126 if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) ) 127 127 $action_links[] = "<a href='plugin-editor.php?file=$plugin_file' title='".__('Open this file in the Plugin Editor')."' class='edit'>".__('Edit')."</a>"; 128 128 … … 167 167 ?> 168 168 169 <p><?php printf(__('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>169 <p><?php printf(__('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.'), WP_PLUGIN_DIR); ?></p> 170 170 171 171 <h2><?php _e('Get More Plugins'); ?></h2> 172 172 <p><?php _e('You can find additional plugins for your site in the <a href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a>.'); ?></p> 173 <p><?php printf(__('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>173 <p><?php printf(__('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.'), WP_PLUGIN_DIR); ?></p> 174 174 175 175 </div>
Note: See TracChangeset
for help on using the changeset viewer.