| @@ -91,9 +91,9 @@ | ||
| 91 | 91 | return [ |
| 92 | 92 | 'sales-page' => esc_html__( 'Sales Page', 'sellkit' ), |
| 93 | 93 | 'checkout' => esc_html__( 'Checkout', 'sellkit' ), |
| 94 | 94 | 'thankyou' => esc_html__( 'Thank You', 'sellkit' ), |
| 95 | - 'decision' => esc_html__( 'Decision', 'sellkit' ), | |
| 95 | + 'decision' => esc_html__( 'Condition', 'sellkit' ), | |
| 96 | 96 | 'upsell' => esc_html__( 'Upsell', 'sellkit' ), |
| 97 | 97 | 'downsell' => esc_html__( 'Downsell', 'sellkit' ), |
| 98 | 98 | 'optin-confirmation' => esc_html__( 'Opt-in Confirmation' ), |
| 99 | 99 | 'optin' => esc_html__( 'Opt-in', 'sellkit' ), |
| @@ -382,8 +382,12 @@ | ||
| 382 | 382 | if ( 'string' !== gettype( $template ) || ! is_object( $post ) || self::SELLKIT_STEP_POST_TYPE !== $post->post_type ) { |
| 383 | 383 | return $template; |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | + if ( has_blocks( $post ) ) { | |
| 387 | + return $template; | |
| 388 | + } | |
| 389 | + | |
| 386 | 390 | remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); |
| 387 | 391 | add_filter( 'next_post_rel_link', '__return_empty_string' ); |
| 388 | 392 | add_filter( 'previous_post_rel_link', '__return_empty_string' ); |
| 389 | 393 | |
| @@ -506,8 +510,12 @@ | ||
| 506 | 510 | * @param string $new_status Status. |
| 507 | 511 | */ |
| 508 | 512 | public function update_steps_post_status( $funnel_id, $new_status ) { |
| 509 | 513 | $steps = get_post_meta( $funnel_id, 'sellkit_steps', true ); |
| 514 | + | |
| 515 | + if ( ! is_array( $steps ) ) { | |
| 516 | + return; | |
| 517 | + } | |
| 510 | 518 | |
| 511 | 519 | foreach ( $steps as $step ) { |
| 512 | 520 | if ( $step['page_id'] === $funnel_id ) { |
| 513 | 521 | continue; |