WordPress.org

Make WordPress Core

Changeset 8496


Ignore:
Timestamp:
07/30/2008 12:02:47 AM (10 years ago)
Author:
azaozz
Message:

Fix error message when invalidating plugin because of bad path.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r8495 r8496  
    322322function validate_plugin($plugin) {
    323323    if ( validate_file($plugin) )
    324         return new WP_Error('plugin_invalid', __('Invalid plugin.'));
     324        return new WP_Error('plugin_invalid', __('Invalid plugin path.'));
    325325    if ( ! file_exists(WP_PLUGIN_DIR . '/' . $plugin) )
    326326        return new WP_Error('plugin_not_found', __('Plugin file does not exist.'));
  • trunk/wp-admin/plugins.php

    r8495 r8496  
    169169if( !empty($invalid) )
    170170    foreach($invalid as $plugin_file => $error)
    171         echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%s</code> has been <strong>deactivated</strong> due to <em>"%s"</em>.'), $plugin_file, $error->get_error_message()) . '</p></div>';
     171        echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%s</code> has been <strong>deactivated</strong> due to an error: %s'), $plugin_file, $error->get_error_message()) . '</p></div>';
    172172?>
    173173
Note: See TracChangeset for help on using the changeset viewer.