Making WordPress.org

Changeset 12014


Ignore:
Timestamp:
08/12/2022 10:32:07 AM (4 years ago)
Author:
amieiro
Message:

Translate: Resolve a problem when users rejects their own translations

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-translation-helpers.php

    r12004 r12014  
    364364                }
    365365
    366                 wp_register_script( 'gp-comment-feedback-js', plugins_url( '/../js/reject-feedback.js', __FILE__ ), array( 'jquery', 'gp-common', 'gp-editor', 'thickbox' ), '20220801' );
     366                wp_register_script( 'gp-comment-feedback-js', plugins_url( '/../js/reject-feedback.js', __FILE__ ), array( 'jquery', 'gp-common', 'gp-editor', 'thickbox' ), '20220812' );
    367367                gp_enqueue_script( 'gp-comment-feedback-js' );
    368368
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/reject-feedback.js

    r12003 r12014  
    118118                comment = div.find( 'textarea[name="feedback_comment"]' ).val();
    119119
    120                 if ( ! comment.trim().length && ! commentReason.length ) {
     120                if ( ( comment === undefined && ! commentReason.length ) || ( ! comment.trim().length && ! commentReason.length ) ) {
    121121                        $gp.editor.set_status( button, status );
    122122                        return;
Note: See TracChangeset for help on using the changeset viewer.