Making WordPress.org

Changeset 12830


Ignore:
Timestamp:
08/10/2023 10:50:21 AM (18 months ago)
Author:
amieiro
Message:

Translate: Check if the object exists in the log_translation_source method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/class-plugin.php

    r12750 r12830  
    302302        $already_logged[ $key ] = true;
    303303        $source                 = '';
    304         if ( $translation && 'GP_Route_Translation' === GP::$current_route->class_name ) {
     304        if ( $translation && is_object( GP::$current_route ) && 'GP_Route_Translation' === GP::$current_route->class_name ) {
    305305            if ( 'import_translations_post' === GP::$current_route->last_method_called ) {
    306306                $this->imported_translation_ids[] = $translation->id;
Note: See TracChangeset for help on using the changeset viewer.