Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,61 @@
== Changelog ==
= 7.1 =
* Security: Additional protection has been added to prevent unauthenticated shortcode execution.
* Security: Additional validation has been added to PayPal Commerce orders and subscriptions to help prevent payment tampering.
* New: The form builder now loads long forms with AJAX automatically. The "Load and save form builder page with AJAX" setting has been removed.
* New: Large forms now load previews and field settings in smaller batches. Previews below the screen wait until you scroll near them.
* New: The builder now blocks fields that don't work in a Repeater or Section, such as CAPTCHA, Submit, GDPR, Summary, Page Break, and embedded forms.
* New: The style editor now uses a new color picker. Colors save in the format you pick: RGB, HSL, or Hex.
* New: Style changes in the visual styler now show in the preview right away, without waiting for the server.
* New: Phone fields now have an Autocomplete setting.
* New: A new CAPTCHA service unavailable spam setting saves a submission as a spam entry when the CAPTCHA can't be verified because the service is down or its response can't be read.
* New: Boosts now show in their own section on the Add-Ons page.
* New: Stripe Link elements now share additional form styling to closer match other inputs.
* New: Formidable AI has a new get-ai-status ability so AI tools can see how to turn on access, and a new mark-entry-spam ability.
* New: Forms created with the create-form ability now start with anti-spam on and an email action, like forms made in the builder.
* New: The list-entries ability can now list spam entries, and the update-form ability can turn entry editing on or off.
* New: New frm_no_save_fields, frm_embed_modal_options, frm_field_created, frm_field_updated, frm_field_destroyed, and frm_field_order_updated hooks, plus a new hook that runs before a form is destroyed.
* New: The frm_add_entry_meta filter now receives the original value as a second argument.
* Performance: Moving a field in a large form now saves only the new field order. The builder uses fewer database queries when creating, updating, or reordering many fields.
* Performance: Form dropdowns, the next-field-order lookup, and form field cache clearing now use faster queries.
* Performance: The Stripe Link check no longer runs a query on admin pages.
* Fix: PayPal Commerce now checks the capture status before marking an order as paid. Declined cards no longer create a payment, and pending captures create a pending payment.
* Fix: PayPal Commerce card fields could stay empty on multi-page forms when the script loaded late.
* Fix: PayPal Commerce validation failed for products inside repeaters.
* Fix: PayPal Commerce Apple Pay failed when the page title had a non-ASCII character.
* Fix: PayPal Commerce rejected cards when the Address field was on an earlier page, because the billing country code was missing.
* Fix: Going to the previous page on a multi-page PayPal Commerce form no longer tries to submit the empty card.
* Fix: Square rejected a different card entered after a declined card.
* Fix: Deleting a multisite site now also removes the payments, subscriptions, and gated tokens tables.
* Fix: The Denylist check no longer marks accented text, like "Máster", as spam.
* Fix: The submit button could ignore the first click after fixing a field error.
* Fix: The "Disable submit button styling" toggle always loaded as off.
* Fix: A form lost its styling when the style it used was deleted. It now falls back to the default style.
* Fix: The inline Submit button sat below the inputs when using the default submit HTML.
* Fix: Primary labels did not line up with inputs in themes that set a label line height, like Hello Elementor.
* Fix: Long style names could push the dropdown out of the style card.
* Fix: Test mode controls now look the same in any theme.
* Fix: Admin dropdowns and tooltips broke when another plugin loaded Popper 1.
* Fix: Field Size now shows in the builder preview.
* Fix: Builder previews kept the field label markup and the required indicator when drawn in the browser.
* Fix: Errors with deferred field settings panels in the builder. A dropdown posted the wrong type, and a failed load could silently drop settings on save.
* Fix: Duplicating a field no longer fails on forms saved with the older field placement format.
* Fix: Dragging a Repeater into a Section was allowed in the builder.
* Fix: Form and field keys longer than 60 characters could collide when duplicated.
* Fix: An empty Number Step rendered step="any" instead of step="1" and rejected decimals.
* Fix: Dropdown, radio, and checkbox fields filled by setup hooks could reject valid values.
* Fix: Hex colors like #ffffff caused a PHP deprecation notice when brightness was calculated.
* Fix: Style Reset and the live preview now keep the # on hex colors, and an invalid typed hex no longer becomes #000000.
* Fix: The Entry Key typed on an earlier page was lost on multi-page Entries > Add New forms.
* Fix: Form Templates > Create Template opened a copy of the new template instead of the template itself.
* Fix: Inserting Default HTML in the Message editor's Code tab added escaped markup.
* Fix: JS-built search boxes, like Applications > Search Templates, showed no magnifier icon.
* Fix: Payment status hooks ran on the wrong payment because trigger_payment_status_change ignored the payment passed in.
* Fix: Duplicate-entry errors now show in the error summary when submitting with AJAX.
* Fix: The Square script no longer shows a Missing Dependencies warning in the visual styler.
* Fix: The list-entries, list-forms, list-fields, list-payments, and list-subscriptions abilities now return correct defaults and no longer error on star rating or scale fields, spam entries, or a missing payments table.
* Fix: The create-field and update-field abilities skipped the settings clean-up that the builder runs.

