From 22716b4227b39e95c99f7ed1a3dbe5a84b4d2eac Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 26 Apr 2026 09:06:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20calc=20shortcode=20name=20mismatch=20?= =?UTF-8?q?=E2=80=94=20prc=5Fcalculator=20not=20peptide=5Ftools=5Fcalculat?= =?UTF-8?q?or=20(v2.1.3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit page-calculator.php and module-cards.php were both checking for 'peptide_tools_calculator' which the plugin never registered. The calc plugin (prc) registers 'prc_calculator' — template fell through to the 'currently being set up' fallback on every request. --- page-calculator.php | 4 ++-- style.css | 2 +- template-parts/module-cards.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/page-calculator.php b/page-calculator.php index 115d548..aa7ee21 100644 --- a/page-calculator.php +++ b/page-calculator.php @@ -33,8 +33,8 @@ get_header();
diff --git a/style.css b/style.css index 748c730..d750e35 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Theme URI: https://github.com/peptiderepo/peptide-starter Description: Premium, accessible WordPress theme for scientific peptide reference database Author: Peptide Repo Author URI: https://peptiderepo.com -Version: 2.1.2 +Version: 2.1.3 License: GPL v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: peptide-starter diff --git a/template-parts/module-cards.php b/template-parts/module-cards.php index 0d1a29d..83e65db 100644 --- a/template-parts/module-cards.php +++ b/template-parts/module-cards.php @@ -34,7 +34,7 @@ $modules = array( 'description' => __( 'Reconstitute a peptide accurately. Enter the vial, the bacteriostatic water, the target dose; get the units.', 'peptide-starter' ), 'url' => '/calculator', 'icon' => '', - 'available' => shortcode_exists( 'peptide_tools_calculator' ), + 'available' => shortcode_exists( 'prc_calculator' ), ), array( 'title' => __( 'Protocol Builder', 'peptide-starter' ),