Changeset 12829 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/inc/routes/class-translation-memory.php
- Timestamp:
- 08/10/2023 10:38:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-suggestions/inc/routes/class-translation-memory.php
r12751 r12829 489 489 public function update_external_translations( $translation ) { 490 490 $is_source_set = isset( $_POST['externalTranslationSource'] ) && isset( $_POST['externalTranslationUsed'] ); 491 $is_request_valid = 'GP_Route_Translation' === GP::$current_route->class_name && 'translations_post' === GP::$current_route->last_method_called;491 $is_request_valid = is_object( GP::$current_route ) && 'GP_Route_Translation' === GP::$current_route->class_name && 'translations_post' === GP::$current_route->last_method_called; 492 492 if ( ! $is_request_valid || ! $is_source_set || ! $translation ) { 493 493 return;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)