= 7.0 =
* Security: Additional permission checks have been added to prevent unauthorized plugin installations.
* Security: Download URL validation has been hardened to prevent downloads from untrusted sources.
Expand Down
10 changes: 5 additions & 5 deletions classes/controllers/FrmAbilitiesEntriesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static function register_list_entries_ability() {
* The search term is only applied when Pro is active, so it is only
* advertised then. Without Pro an agent would send it and get every entry.
*
* @since x.x
* @since 7.1
*
* @return array
*/
Expand Down Expand Up @@ -245,7 +245,7 @@ private static function register_get_entry_ability() {
/**
* Register the mark entry as spam ability.
*
* @since x.x
* @since 7.1
*
* @return void
*/
Expand Down Expand Up @@ -416,7 +416,7 @@ public static function execute_get_entry( $input ) {
/**
* Mark a submitted entry as spam.
*
* @since x.x
* @since 7.1
*
* @param array $input Ability input parameters.
*
Expand Down Expand Up @@ -839,7 +839,7 @@ private static function get_invalid_entry_error() {
/**
* Build the error returned when an entry cannot be moved to spam.
*
* @since x.x
* @since 7.1
*
* @return WP_Error
*/
Expand Down Expand Up @@ -882,7 +882,7 @@ public static function can_get_entry( $input ) {
/**
* Permission callback for mark entry as spam.
*
* @since x.x
* @since 7.1
*
* @param array $input Ability input parameters.
*
Expand Down
12 changes: 6 additions & 6 deletions classes/controllers/FrmAbilitiesFieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ private static function register_list_fields_ability() {
'Field choices: strings, numbers (star rating, scale), or {"label", "value"} objects for separate values, or an object keyed by option key.',
'formidable'
),
'items' => array( 'type' => array( 'string', 'number', 'object' ) ),
'additionalProperties' => array( 'type' => array( 'string', 'number', 'object' ) ),
'items' => array( 'type' => array( 'string', 'integer', 'number', 'object' ) ),
'additionalProperties' => array( 'type' => array( 'string', 'integer', 'number', 'object' ) ),
),
'field_order' => array(
'type' => 'integer',
Expand Down Expand Up @@ -177,10 +177,10 @@ private static function register_create_field_ability() {
'formidable'
),
'items' => array(
'type' => array( 'string', 'number', 'object' ),
'type' => array( 'string', 'integer', 'number', 'object' ),
),
'additionalProperties' => array(
'type' => array( 'string', 'number', 'object' ),
'type' => array( 'string', 'integer', 'number', 'object' ),
),
),
'default_value' => array(
Expand Down Expand Up @@ -567,7 +567,7 @@ public static function prepare_new_field( $field, $form ) {
* such hook, so without this a new field keeps its options exactly as sent.
* The field ID is 0 because the field does not exist yet.
*
* @since x.x
* @since 7.1
*
* @param array $prepared Prepared field data.
*
Expand Down Expand Up @@ -833,7 +833,7 @@ private static function merge_field_options_with_existing( $field, $field_data )
* unfiltered_html, so re-saving it everywhere would strip markup an admin authored
* from a label the request did not change.
*
* @since x.x
* @since 7.1
*
* @param stdClass $field The stored field object.
* @param array $field_data Non-empty field data to update.
Expand Down
8 changes: 4 additions & 4 deletions classes/controllers/FrmAbilitiesSetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
/**
* Exposes setup discovery even while Formidable AI access is disabled.
*
* @since x.x
* @since 7.1
*/
class FrmAbilitiesSetupController {

/**
* Register the read-only setup ability independently of the operational gate.
*
* @since x.x
* @since 7.1
*
* @return void
*/
Expand Down Expand Up @@ -70,7 +70,7 @@ public static function register_abilities() {
/**
* Allow users who can view forms to discover setup, like the other read abilities.
*
* @since x.x
* @since 7.1
*
* @return bool
*/
Expand All @@ -82,7 +82,7 @@ public static function can_get_ai_status() {
/**
* Describe availability without enabling access or booting the MCP adapter.
*
* @since x.x
* @since 7.1
*
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion classes/controllers/FrmAddonsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ protected static function prepare_addons( &$addons ) {
* it is installed in. When it does not, match the installed copy by its
* updater download id (active Boosts), then by its plugin name (inactive Boosts).
*
* @since x.x
* @since 7.1
*
* @param array $addon The Boost data from the API.
* @param string $file_name The plugin file the API sends for the Boost.
Expand Down
2 changes: 1 addition & 1 deletion classes/controllers/FrmAddressesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public static function get_country_code( $country ) {
/**
* Gets the country name to country code mapping.
*
* @since x.x
* @since 7.1
*
* @return array
*/
Expand Down
4 changes: 2 additions & 2 deletions classes/controllers/FrmAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ public static function admin_js() {
* The picker CSS ships in frm_admin.css, so the style handle has no file of its own.
* Enqueue the formidable-color-picker style with the script on any page that uses the picker.
*
* @since x.x
* @since 7.1
*
* @param string $plugin_url Plugin asset URL.
* @param string $version Plugin asset version.
Expand Down Expand Up @@ -1050,7 +1050,7 @@ private static function enqueue_legacy_views_assets() {
* Check the popper handle again after other plugins have enqueued their scripts.
* Most plugins register scripts on admin_enqueue_scripts, after admin_js() has run.
*
* @since x.x
* @since 7.1
*
* @return void
*/
Expand Down
1 change: 1 addition & 0 deletions classes/controllers/FrmEntriesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ public static function show_entry_shortcode( $atts ) {
'child_array' => false,
'line_breaks' => true,
'array_separator' => ', ',
'esc_shortcodes' => false,
);
$defaults = apply_filters( 'frm_show_entry_defaults', $defaults );
$atts = shortcode_atts( $defaults, $atts );
Expand Down
6 changes: 3 additions & 3 deletions classes/controllers/FrmFieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function load_field() {
*
* The previews are already on the page, so only the settings are sent back, keyed by field id.
*
* @since x.x
* @since 7.1
*
* @return void
*/
Expand Down Expand Up @@ -324,7 +324,7 @@ public static function load_single_field( $field_object, $values, $form_id = 0 )
/**
* Filters deferred loading for a builder field.
*
* @since x.x
* @since 7.1
*
* @param bool $ajax_this_field Whether to defer rendering the field.
* @param object $field_object The builder field.
Expand Down Expand Up @@ -384,7 +384,7 @@ public static function load_single_field( $field_object, $values, $form_id = 0 )
*
* The classes and attributes still come from the same filters as a preview rendered here.
*
* @since x.x
* @since 7.1
*
* @param object $field_object The field being added to the form builder.
* @param FrmFieldType $field_obj The field type object.
Expand Down
10 changes: 5 additions & 5 deletions classes/controllers/FrmFormsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function list_form() {
* Create the default email action
*
* @since 2.02.11
* @since x.x Changed from private to public.
* @since 7.1 Changed from private to public.
*
* @param int|object $form
*
Expand Down Expand Up @@ -444,7 +444,7 @@ public static function update( $values = array() ) {
* An AJAX save gets a 500 response with the X-Frm-Form-Saved: 0 header, and the builder keeps
* the unsaved field order to send again.
*
* @since x.x
* @since 7.1
*
* @param int $id Form ID.
*
Expand Down Expand Up @@ -2791,7 +2791,7 @@ private static function is_hidden_draft_form( $form ) {
* The preview page adds a nonce to the draft form, so this does not depend on the Referer header,
* which a Referrer-Policy can strip. Only a visitor who could already open the preview has the nonce.
*
* @since x.x
* @since 7.1
*
* @param object $form The form being shown.
*
Expand All @@ -2811,7 +2811,7 @@ public static function is_ajax_submit_from_preview_page( $form ) {
* Add a preview nonce so AJAX responses can display draft forms, including embedded drafts.
* Published preview forms need it too when they contain an embedded draft.
*
* @since x.x
* @since 7.1
*
* @param object $form The form being rendered.
*
Expand All @@ -2829,7 +2829,7 @@ public static function maybe_add_draft_preview_nonce( $form ) {
/**
* Get the nonce action and field name used to show a draft form again after an AJAX submit from the preview page.
*
* @since x.x
* @since 7.1
*
* @param object $form The draft form.
*
Expand Down
6 changes: 3 additions & 3 deletions classes/helpers/FrmAddonsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class FrmAddonsHelper {
/**
* Whether the current Boost needs to be purchased.
*
* @since x.x
* @since 7.1
*
* @var bool
*/
Expand All @@ -41,7 +41,7 @@ class FrmAddonsHelper {
/**
* Whether the add-on being rendered is a Boost.
*
* @since x.x
* @since 7.1
*
* @var bool
*/
Expand Down Expand Up @@ -300,7 +300,7 @@ public static function is_locked() {
/**
* Check whether an add-on belongs to the Boosts category.
*
* @since x.x
* @since 7.1
*
* @param array $addon The add-on data from the API or prepared for display.
*
Expand Down
2 changes: 1 addition & 1 deletion classes/helpers/FrmAppHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class FrmAppHelper {
*
* @var string
*/
public static $plug_version = '7.0';
public static $plug_version = '7.1';

/**
* @var bool
Expand Down
Loading
Loading