← All changes
|
includes/Extensions/ExitIntent/ExitIntentNotification.php
+2
-2
3.2.13
→
3.3.3
View file →
| @@ -565,14 +565,14 @@ | ||
| 565 | 565 | foreach ( $languages as $lang => $val ) { |
| 566 | 566 | // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context. |
| 567 | 567 | $translated_id = apply_filters( 'wpml_object_id', $elementor_id, 'nx_exit_intent', false, $lang ); |
| 568 | 568 | if ( $translated_id ) { |
| 569 | - wp_delete_post( $translated_id, true ); | |
| 569 | + Helper::delete_owned_post( $translated_id, 'nx_exit_intent' ); | |
| 570 | 570 | } |
| 571 | 571 | } |
| 572 | 572 | return; |
| 573 | 573 | } |
| 574 | - wp_delete_post( $elementor_id, true ); | |
| 574 | + Helper::delete_owned_post( $elementor_id, 'nx_exit_intent' ); | |
| 575 | 575 | } |
| 576 | 576 | |
| 577 | 577 | /** |
| 578 | 578 | * Redirect WP "Edit" links for nx_exit_intent posts straight into the Elementor editor. |