0 ) { global $wpdb; $tt24_table_forms = $wpdb->prefix . 'tt24_forms'; // Securely fetch the form data. // FIX: Silencing false-positive DB warnings // phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery // phpcs:disable WordPress.DB.DirectDatabaseQuery.NoCaching $tt24_form = $wpdb->get_row( $wpdb->prepare( "SELECT title, form_settings FROM {$tt24_table_forms} WHERE id = %d", $tt24_form_id ) ); // phpcs:enable if ( $tt24_form ) { $tt24_form_title = $tt24_form->title; $tt24_form_settings_json = $tt24_form->form_settings; } else { $tt24_form_title = esc_html__( 'Form Not Found', '24tt-unrestricted-forms' ); $tt24_form_id = 0; // Reset ID so they don't overwrite a broken record } } else { $tt24_form_title = esc_html__( 'New Unrestricted Form', '24tt-unrestricted-forms' ); } ?>