| @@ -95,15 +95,10 @@ | ||
| 95 | 95 | function gamipress_youtube_log_extra_data_fields( $fields, $log_id, $type ) { |
| 96 | 96 | |
| 97 | 97 | $prefix = '_gamipress_'; |
| 98 | 98 | |
| 99 | - // TODO: To remove, added just to backward compatibility | |
| 100 | - if( ! is_gamipress_upgraded_to( '1.4.7' ) ) { | |
| 101 | - $trigger = ct_get_object_meta( $log_id, '_gamipress_trigger_type', true ); | |
| 102 | - } else { | |
| 103 | - $log = ct_get_object( $log_id ); | |
| 104 | - $trigger = $log->trigger_type; | |
| 105 | - } | |
| 99 | + $log = ct_get_object( $log_id ); | |
| 100 | + $trigger = $log->trigger_type; | |
| 106 | 101 | |
| 107 | 102 | if( $type !== 'event_trigger' ) { |
| 108 | 103 | return $fields; |
| 109 | 104 | } |