From c534f0fd1abeebc7dd32f0e53d974ba3ced31da4 Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Fri, 13 Mar 2026 13:23:57 -0600 Subject: [PATCH 1/7] Add translators message --- projects/plugins/crm/admin/contact/add-file.page.php | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/plugins/crm/admin/contact/add-file.page.php b/projects/plugins/crm/admin/contact/add-file.page.php index 1f5e16fb7b7c..bc50d4c18213 100644 --- a/projects/plugins/crm/admin/contact/add-file.page.php +++ b/projects/plugins/crm/admin/contact/add-file.page.php @@ -105,6 +105,7 @@ function zeroBSCRM_render_add_or_edit_file() { if ( isset( $upload['error'] ) && $upload['error'] != 0 ) { echo "
"; + /* translators: %s: Upload error message. */ printf( esc_html__( 'There was an error uploading your file: %s', 'zero-bs-crm' ), esc_html( $upload['error'] ) ); echo '
'; $error_while_adding = true; From d1c18dafaf876efd942b5a9f2a2bfa86278b7eb3 Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Fri, 13 Mar 2026 13:24:31 -0600 Subject: [PATCH 2/7] Remove global redeclaration --- projects/plugins/crm/admin/system/system-status.page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/plugins/crm/admin/system/system-status.page.php b/projects/plugins/crm/admin/system/system-status.page.php index 9f08e7e03d92..62e3f2978113 100644 --- a/projects/plugins/crm/admin/system/system-status.page.php +++ b/projects/plugins/crm/admin/system/system-status.page.php @@ -41,7 +41,7 @@ function zeroBSCRM_render_systemstatus_page() { // hard-check database tables & report - global $ZBSCRM_t, $wpdb; + global $ZBSCRM_t; $missingTables = array(); // then we cycle through our tables :) - means all keys NEED to be kept up to date :) From ea47d07808b623e1709d75e14faf1a7175759720 Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Fri, 13 Mar 2026 13:25:24 -0600 Subject: [PATCH 3/7] Remove unused var --- projects/plugins/crm/admin/system/system-status.page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/plugins/crm/admin/system/system-status.page.php b/projects/plugins/crm/admin/system/system-status.page.php index 62e3f2978113..8c2f829d84d5 100644 --- a/projects/plugins/crm/admin/system/system-status.page.php +++ b/projects/plugins/crm/admin/system/system-status.page.php @@ -45,7 +45,7 @@ function zeroBSCRM_render_systemstatus_page() { $missingTables = array(); // then we cycle through our tables :) - means all keys NEED to be kept up to date :) - foreach ( $ZBSCRM_t as $tableKey => $tableName ) { + foreach ( $ZBSCRM_t as $tableName ) { $tablesExist = $wpdb->get_results( "SHOW TABLES LIKE '" . $tableName . "'" ); if ( count( $tablesExist ) < 1 ) { $missingTables[] = $tableName; From 9e7f45d26a526da9992eea9c01e811b8a41909b7 Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Fri, 13 Mar 2026 13:34:17 -0600 Subject: [PATCH 4/7] Add translators message --- projects/plugins/crm/includes/class-encryption.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/plugins/crm/includes/class-encryption.php b/projects/plugins/crm/includes/class-encryption.php index eeb4ad548658..c74472b063e6 100644 --- a/projects/plugins/crm/includes/class-encryption.php +++ b/projects/plugins/crm/includes/class-encryption.php @@ -43,6 +43,7 @@ public function check_cipher_and_fallback() { $this->ready_to_encrypt = false; // error loading encryption + /* translators: %s: Encryption cipher method name. */ echo zeroBSCRM_UI2_messageHTML( 'warning', __( 'Unable to load encryption method', 'zero-bs-crm' ), sprintf( __( 'CRM was unable to load the required encryption method (%s). Until this is method is available to your PHP your sensitive data may not be encrypted properly.', 'zero-bs-crm' ), $this->cipher ) ); return; @@ -82,6 +83,7 @@ public function check_cipher_and_fallback() { $zbs->settings->update( 'enc_fallback_blocked', 1 ); // error loading encryption + /* translators: %s: Encryption cipher method name. */ echo zeroBSCRM_UI2_messageHTML( 'warning', __( 'Unable to load encryption method', 'zero-bs-crm' ), sprintf( __( 'CRM was unable to load the required encryption method (%s). Until this is method is available to your PHP your sensitive data may not be encrypted properly.', 'zero-bs-crm' ), $this->cipher ) ); } From a48b1d688d81faea1a1917703346df16573f76d7 Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Fri, 13 Mar 2026 14:33:15 -0600 Subject: [PATCH 5/7] Fix attribute whitespace bugs --- .../ZeroBSCRM.MetaBoxes3.Contacts.php | 33 ++++------ .../includes/ZeroBSCRM.MetaBoxes3.Quotes.php | 7 +-- .../mailpoet/admin/settings/main.page.php | 32 ++++++---- .../admin/settings/connection_edit.page.php | 62 ++++++++++--------- 4 files changed, 65 insertions(+), 69 deletions(-) diff --git a/projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Contacts.php b/projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Contacts.php index c8432e6894b8..3a196c9f2df8 100644 --- a/projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Contacts.php +++ b/projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Contacts.php @@ -739,21 +739,9 @@ public function html( $contact, $metabox ) {
- data-action=" - - " data-url=" - - " + data-action="url" data-url=""
- +

- + " /> + + " + /> +
- " /> + + " + /> + diff --git a/projects/plugins/crm/modules/woo-sync/admin/settings/connection_edit.page.php b/projects/plugins/crm/modules/woo-sync/admin/settings/connection_edit.page.php index f4ebfd1c1104..fdb84274ee5e 100644 --- a/projects/plugins/crm/modules/woo-sync/admin/settings/connection_edit.page.php +++ b/projects/plugins/crm/modules/woo-sync/admin/settings/connection_edit.page.php @@ -141,18 +141,8 @@ function jpcrm_settings_page_html_woosync_connection_edit() { ?> - - + + @@ -165,21 +155,29 @@ function jpcrm_settings_page_html_woosync_connection_edit() { ?> - + + + - + + + - + + + From 978dfbe820ee66db60eaa68a7b3de00705d35909 Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Fri, 13 Mar 2026 14:44:54 -0600 Subject: [PATCH 6/7] Remove some PHPCS ignores --- projects/plugins/crm/includes/ZeroBSCRM.List.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/plugins/crm/includes/ZeroBSCRM.List.php b/projects/plugins/crm/includes/ZeroBSCRM.List.php index 675fd2fdc028..a9c871d33a1f 100644 --- a/projects/plugins/crm/includes/ZeroBSCRM.List.php +++ b/projects/plugins/crm/includes/ZeroBSCRM.List.php @@ -542,7 +542,7 @@ public function drawListView() { var zbsDrawListViewColUpdateBlocker = false; var zbsDrawListViewColUpdateAJAXBlocker = false; - var zbsObjectEmailLinkPrefix = ''; + var zbsObjectEmailLinkPrefix = ''; var zbsObjectViewLinkPrefixCustomer = ''; var zbsObjectViewLinkPrefixCompany = ''; var zbsObjectViewLinkPrefixQuote = ''; From d61c0e26b28cd3c0b6e3a58e4a28f113eee322fe Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Tue, 17 Mar 2026 10:17:41 -0600 Subject: [PATCH 7/7] Add changelog --- .../crm/changelog/fix-crm-autoformat_goofs_and_tweaks | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 projects/plugins/crm/changelog/fix-crm-autoformat_goofs_and_tweaks diff --git a/projects/plugins/crm/changelog/fix-crm-autoformat_goofs_and_tweaks b/projects/plugins/crm/changelog/fix-crm-autoformat_goofs_and_tweaks new file mode 100644 index 000000000000..8217bf03dc75 --- /dev/null +++ b/projects/plugins/crm/changelog/fix-crm-autoformat_goofs_and_tweaks @@ -0,0 +1,5 @@ +Significance: patch +Type: fixed +Comment: Fix some unreleased regressions introduced in #46809. + +