@@ -1,6 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // Exit if accessed directly |
| 3 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 3 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 4 | + exit; |
|
| 5 | +} |
|
| 4 | 6 | |
| 5 | 7 | add_action( 'wpinv_manual_cc_form', '__return_false' ); |
| 6 | 8 | add_filter( 'wpinv_manual_support_subscription', '__return_true' ); |
@@ -62,8 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | if ( is_wp_error( $action_id ) ) { |
| 64 | 64 | throw new RuntimeException( $action_id->get_error_message() ); |
| 65 | - } |
|
| 66 | - elseif ( empty( $action_id ) ) { |
|
| 65 | + } elseif ( empty( $action_id ) ) { |
|
| 67 | 66 | throw new RuntimeException( $wpdb->last_error ? $wpdb->last_error : __( 'Database error.', 'action-scheduler' ) ); |
| 68 | 67 | } |
| 69 | 68 | |