| @@ -87,9 +87,9 @@ | ||
| 87 | 87 | */ |
| 88 | 88 | $item_type = get_post_type( $item_id ); |
| 89 | 89 | |
| 90 | 90 | if ( ! in_array( $item_type, learn_press_get_item_types_can_purchase() ) ) { |
| 91 | - throw new Exception( 'Item type is invalid!', 'learnpress' ); | |
| 91 | + throw new Exception( __( 'Item type is invalid!', 'learnpress' ) ); | |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | switch ( $item_type ) { |
| 95 | 95 | case LP_COURSE_CPT: |