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
16 changes: 16 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
== Changelog ==
= 6.32 =
* New: The form listing table now includes new Embeds and List Settings columns, for displaying every post and page where a form is embedded, and an added gear icon for controlling screen options.
* New: The generated Formidable CSS file can now work from the uploads directory instead of the plugin directory. This will automatically work based on the DISALLOW_FILE_MODS constant, and can additionally be controlled using a new frm_add_css_to_uploads_dir filter.
* New: Field errors will now get removed automatically on change events regardless of the JS validation setting.
* Fix: The aria-describedby attribute would not update properly when a form was submitted with errors for fields with multiple inputs.
* Fix: A small styling rule has been added to prevent HTML fields from overflowing past their container when using long strings.
* Fix: Color pickers used on the form styler page have been updated to help maintain the active color format, preventing automatic conversions from rgb to hex.
* Fix: Validation for Square has been modified to prevent the submit button from remaining disabled when the Square inputs do not include a postal code input, which happens in some countries including Japan and Australia.
* Fix: A cannot modify header information - headers already sent by FrmTransLiteHooksController.php:108 warning has been fixed.
* Fix: Custom CSS saved in form styles would not appear as expected after duplicating, showing additional CSS selectors for the original style.
* Fix: A possible TypeError when calling wp_is_valid_utf8 with a null value has been fixed.
* Fix: A new form style would not properly rename when it did not yet have a style ID.
* Fix: PayPal Commerce has been updated to prevent issues where Google Pay and Apple Pay options would not appear if the SDKs had not loaded in time.
* Fix: PayPal Commerce orders and products were not including the payment action description setting.
* The overdue subscription cron message will no longer get logged when there are no active subscriptions.

