Skip to content

Commit

Permalink
Oops.. 'Error: Using $this when not in object context' in source text.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Dec 20, 2023
1 parent c4ccf37 commit 6aad93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ public static function source_text( $text, Payment $payment ) {
$source_id
);

if ( $this->is_active() ) {
if ( \function_exists( 'wc_get_order' ) ) {
$order = \wc_get_order( $source_id );

if ( $order instanceof \WC_Order ) {
Expand Down

0 comments on commit 6aad93a

Please sign in to comment.