• Resolved michelapau

    (@michelapau)


    using ver ver 8.8.04.002 with a french site,
    Then upload bar stay green in case of error (ex : maxsize) investigate my site and found error due to escaped accented characters,
    in main.js at L1271
    I replaced the line if (response.responseText.indexOf(__( ‘Upload failed’, ‘wp-photo-album-plus’ ))!=-1) {
    by if (txt.indexOf(__( ‘Upload failed’, ‘wp-photo-album-plus’ ))!=-1) {
    and now error bar color works fine

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter michelapau

    (@michelapau)

    It’s a shame not to use $wppa_alert in wppa_function.php I
    I added/replaced the lines 4700/4701/4983
    4697 function wppa_user_upload() {
    4698 global $wpdb;
    4699 static $done;
    4700 global $wppa_upload_succes_id;
    4701 global $wppa_alert; 4702 $wppa_alert=”;

    4980 // Alert text for failed upload
    4981 if ( $fail ) {
    4982 if ( ! $done ) {
    4983 $m = ‘ ‘ . __( ‘Upload failed’, ‘wp-photo-album-plus’ ) . ‘ ‘.$wppa_alert.’.’;
    4984 }

    now the front end specifies the error type

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thanks very much. This mods will be implemented in the next releas.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.