| @@ -5,10 +5,10 @@ | ||
| 5 | 5 | if ( ultimate_post()->get_setting( 'ultp_divi' ) == 'true' ) { |
| 6 | 6 | if ( class_exists( 'ET_Builder_Module' ) ) { |
| 7 | 7 | require_once ULTP_PATH . '/addons/divi/divi.php'; |
| 8 | 8 | |
| 9 | - $action = isset( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 10 | - $post_id = isset( $_GET['post'] ) ? sanitize_text_field( $_GET['post'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 9 | + $action = isset( $_GET['action'] ) ? sanitize_text_field( wp_unslash( $_GET['action'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 10 | + $post_id = isset( $_GET['post'] ) ? sanitize_text_field( wp_unslash( $_GET['post'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 11 | 11 | if ( $action && $post_id ) { |
| 12 | 12 | if ( get_post_type( $post_id ) == 'ultp_templates' ) { |
| 13 | 13 | add_filter( 'et_builder_enable_classic_editor', '__return_false' ); |
| 14 | 14 | } |