Changeset 13809
- Timestamp:
- 06/12/2024 04:45:00 AM (6 weeks ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-translation-helpers.php
r12633 r13809 188 188 189 189 $translation_helpers_settings = array( 190 'th_url' => gp_url_project( $args['project'], gp_url_join( $args['locale_slug'], $args['translation_set_slug'], '-get-translation-helpers' ) ),190 'th_url' => gp_url_project( $args['project'], gp_url_join( $args['locale_slug'], $args['translation_set_slug'], '-get-translation-helpers' ) ), 191 191 'ajax_url' => admin_url( 'admin-ajax.php' ), 192 192 'nonce' => wp_create_nonce( 'gp_optin_optout' ), … … 425 425 '$gp_translation_helpers_editor', 426 426 array( 427 'translation_helper_url' => gp_url_project( $translation_set['project']->path, gp_url_join( $translation_set['locale_slug'], $translation_set['translation_set']->slug, '-get-translation-helpers' ) ),427 'translation_helper_url' => gp_url_project( $translation_set['project']->path, gp_url_join( $translation_set['locale_slug'], $translation_set['translation_set']->slug, '-get-translation-helpers' ) ), 428 428 'reply_text' => esc_attr__( 'Reply' ), 429 429 'cancel_reply_text' => esc_html__( 'Cancel reply' ), -
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js
r13066 r13809 116 116 const divDiscussion = $commentform.closest( '.meta.discussion' ); 117 117 const rowId = divDiscussion.attr( 'data-row-id' ); 118 const requestUrl = $gp_translation_helpers_editor.translation_helper_url + rowId + '?nohc';118 const requestUrl = $gp_translation_helpers_editor.translation_helper_url; 119 119 120 120 const submitComment = function( formdata ) { … … 279 279 function loadTabsAndDivs( element ) { 280 280 const rowId = element.closest( 'tr.editor' ).attr( 'id' ).substring( 7 ); 281 const requestUrl = $gp_translation_helpers_editor.translation_helper_url + rowId + '?nohc';281 const requestUrl = $gp_translation_helpers_editor.translation_helper_url; 282 282 if ( translationHelpersCache[ rowId ] !== undefined ) { 283 283 updateDataInTabs( translationHelpersCache[ rowId ], rowId ); … … 329 329 function cacheTranslationHelpersForARow( editor ) { 330 330 const rowId = editor.attr( 'row' ); 331 const requestUrl = $gp_translation_helpers_editor.translation_helper_url + rowId + '?nohc';331 const requestUrl = $gp_translation_helpers_editor.translation_helper_url; 332 332 if ( ! rowId ) { 333 333 return; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/translation-helpers.js
r12656 r13809 36 36 const originalId = $helpers.parent().attr( 'row' ); // eslint-disable-line vars-on-top 37 37 const replytocom = $helpers.parent().attr( 'replytocom' ); // eslint-disable-line vars-on-top 38 var requestUrl = $gp_translation_helpers_settings.th_url + originalId + '?nohc'; // eslint-disable-line38 39 39 40 40 if ( which ) {
Note: See TracChangeset
for help on using the changeset viewer.