Changeset 7999 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 05/27/2008 05:55:24 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/plugin.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r7488 r7999 40 40 41 41 $wp_plugins = array (); 42 $plugin_root = ABSPATH . PLUGINDIR;42 $plugin_root = WP_PLUGIN_DIR; 43 43 if( !empty($plugin_folder) ) 44 44 $plugin_root .= $plugin_folder; … … 105 105 wp_redirect(add_query_arg('_error_nonce', wp_create_nonce('plugin-activation-error_' . $plugin), $redirect)); // we'll override this later if the plugin can be included without fatal error 106 106 ob_start(); 107 @include( ABSPATH . PLUGINDIR . '/' . $plugin);107 @include(WP_PLUGIN_DIR . '/' . $plugin); 108 108 $current[] = $plugin; 109 109 sort($current); … … 180 180 // plugins. 181 181 foreach ( $check_plugins as $check_plugin ) { 182 if ( !file_exists( ABSPATH . PLUGINDIR . '/' . $check_plugin) ) {182 if ( !file_exists(WP_PLUGIN_DIR . '/' . $check_plugin) ) { 183 183 $current = get_option('active_plugins'); 184 184 $key = array_search($check_plugin, $current); … … 194 194 if ( validate_file($plugin) ) 195 195 return new WP_Error('plugin_invalid', __('Invalid plugin.')); 196 if ( ! file_exists( ABSPATH . PLUGINDIR . '/' . $plugin) )196 if ( ! file_exists(WP_PLUGIN_DIR . '/' . $plugin) ) 197 197 return new WP_Error('plugin_not_found', __('Plugin file does not exist.')); 198 198
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)