WordPress.org

Make WordPress Core

Changeset 32779


Ignore:
Timestamp:
06/15/15 03:47:54 (2 years ago)
Author:
dd32
Message:

Updates: Display the failure reason in addition to 'Update Failed', allows for debugging by site owners.
Fixes #32435, #32473

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r32777 r32779  
    264264        } 
    265265        $message.removeClass( 'updating-message' ); 
    266         $message.text( wp.updates.l10n.updateFailed ); 
     266        $message.html( wp.updates.l10n.updateFailed.replace( '%s', response.error ) ); 
    267267        wp.a11y.speak( wp.updates.l10n.updateFailed ); 
    268268 
  • trunk/src/wp-includes/script-loader.php

    r32677 r32779  
    527527                'updating'          => __( 'Updating...' ), 
    528528                'updated'           => __( 'Updated!' ), 
    529                 'updateFailed'      => __( 'Update Failed' ), 
     529                /* translators: Error string for a failed update */ 
     530                'updateFailed'      => __( 'Update Failed: %s' ), 
    530531                /* translators: Plugin name and version */ 
    531532                'updatingLabel'     => __( 'Updating %s...' ), 
Note: See TracChangeset for help on using the changeset viewer.