diff --git a/classes/controllers/FrmAddonsController.php b/classes/controllers/FrmAddonsController.php
index 7dd39f79d9..347ad69465 100644
--- a/classes/controllers/FrmAddonsController.php
+++ b/classes/controllers/FrmAddonsController.php
@@ -326,17 +326,17 @@ protected static function fallback_plugin_list() {
),
'mailchimp' => array(
'title' => 'Mailchimp Forms',
- 'excerpt' => 'Get on the path to more sales and leads in a matter of minutes. Add leads to a Mailchimp mailing list when they submit forms and update their information along with the entry.',
+ 'excerpt' => 'Get on the path to more sales and leads in a matter of minutes. Add leads to a Mailchimp mailing list when they submit forms and update their information along with the entry.', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
),
'registration' => array(
'title' => 'User Registration Forms',
'link' => 'downloads/user-registration/',
- 'excerpt' => 'Give new users access to your site as quickly and painlessly as possible. Allow users to register, edit and be able to login to their profiles on your site from the front end in a clean, customized registration form.',
+ 'excerpt' => 'Give new users access to your site as quickly and painlessly as possible. Allow users to register, edit and be able to login to their profiles on your site from the front end in a clean, customized registration form.', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
),
'paypal' => array(
'title' => 'PayPal Standard Forms',
'link' => 'downloads/paypal-standard/',
- 'excerpt' => 'Automate your business by collecting instant payments from your clients. Collect information, calculate a total, and send them on to PayPal. Require a payment before publishing content on your site.',
+ 'excerpt' => 'Automate your business by collecting instant payments from your clients. Collect information, calculate a total, and send them on to PayPal. Require a payment before publishing content on your site.', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
),
'stripe' => array(
'title' => 'Stripe Forms',
@@ -370,7 +370,7 @@ protected static function fallback_plugin_list() {
),
'zapier' => array(
'title' => 'Zapier Forms',
- 'excerpt' => 'Connect with hundreds of different applications through Zapier. Insert a new row in a Google docs spreadsheet, post on Twitter, or add a new Dropbox file with your form.',
+ 'excerpt' => 'Connect with hundreds of different applications through Zapier. Insert a new row in a Google docs spreadsheet, post on Twitter, or add a new Dropbox file with your form.', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
),
'signature' => array(
'title' => 'Digital Signature Forms',
@@ -1244,7 +1244,7 @@ protected static function handle_addon_action( $installed, $action ) {
*/
private static function get_addon_activation_response() {
$activating_page = self::get_activating_page();
- $message = $activating_page ? __( 'Your plugin has been activated. Would you like to save and reload the page now?', 'formidable' ) : __( 'Your plugin has been activated.', 'formidable' );
+ $message = $activating_page ? __( 'Your plugin has been activated. Would you like to save and reload the page now?', 'formidable' ) : __( 'Your plugin has been activated.', 'formidable' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
return array(
'message' => $message,
@@ -1495,7 +1495,7 @@ public static function addon_upgrade_link( $addon, $upgrade_link ) {
$class .= ' frm-button-secondary frm-button-sm';
}
?>
-
+
id ) ? admin_url( 'admin.php?page=formidable-entries&frm_action=new&form=' . $latest_available_form->id ) : '';
+ $add_entry_cta_link = false !== $latest_available_form && isset( $latest_available_form->id ) ? admin_url( 'admin.php?page=formidable-entries&frm_action=new&form=' . $latest_available_form->id ) : ''; // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
$lite_counters = array(
self::view_args_build_counter( __( 'Total Forms', 'formidable' ), array(), $counters_value['forms'] ),
@@ -287,7 +287,8 @@ private static function view_args_entries_placeholder( $forms_count ) {
*
* @param string $counter_type
* @param int $counter_value
- * @param false|object $latest_available_form The form object of the latest form available. If there are at least one form available we show "Add Entry" cta for entries counter.
+ * @param false|object $latest_available_form The form object of the latest form available. If there are at least one
+ * form available we show "Add Entry" cta for entries counter.
*
* @return array
*/
diff --git a/classes/controllers/FrmEntriesController.php b/classes/controllers/FrmEntriesController.php
index f96f41e35a..fc2ed5297a 100644
--- a/classes/controllers/FrmEntriesController.php
+++ b/classes/controllers/FrmEntriesController.php
@@ -11,12 +11,12 @@ class FrmEntriesController {
public static function menu() {
FrmAppHelper::force_capability( 'frm_view_entries' );
- add_submenu_page( 'formidable', 'Formidable | ' . __( 'Entries', 'formidable' ), __( 'Entries', 'formidable' ), 'frm_view_entries', 'formidable-entries', 'FrmEntriesController::route' );
+ add_submenu_page( 'formidable', 'Formidable | ' . __( 'Entries', 'formidable' ), __( 'Entries', 'formidable' ), 'frm_view_entries', 'formidable-entries', 'FrmEntriesController::route' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
$views_installed = is_callable( 'FrmProAppHelper::views_is_installed' ) && FrmProAppHelper::views_is_installed();
if ( ! $views_installed ) {
- add_submenu_page( 'formidable', 'Formidable | ' . __( 'Views', 'formidable' ), __( 'Views', 'formidable' ), 'frm_view_entries', 'formidable-views', 'FrmFormsController::no_views' );
+ add_submenu_page( 'formidable', 'Formidable | ' . __( 'Views', 'formidable' ), __( 'Views', 'formidable' ), 'frm_view_entries', 'formidable-views', 'FrmFormsController::no_views' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
self::maybe_redirect_to_views_upsell();
} else {
self::maybe_redirect_to_views_index();
diff --git a/classes/controllers/FrmFormActionsController.php b/classes/controllers/FrmFormActionsController.php
index ec02fe74c6..3872d7d195 100644
--- a/classes/controllers/FrmFormActionsController.php
+++ b/classes/controllers/FrmFormActionsController.php
@@ -692,7 +692,7 @@ public static function trigger_actions( $event, $form, $entry, $type = 'all', $a
continue;
}
- $child_entry = ( is_numeric( $form->parent_form_id ) && $form->parent_form_id ) || ( $entry && ( (int) $entry->form_id !== (int) $form->id || $entry->parent_item_id ) ) || ! empty( $args['is_child'] );
+ $child_entry = ( is_numeric( $form->parent_form_id ) && $form->parent_form_id ) || ( $entry && ( (int) $entry->form_id !== (int) $form->id || $entry->parent_item_id ) ) || ! empty( $args['is_child'] ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
if ( $child_entry ) {
// maybe trigger actions for sub forms
diff --git a/classes/controllers/FrmFormsController.php b/classes/controllers/FrmFormsController.php
index dcbf77e0bf..0a5d166955 100644
--- a/classes/controllers/FrmFormsController.php
+++ b/classes/controllers/FrmFormsController.php
@@ -67,8 +67,8 @@ public static function register_widgets() {
public static function logic_tip() {
$images_url = FrmAppHelper::plugin_url() . '/images/';
$data_message = __( 'Only show the fields you need and create branching forms. Upgrade to get conditional logic and question branching.', 'formidable' );
- $data_message .= ' ';
- echo '';
+ $data_message .= ' '; // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
+ echo ''; // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
esc_html_e( 'Conditional Logic', 'formidable' );
FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown8_icon', array( 'aria-hidden' => 'true' ) );
echo '';
@@ -880,7 +880,7 @@ public static function change_form_status( $status ) {
$available_status['untrash']['message'] = sprintf( _n( '%1$s form restored from the Trash.', '%1$s forms restored from the Trash.', $count, 'formidable' ), $count );
/* translators: %1$s: Number of forms, %2$s: Start link HTML, %3$s: End link HTML */
- $available_status['trash']['message'] = sprintf( _n( '%1$s form moved to the Trash. %2$sUndo%3$s', '%1$s forms moved to the Trash. %2$sUndo%3$s', $count, 'formidable' ), $count, '', '' );
+ $available_status['trash']['message'] = sprintf( _n( '%1$s form moved to the Trash. %2$sUndo%3$s', '%1$s forms moved to the Trash. %2$sUndo%3$s', $count, 'formidable' ), $count, '', '' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
$message = $available_status[ $status ]['message'];
@@ -918,7 +918,7 @@ public static function bulk_trash( $ids ) {
/* translators: %1$s: Number of forms, %2$s: Start link HTML, %3$s: End link HTML */
_n( '%1$s form moved to the Trash. %2$sUndo%3$s', '%1$s forms moved to the Trash. %2$sUndo%3$s', $count, 'formidable' ),
$count,
- '',
+ '', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
''
);
}
@@ -1069,7 +1069,7 @@ public static function insert_form_button() {
FrmAppHelper::load_admin_wide_js();
$menu_name = FrmAppHelper::get_menu_name();
$icon = apply_filters( 'frm_media_icon', FrmAppHelper::svg_logo() );
- self::$formidable_tinymce_button = '' . FrmAppHelper::kses( $icon, 'all' ) . ' ' . esc_html( $menu_name ) . '';
+ self::$formidable_tinymce_button = '' . FrmAppHelper::kses( $icon, 'all' ) . ' ' . esc_html( $menu_name ) . ''; // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
}
echo self::$formidable_tinymce_button; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
@@ -1345,7 +1345,7 @@ private static function get_edit_vars( $id, $errors = array(), $message = '', $c
if ( $form->parent_form_id ) {
/* translators: %1$s: Start link HTML, %2$s: End link HTML */
- wp_die( sprintf( esc_html__( 'You are trying to edit a child form. Please edit from %1$shere%2$s', 'formidable' ), '', '' ) );
+ wp_die( sprintf( esc_html__( 'You are trying to edit a child form. Please edit from %1$shere%2$s', 'formidable' ), '', '' ) ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
}
$frm_field_selection = FrmField::field_selection();
@@ -2616,7 +2616,7 @@ private static function get_saved_errors( $form, $params ) {
*/
public static function just_created_entry( $form_id ) {
global $frm_vars;
- return isset( $frm_vars['created_entries'] ) && isset( $frm_vars['created_entries'][ $form_id ] ) && isset( $frm_vars['created_entries'][ $form_id ]['entry_id'] ) ? $frm_vars['created_entries'][ $form_id ]['entry_id'] : 0;
+ return isset( $frm_vars['created_entries'] ) && isset( $frm_vars['created_entries'][ $form_id ] ) && isset( $frm_vars['created_entries'][ $form_id ]['entry_id'] ) ? $frm_vars['created_entries'][ $form_id ]['entry_id'] : 0; // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
}
/**
@@ -3193,7 +3193,7 @@ private static function redirect_after_submit_using_js( $args ) {
private static function get_redirect_message( $success_url, $success_msg, $args ) {
$success_msg = apply_filters( 'frm_content', $success_msg, $args['form'], $args['entry_id'] );
$success_msg = do_shortcode( FrmAppHelper::use_wpautop( $success_msg ) );
- $redirect_msg = '
';
diff --git a/classes/controllers/FrmInboxController.php b/classes/controllers/FrmInboxController.php
index f77fa4b83e..10fe9145ef 100644
--- a/classes/controllers/FrmInboxController.php
+++ b/classes/controllers/FrmInboxController.php
@@ -94,9 +94,9 @@ private static function add_tracking_request() {
$message->add_message(
array(
'key' => 'usage',
- 'message' => 'Gathering usage data allows us to improve Formidable. Your forms will be considered as we evaluate new features, judge the quality of an update, or determine if an improvement makes sense. You can always visit the Global Settings and choose to stop sharing data. Read more about what data we collect.',
+ 'message' => 'Gathering usage data allows us to improve Formidable. Your forms will be considered as we evaluate new features, judge the quality of an update, or determine if an improvement makes sense. You can always visit the Global Settings and choose to stop sharing data. Read more about what data we collect.', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'subject' => __( 'Help Formidable improve with usage tracking', 'formidable' ),
- 'cta' => 'DismissActivate usage tracking',
+ 'cta' => 'DismissActivate usage tracking', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'type' => 'feedback',
)
);
diff --git a/classes/controllers/FrmOnboardingWizardController.php b/classes/controllers/FrmOnboardingWizardController.php
index f4e132c3db..9eebe2e653 100644
--- a/classes/controllers/FrmOnboardingWizardController.php
+++ b/classes/controllers/FrmOnboardingWizardController.php
@@ -466,7 +466,7 @@ public static function mark_onboarding_as_skipped() {
* @return array Configuration for the onboarding wizard slide-in notification.
*/
public static function add_wizard_to_floating_links( $inbox_messages ) {
- $message = __( 'Welcome to Formidable Forms! Click here to run the Onboarding Wizard and it will guide you through the basic settings and get you started in 2 minutes.', 'formidable' );
+ $message = __( 'Welcome to Formidable Forms! Click here to run the Onboarding Wizard and it will guide you through the basic settings and get you started in 2 minutes.', 'formidable' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
if ( ! is_array( $inbox_messages ) ) {
$inbox_messages = array();
@@ -476,7 +476,7 @@ public static function add_wizard_to_floating_links( $inbox_messages ) {
'subject' => esc_html__( 'Begin With Ease!', 'formidable' ),
'message' => esc_html( $message ),
'slidein' => esc_html( $message ),
- 'cta' => '' . esc_html__( 'Begin Setup', 'formidable' ) . '',
+ 'cta' => '' . esc_html__( 'Begin Setup', 'formidable' ) . '', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'created' => time(),
'key' => 'onboarding_wizard',
);
diff --git a/classes/controllers/FrmSMTPController.php b/classes/controllers/FrmSMTPController.php
index 0898d9e15b..c4582aaf35 100644
--- a/classes/controllers/FrmSMTPController.php
+++ b/classes/controllers/FrmSMTPController.php
@@ -165,7 +165,7 @@ protected function output_section_heading() {
?>
-
+
',
esc_url( FrmAppHelper::plugin_url() . '/images/smtp-screenshot-tnail.png' ),
esc_attr__( 'WP Mail SMTP screenshot', 'formidable' ),
- ' ',
+ ' ', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
esc_html__( 'Over 1,000,000 websites use WP Mail SMTP.', 'formidable' ),
esc_html__( 'Send emails authenticated via trusted parties.', 'formidable' ),
esc_html__( 'Transactional Mailers: Pepipost, SendinBlue, Mailgun, SendGrid, Amazon SES.', 'formidable' ),
@@ -440,7 +440,7 @@ public function redirect_to_smtp_settings() {
*/
private function stmp_logo() {
?>
-
+
-
diff --git a/classes/controllers/FrmStylesController.php b/classes/controllers/FrmStylesController.php
index c3843c0c54..cbde3237d4 100644
--- a/classes/controllers/FrmStylesController.php
+++ b/classes/controllers/FrmStylesController.php
@@ -74,8 +74,8 @@ public static function register_post_types() {
* @return void
*/
public static function menu() {
- add_submenu_page( 'formidable', 'Formidable | ' . __( 'Styles', 'formidable' ), __( 'Styles', 'formidable' ), 'frm_change_settings', 'formidable-styles', 'FrmStylesController::route' );
- add_submenu_page( 'themes.php', 'Formidable | ' . __( 'Styles', 'formidable' ), __( 'Forms', 'formidable' ), 'frm_change_settings', 'formidable-styles2', 'FrmStylesController::route' );
+ add_submenu_page( 'formidable', 'Formidable | ' . __( 'Styles', 'formidable' ), __( 'Styles', 'formidable' ), 'frm_change_settings', 'formidable-styles', 'FrmStylesController::route' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
+ add_submenu_page( 'themes.php', 'Formidable | ' . __( 'Styles', 'formidable' ), __( 'Forms', 'formidable' ), 'frm_change_settings', 'formidable-styles2', 'FrmStylesController::route' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
}
/**
@@ -140,7 +140,7 @@ public static function admin_init() {
$style = apply_filters( 'frm_style_head', false );
if ( $style ) {
- wp_enqueue_style( 'frm-single-custom-theme', admin_url( 'admin-ajax.php?action=frmpro_load_css&flat=1' ) . '&' . http_build_query( $style->post_content ), array(), $version );
+ wp_enqueue_style( 'frm-single-custom-theme', admin_url( 'admin-ajax.php?action=frmpro_load_css&flat=1' ) . '&' . http_build_query( $style->post_content ), array(), $version ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
}
}
@@ -848,7 +848,7 @@ public static function custom_css( $message = '', $extra_args = array() ) {
$id = $settings ? $id : 'frm_custom_css_box';
$show_errors = $extra_args['show_errors'] ?? true;
$custom_css = $extra_args['custom_css'] ?? self::get_custom_css();
- $heading = $extra_args['heading'] ?? __( 'You can add custom css here or in your theme style.css. Any CSS added here will be used anywhere the Formidable CSS is loaded.', 'formidable' );
+ $heading = $extra_args['heading'] ?? __( 'You can add custom css here or in your theme style.css. Any CSS added here will be used anywhere the Formidable CSS is loaded.', 'formidable' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
$textarea_params = ! empty( $extra_args['textarea_params'] ) ? $extra_args['textarea_params'] : array(
'name' => 'frm_custom_css',
'id' => $id,
@@ -1386,13 +1386,13 @@ public static function do_accordion_sections( $screen, $context, $data_object )
$accordion_content_id = 'frm_style_section_' . $box['id'];
?>
-
+
-
+
diff --git a/classes/controllers/FrmXMLController.php b/classes/controllers/FrmXMLController.php
index 8b25cd3f85..21f770e480 100644
--- a/classes/controllers/FrmXMLController.php
+++ b/classes/controllers/FrmXMLController.php
@@ -9,7 +9,7 @@ class FrmXMLController {
* @return void
*/
public static function menu() {
- add_submenu_page( 'formidable', 'Formidable | ' . __( 'Import/Export', 'formidable' ), __( 'Import/Export', 'formidable' ), 'frm_edit_forms', 'formidable-import', 'FrmXMLController::route' );
+ add_submenu_page( 'formidable', 'Formidable | ' . __( 'Import/Export', 'formidable' ), __( 'Import/Export', 'formidable' ), 'frm_edit_forms', 'formidable-import', 'FrmXMLController::route' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
}
/**
@@ -350,7 +350,7 @@ public static function import_xml() {
return;
}
- // phpcs:ignore WordPress.Security.NonceVerification.Missing
+ // phpcs:ignore WordPress.Security.NonceVerification.Missing, SlevomatCodingStandard.Files.LineLength.LineTooLong
$has_file = ! empty( $_FILES['frm_import_file'] ) && ! empty( $_FILES['frm_import_file']['name'] ) && ! empty( $_FILES['frm_import_file']['size'] ) && (int) $_FILES['frm_import_file']['size'] > 0;
if ( ! $has_file ) {
diff --git a/classes/helpers/FrmAppHelper.php b/classes/helpers/FrmAppHelper.php
index 20cc5c113a..8899cf6482 100644
--- a/classes/helpers/FrmAppHelper.php
+++ b/classes/helpers/FrmAppHelper.php
@@ -327,10 +327,12 @@ public static function svg_logo( $atts = array() ) {
);
$atts = array_merge( $defaults, $atts );
+ // phpcs:disable SlevomatCodingStandard.Files.LineLength.LineTooLong
return '';
+ // phpcs:enable SlevomatCodingStandard.Files.LineLength.LineTooLong
}
/**
@@ -736,7 +738,8 @@ public static function get_param( $param, $default = '', $src = 'get', $sanitize
}
if ( $src === 'get' ) {
- $value = isset( $_POST[ $param ] ) ? wp_unslash( $_POST[ $param ] ) : ( isset( $_GET[ $param ] ) ? wp_unslash( $_GET[ $param ] ) : $default ); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
+ // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
+ $value = isset( $_POST[ $param ] ) ? wp_unslash( $_POST[ $param ] ) : ( isset( $_GET[ $param ] ) ? wp_unslash( $_GET[ $param ] ) : $default );
if ( ! isset( $_POST[ $param ] ) && isset( $_GET[ $param ] ) && ! is_array( $value ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
@@ -1949,7 +1952,7 @@ public static function maybe_autocomplete_options( $args ) {
$value_label['label'] = self::truncate( $value_label['label'], $args['truncate'] );
}
?>
-
+
__( 'Give this action a label for easy reference.', 'formidable' ),
- 'email_to' => __( 'Add one or more recipient addresses separated by a ",". FORMAT: Name or name@email.com. [default-email] is the address set in the global "Default Email Address" settings.', 'formidable' ),
+ 'email_to' => __( 'Add one or more recipient addresses separated by a ",". FORMAT: Name or name@email.com. [default-email] is the address set in the global "Default Email Address" settings.', 'formidable' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'cc' => __( 'Add CC addresses separated by a ",". FORMAT: Name or name@email.com.', 'formidable' ),
'bcc' => __( 'Add BCC addresses separated by a ",". FORMAT: Name or name@email.com.', 'formidable' ),
- 'reply_to' => __( 'If you would like a different reply to address than the "from" address, add a single address here. FORMAT: Name or name@email.com.', 'formidable' ),
+ 'reply_to' => __( 'If you would like a different reply to address than the "from" address, add a single address here. FORMAT: Name or name@email.com.', 'formidable' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'from' => __( 'Enter the name and/or email address of the sender. FORMAT: John Bates or john@example.com.', 'formidable' ),
/* translators: %1$s: Form name, %2$s: Date */
- 'email_subject' => esc_attr( sprintf( __( 'If you leave the subject blank, the default will be used: %1$s Form submitted on %2$s', 'formidable' ), $form_name, self::site_name() ) ),
- 'new_tab' => __( 'This option will open the link in a new browser tab. Please note that some popup blockers may prevent this from happening, in which case the link will be displayed.', 'formidable' ),
+ 'email_subject' => esc_attr( sprintf( __( 'If you leave the subject blank, the default will be used: %1$s Form submitted on %2$s', 'formidable' ), $form_name, self::site_name() ) ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
+ 'new_tab' => __( 'This option will open the link in a new browser tab. Please note that some popup blockers may prevent this from happening, in which case the link will be displayed.', 'formidable' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
);
if ( ! isset( $tooltips[ $name ] ) ) {
@@ -3805,7 +3808,7 @@ public static function load_admin_wide_js( $load = true ) {
'url' => self::plugin_url(),
'app_url' => 'https://formidableforms.com/',
'applicationsUrl' => admin_url( 'admin.php?page=formidable-applications' ),
- 'canAccessApplicationDashboard' => current_user_can( is_callable( 'FrmProApplicationsHelper::get_required_templates_capability' ) ? FrmProApplicationsHelper::get_required_templates_capability() : 'frm_edit_forms' ),
+ 'canAccessApplicationDashboard' => current_user_can( is_callable( 'FrmProApplicationsHelper::get_required_templates_capability' ) ? FrmProApplicationsHelper::get_required_templates_capability() : 'frm_edit_forms' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'loading' => __( 'Loading…', 'formidable' ),
'nonce' => wp_create_nonce( 'frm_ajax' ),
'proIncludesSliderJs' => is_callable( 'FrmProFormsHelper::prepare_custom_currency' ),
@@ -3873,7 +3876,7 @@ public static function localize_script( $location ) {
'no_valid_default' => __( 'Default value will NOT pass form validation', 'formidable' ),
'confirm' => __( 'Are you sure?', 'formidable' ),
'conf_delete' => __( 'Are you sure you want to delete this field and all data associated with it?', 'formidable' ),
- 'conf_delete_sec' => __( 'All fields inside this Section will be deleted along with their data. Are you sure you want to delete this group of fields?', 'formidable' ),
+ 'conf_delete_sec' => __( 'All fields inside this Section will be deleted along with their data. Are you sure you want to delete this group of fields?', 'formidable' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'conf_no_repeat' => __( 'Warning: If you have entries with multiple rows, all but the first row will be lost.', 'formidable' ),
'default_unique' => FrmFieldsHelper::default_unique_msg(),
'default_conf' => __( 'The entered values do not match', 'formidable' ),
@@ -3881,7 +3884,7 @@ public static function localize_script( $location ) {
'confirm_email' => __( 'Confirm Email', 'formidable' ),
'conditional_text' => __( 'Conditional content here', 'formidable' ),
'new_option' => __( 'New Option', 'formidable' ),
- 'css_invalid_size' => __( 'In certain browsers (e.g. Firefox) text will not display correctly if the field height is too small relative to the field padding and text size. Please increase your field height or decrease your field padding.', 'formidable' ),
+ 'css_invalid_size' => __( 'In certain browsers (e.g. Firefox) text will not display correctly if the field height is too small relative to the field padding and text size. Please increase your field height or decrease your field padding.', 'formidable' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'enter_password' => __( 'Enter Password', 'formidable' ),
'confirm_password' => __( 'Confirm Password', 'formidable' ),
'import_complete' => __( 'Import Complete', 'formidable' ),
@@ -3899,9 +3902,9 @@ public static function localize_script( $location ) {
'edit_action_text' => __( 'Please edit the existing form action.', 'formidable' ),
'unsafe_params' => FrmFormsHelper::reserved_words(),
/* Translators: %s is the name of a Detail Page Slug that is a reserved word.*/
- 'slug_is_reserved' => sprintf( __( 'The Detail Page Slug "%s" is reserved by WordPress. This may cause problems. Is this intentional?', 'formidable' ), '****' ),
+ 'slug_is_reserved' => sprintf( __( 'The Detail Page Slug "%s" is reserved by WordPress. This may cause problems. Is this intentional?', 'formidable' ), '****' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
/* Translators: %s is the name of a parameter that is a reserved word. More than one word could be listed here, though that would not be common. */
- 'param_is_reserved' => sprintf( __( 'The parameter "%s" is reserved by WordPress. This may cause problems when included in the URL. Is this intentional? ', 'formidable' ), '****' ),
+ 'param_is_reserved' => sprintf( __( 'The parameter "%s" is reserved by WordPress. This may cause problems when included in the URL. Is this intentional? ', 'formidable' ), '****' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'reserved_words' => __( 'See the list of reserved words in WordPress.', 'formidable' ),
'repeat_limit_min' => __( 'Please enter a Repeat Limit that is greater than 1.', 'formidable' ),
'checkbox_limit' => __( 'Please select a limit between 0 and 200.', 'formidable' ),
@@ -4007,7 +4010,7 @@ public static function min_version_notice( $min_version ) {
}
$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
- echo '
' .
+ echo '
' . // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
esc_html__( 'You are running an outdated version of Formidable. This plugin may not work correctly if you do not update Formidable.', 'formidable' ) .
'
diff --git a/classes/models/FrmInbox.php b/classes/models/FrmInbox.php
index 9ae0c7d6e5..0a8adeac0c 100644
--- a/classes/models/FrmInbox.php
+++ b/classes/models/FrmInbox.php
@@ -171,7 +171,7 @@ private function clean_messages() {
foreach ( self::$messages as $t => $message ) {
$read = ! empty( $message['read'] ) && isset( $message['read'][ get_current_user_id() ] ) && $message['read'][ get_current_user_id() ] < strtotime( '-1 month' );
- $dismissed = ! empty( $message['dismissed'] ) && isset( $message['dismissed'][ get_current_user_id() ] ) && $message['dismissed'][ get_current_user_id() ] < strtotime( '-1 week' );
+ $dismissed = ! empty( $message['dismissed'] ) && isset( $message['dismissed'][ get_current_user_id() ] ) && $message['dismissed'][ get_current_user_id() ] < strtotime( '-1 week' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
if ( $read || $dismissed || ! $this->within_valid_timeframe( $message ) ) {
unset( self::$messages[ $t ] );
diff --git a/classes/models/FrmMigrate.php b/classes/models/FrmMigrate.php
index 84dff80669..17db77aeee 100644
--- a/classes/models/FrmMigrate.php
+++ b/classes/models/FrmMigrate.php
@@ -152,7 +152,7 @@ private function check_that_tables_exist() {
$message = array(
'key' => 'failed-to-create-tables',
'subject' => 'Something went wrong setting up the database',
- 'message' => 'For steps to continue, see our documentation. If you need assistance, we recommend that you reach out to your hosting provider. Then click here to try again.',
+ 'message' => 'For steps to continue, see our documentation. If you need assistance, we recommend that you reach out to your hosting provider. Then click here to try again.', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'cta' => 'Learn More',
'type' => 'error',
);
@@ -432,7 +432,7 @@ public function uninstall() {
remove_action( 'before_delete_post', 'FrmProDisplaysController::before_delete_post' );
remove_action( 'deleted_post', 'FrmProEntriesController::delete_entry' );
- $post_ids = $wpdb->get_col( $wpdb->prepare( 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type in (%s, %s, %s)', FrmFormActionsController::$action_post_type, FrmStylesController::$post_type, 'frm_display' ) );
+ $post_ids = $wpdb->get_col( $wpdb->prepare( 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type in (%s, %s, %s)', FrmFormActionsController::$action_post_type, FrmStylesController::$post_type, 'frm_display' ) ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
foreach ( $post_ids as $post_id ) {
// Delete's each post.
@@ -446,7 +446,7 @@ public function uninstall() {
delete_transient( 'frmpro_options' );
delete_transient( FrmOnboardingWizardController::TRANSIENT_NAME );
- $wpdb->query( $wpdb->prepare( 'DELETE FROM ' . $wpdb->options . ' WHERE option_name LIKE %s OR option_name LIKE %s', '_transient_timeout_frm_form_fields_%', '_transient_frm_form_fields_%' ) );
+ $wpdb->query( $wpdb->prepare( 'DELETE FROM ' . $wpdb->options . ' WHERE option_name LIKE %s OR option_name LIKE %s', '_transient_timeout_frm_form_fields_%', '_transient_frm_form_fields_%' ) ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
do_action( 'frm_after_uninstall' );
diff --git a/classes/models/FrmPluginSearch.php b/classes/models/FrmPluginSearch.php
index f90cc6c40f..38c4e63e4b 100644
--- a/classes/models/FrmPluginSearch.php
+++ b/classes/models/FrmPluginSearch.php
@@ -322,7 +322,7 @@ public function insert_related_links( $links, $plugin ) {
),
admin_url( 'plugins.php' )
);
- $links['frm_get_started'] = '' . __( 'Activate', 'formidable' ) . '';
+ $links['frm_get_started'] = '' . __( 'Activate', 'formidable' ) . ''; // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
}
} elseif ( ! $is_active && isset( $plugin['url'] ) ) {
// Go to the add-ons page to install.
diff --git a/classes/models/FrmRecaptchaSettings.php b/classes/models/FrmRecaptchaSettings.php
index 2edc2570a0..b189de872f 100644
--- a/classes/models/FrmRecaptchaSettings.php
+++ b/classes/models/FrmRecaptchaSettings.php
@@ -50,7 +50,7 @@ public function get_documentation_url() {
* @return string
*/
public function get_site_key_tooltip() {
- return __( 'reCAPTCHA is a free, accessible CAPTCHA service that helps to digitize books while blocking spam on your blog. reCAPTCHA asks commenters to retype two words scanned from a book to prove that they are a human. This verifies that they are not a spambot.', 'formidable' );
+ return __( 'reCAPTCHA is a free, accessible CAPTCHA service that helps to digitize books while blocking spam on your blog. reCAPTCHA asks commenters to retype two words scanned from a book to prove that they are a human. This verifies that they are not a spambot.', 'formidable' ); // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
}
/**
diff --git a/classes/models/FrmReviews.php b/classes/models/FrmReviews.php
index a43b42bd90..8093a2c841 100644
--- a/classes/models/FrmReviews.php
+++ b/classes/models/FrmReviews.php
@@ -157,11 +157,11 @@ private function add_to_inbox( $title, $name, $asked ) {
$message->add_message(
array(
'key' => $key,
- 'message' => __( 'If you are enjoying Formidable, could you do me a BIG favor and give us a review to help me grow my little business and boost our motivation?', 'formidable' ) . ' ' .
+ 'message' => __( 'If you are enjoying Formidable, could you do me a BIG favor and give us a review to help me grow my little business and boost our motivation?', 'formidable' ) . ' ' . // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
'- Steph Wells ' .
'' . esc_html__( 'Co-Founder and CTO of Formidable Forms', 'formidable' ) . '',
'subject' => str_replace( $name, '', $title ),
- 'cta' => '' .
+ 'cta' => '' . // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
esc_html__( 'Ok, you deserve it', 'formidable' ) . '',
'type' => 'feedback',
)
diff --git a/classes/models/FrmSolution.php b/classes/models/FrmSolution.php
index ad9f6d9efb..68aac5deec 100644
--- a/classes/models/FrmSolution.php
+++ b/classes/models/FrmSolution.php
@@ -473,7 +473,7 @@ protected function step_top( $step ) {
);
} else {
?>
-
+
@@ -579,7 +579,7 @@ protected function show_app_install( $step ) {
if ( ! $has_file ) {
echo '