= 6.31 =
* New: Formidable now supports PayPal Commerce. This is built into the Lite plugin. To get started, go to Global Settings > Payments > PayPal to connect your business account.
* New: Form action settings have been redesigned.
Expand Down
2 changes: 1 addition & 1 deletion classes/controllers/FrmFieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private static function get_classes_for_builder_field( $field, $display, $field_
* used. When the field has an explicit alignment (Pro), the frm_build_field_class filter
* applies it instead. When Pro is not installed, any saved alignment is treated as empty.
*
* @since x.x
* @since 6.32
*
* @param array $field
* @param FrmFieldType $field_info
Expand Down
4 changes: 2 additions & 2 deletions classes/controllers/FrmFormsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
/**
* Runs on admin head of the formidable forms page.
*
* @since x.x This adds screen options.
* @since 6.32 This adds screen options.
*
* @return void
*/
Expand Down Expand Up @@ -1398,7 +1398,7 @@
* @param object[] $fields Array of fields.
* @param array $args The arguments. Contains `form`.
*/
$values['fields'] = apply_filters( 'frm_fields_in_form_builder', $fields, compact( 'form' ) );

Check warning on line 1401 in classes/controllers/FrmFormsController.php

View workflow job for this annotation

GitHub Actions / Mago

possibly-invalid-array-access

Cannot perform array access on value of type `bool`. >The expression might be `bool` here. Attempting to use a scalar value as an array will result in a runtime error. Help: Ensure the variable holds an array before accessing it.

$edit_message = __( 'Form was successfully updated.', 'formidable' );

Expand Down Expand Up @@ -1480,7 +1480,7 @@
* @param array $fields Array of fields.
* @param array $args The arguments. Contains `form`.
*/
$values['fields'] = apply_filters( 'frm_fields_in_settings', $values['fields'], compact( 'form' ) );

Check warning on line 1483 in classes/controllers/FrmFormsController.php

View workflow job for this annotation

GitHub Actions / Mago

possibly-invalid-array-access

Cannot perform array access on value of type `bool`. >The expression might be `bool` here. Attempting to use a scalar value as an array will result in a runtime error. Help: Ensure the variable holds an array before accessing it.

Check warning on line 1483 in classes/controllers/FrmFormsController.php

View workflow job for this annotation

GitHub Actions / Mago

possibly-invalid-array-access

Cannot perform array access on value of type `bool`. >The expression might be `bool` here. Attempting to use a scalar value as an array will result in a runtime error. Help: Ensure the variable holds an array before accessing it.

self::clean_submit_html( $values );

Expand Down Expand Up @@ -3716,7 +3716,7 @@
/**
* Prints necessary templates for the forms list page.
*
* @since x.x
* @since 6.32
*
* @return void
*/
Expand Down
8 changes: 4 additions & 4 deletions classes/controllers/FrmStylesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FrmStylesController {
/**
* Cache of the active style object keyed by form ID.
*
* @since x.x
* @since 6.32
*
* @var array
*/
Expand Down Expand Up @@ -700,7 +700,7 @@ private static function render_style_page( $active_style, $form, $default_style
*
* Falls back to the auto-generated key when no style name was provided so the scope is never empty.
*
* @since x.x
* @since 6.32
*
* @param string $fallback The auto-generated post_name to use when no style name is chosen.
*
Expand Down Expand Up @@ -1285,7 +1285,7 @@ public static function get_form_style( $form = 'default' ) {
/**
* Get the active style object for a field's form.
*
* @since x.x
* @since 6.32
*
* @param array|int $field The 'field' array.
*
Expand Down Expand Up @@ -1316,7 +1316,7 @@ public static function get_active_style( $field ) {
/**
* Get the style setting key that stores the alignment for a field type.
*
* @since x.x
* @since 6.32
*
* @param string $field_type
*
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 = '6.31';
public static $plug_version = '6.32';

/**
* @var bool
Expand Down
18 changes: 9 additions & 9 deletions classes/helpers/FrmFormsListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FrmFormsListHelper extends FrmListHelper {
/**
* The transient name that stores data for which posts a form is embedded in.
*
* @since x.x
* @since 6.32
*
* @var string
*/
Expand Down Expand Up @@ -366,7 +366,7 @@ private function get_row_checkbox( $item ) {
* This includes multiple icons for triggering the embed modal, the visual styler, and an active landing page.
*
* @since 6.0
* @deprecated x.x We moved these actions to other places. This column will show if there is a filter added to the hook.
* @deprecated 6.32 We moved these actions to other places. This column will show if there is a filter added to the hook.
*
* @param stdClass $form
*
Expand Down Expand Up @@ -445,7 +445,7 @@ protected function column_views( $form ) {
/**
* Get the HTML for the Settings column in the form list.
*
* @since x.x
* @since 6.32
*
* @return string
*/
Expand Down Expand Up @@ -581,7 +581,7 @@ function () use ( $posts ) {
/**
* Gets posts or pages that contain the form shortcode.
*
* @since x.x
* @since 6.32
*
* @param stdClass $form Form object.
*
Expand Down Expand Up @@ -637,7 +637,7 @@ private function get_posts_contain_form( $form ) {
/**
* Gets search strings for a form inside a post.
*
* @since x.x
* @since 6.32
*
* @param int $form_id Form ID.
*
Expand All @@ -650,7 +650,7 @@ protected function get_search_strings_for_form( $form_id ) {
/**
* Gets the base search strings for a form inside a post.
*
* @since x.x
* @since 6.32
*
* @param int $form_id Form ID.
*
Expand Down Expand Up @@ -694,15 +694,15 @@ private function query_posts_contain_form( $form ) {
}

/**
* @since x.x
* @since 6.32
*
* @param stdClass[] $posts
* @param array $args
*/
$filtered_posts = apply_filters( 'frm_get_posts_contain_form', $posts, compact( 'form' ) );

if ( ! is_array( $filtered_posts ) ) {
_doing_it_wrong( 'frm_get_posts_contain_form', 'Filter should return an array.', 'x.x' );
_doing_it_wrong( 'frm_get_posts_contain_form', 'Filter should return an array.', '6.32' );
return $posts;
}

Expand All @@ -712,7 +712,7 @@ private function query_posts_contain_form( $form ) {
/**
* Maybe clear the embed posts transient.
*
* @since x.x
* @since 6.32
*
* @param int $post_id Post ID.
* @param WP_Post $post Post object.
Expand Down
2 changes: 1 addition & 1 deletion classes/helpers/FrmStylesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ private static function description_margin_for_screensize( $width ) {
/**
* Get the raw alignment value stored in the active style for a radio or checkbox field.
*
* @since x.x
* @since 6.32
*
* @param array|int $field The 'field' array.
*
Expand Down
2 changes: 1 addition & 1 deletion classes/helpers/FrmStylesPreviewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function adjust_form_for_preview() {
* setting is updated in the styler preview. Fields with their own alignment
* override are left untouched.
*
* @since x.x
* @since 6.32
*
* @return void
*/
Expand Down
3 changes: 2 additions & 1 deletion classes/models/FrmSalesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ protected function api_url() {

/**
* If the last check was a rate limit, we'll need to check again sooner.
* Other APIs use the FrmFormApi function which uses a 5 minute timeout. But for Sales, we can use 1 hour.
*
* @since x.x
* @since 6.32
*
* @param array $addons
*
Expand Down
12 changes: 6 additions & 6 deletions classes/models/FrmStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public function save_settings() {
}

/**
* @since x.x
* @since 6.32
*
* @return array
*/
Expand All @@ -443,7 +443,7 @@ private static function get_create_style_file_args() {
}

/**
* @since x.x
* @since 6.32
*
* @param bool $add_css_to_uploads_dir
*
Expand All @@ -459,21 +459,21 @@ public static function get_generated_css_file_path( $add_css_to_uploads_dir ) {
/**
* Returns true if generated css file should be saved in the uploads directory.
*
* @since x.x
* @since 6.32
*
* @return bool
*/
public static function add_css_to_uploads_dir() {
/**
* @since x.x
* @since 6.32
*
* @param bool $add_css_to_uploads_dir
*/
return apply_filters( 'frm_add_css_to_uploads_dir', ! wp_is_file_mod_allowed( 'frm_save_css_to_plugin_folder' ) );
}

/**
* @since x.x
* @since 6.32
*
* @return string
*/
Expand All @@ -482,7 +482,7 @@ private static function target_css_uploads_dir() {
}

/**
* @since x.x
* @since 6.32
*
* @return string
*/
Expand Down
6 changes: 3 additions & 3 deletions classes/models/fields/FrmFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ abstract class FrmFieldType {
* its own front_field_input from having it added a second time by
* add_aria_description_to_inputs.
*
* @since x.x
* @since 6.32
*
* @var bool
*/
Expand Down Expand Up @@ -1193,7 +1193,7 @@ public function include_front_field_input( $args, $shortcode_atts ) {
* (checkboxes, radios) in one place, since both produce their final HTML
* through this method.
*
* @since x.x
* @since 6.32
*
* @param array $args Rendering context. May include `field_id`, `html_id` and `errors`.
* @param string $input_html Full field HTML. Passed by reference.
Expand Down Expand Up @@ -1599,7 +1599,7 @@ protected function get_field_input_html_hook( $field ) {
* Link input to field description for screen readers.
*
* @since 3.0
* @since x.x Function privacy changed from `protected` to `public`.
* @since 6.32 Function privacy changed from `protected` to `public`.
*
* @param array $args
* @param string $input_html
Expand Down
2 changes: 1 addition & 1 deletion classes/views/frm-forms/add_field.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
/**
* Fires after a field's box in the form builder, before the field settings.
*
* @since x.x
* @since 6.32
*
* @param array{field:array, display:array} $args Contains the `field` and `display` arrays.
*/
Expand Down
2 changes: 1 addition & 1 deletion classes/views/frm-forms/forms-list-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Template for the forms list settings
*
* @since x.x
* @since 6.32
*
* @package Formidable
*
Expand Down
4 changes: 2 additions & 2 deletions classes/views/styles/_check-box-radio-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class="frm-style-item-heading"><?php esc_html_e( 'Check Box', 'formidable' ); ?>
);

/**
* @since x.x
* @since 6.32
*
* @param array $align_options
* @param array $atts
Expand All @@ -96,7 +96,7 @@ class="frm-style-item-heading"><?php esc_html_e( 'Radio', 'formidable' ); ?></la
<div class="frm7 frm_form_field">
<?php
/**
* @since x.x
* @since 6.32
*
* @param array $align_options
* @param array $atts
Expand Down
Loading
Loading