Changeset 12074
- Timestamp:
- 09/16/2022 05:37:10 PM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins
- Files:
-
- 3 edited
-
gp-translation-helpers/gp-translation-helpers.php (modified) (1 diff)
-
gp-translation-helpers/js/reject-feedback.js (modified) (2 diffs)
-
wporg-gp-customizations/templates/translation-row-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/gp-translation-helpers.php
r12073 r12074 40 40 add_action( 'gp_init', array( 'WPorg_GlotPress_Notifications', 'init' ) ); // todo: include this class in a different plugin. 41 41 add_action( 'gp_init', array( 'WPorg_GlotPress_Customizations', 'init' ) ); // todo: include this class in a different plugin. 42 //add_filter( 'gp_enable_changesrequested_status', '__return_true' ); // todo: remove this filter when this plugin will be merged in the GlotPress core.42 add_filter( 'gp_enable_changesrequested_status', '__return_true' ); // todo: remove this filter when this plugin will be merged in the GlotPress core. -
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/reject-feedback.js
r12073 r12074 118 118 */ 119 119 function toggleButtons( thisObj, event ) { 120 return;121 120 var form = thisObj.closest( 'form' ); 122 121 var commentText = form.find( 'textarea[name="feedback_comment"]' ).val(); … … 154 153 */ 155 154 function toggleModalButtons( thisObj, event ) { 156 return;157 155 var form = thisObj.closest( 'form' ); 158 156 var commentText = form.find( 'textarea[name="modal_feedback_comment"]' ).val(); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php
r12069 r12074 254 254 <button class="button reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject', 'glotpress' ); ?></button> 255 255 <?php if ( apply_filters( 'gp_enable_changesrequested_status', false ) ) : // todo: delete when we merge the gp-translation-helpers in GlotPress ?> 256 <button class="button changesrequested" style="display: none;" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-changes _requested_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Request changes for this translation. The existing translation will be kept as part of the translation history.', 'glotpress' ); ?>"><strong>−</strong> <?php _ex( 'Request changes', 'Action', 'glotpress' ); ?></button>256 <button class="button changesrequested" style="display: none;" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-changesrequested_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Request changes for this translation. The existing translation will be kept as part of the translation history.', 'glotpress' ); ?>"><strong>−</strong> <?php _ex( 'Request changes', 'Action', 'glotpress' ); ?></button> 257 257 <?php endif; ?> 258 258 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.