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
7 changes: 5 additions & 2 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ jobs:
${{ runner.os }}-bun-

# ESLint and Prettier must be in `package.json`
- name: Remove npm lockfile to prevent bun git-clone issues
run: rm -f package-lock.json

- name: Install dependencies
run: bun install --frozen-lockfile
run: bun install
env:
BUN_AUTH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

Expand All @@ -42,7 +45,7 @@ jobs:
for pkg in helpers icons components; do
dir="node_modules/@kadence/${pkg}"
if [ -f "$dir/package.json" ]; then
(cd "$dir" && npm install && npm run build)
(cd "$dir" && npm install --omit=prod && npm run build)
fi
done

Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,23 @@ jobs:
with:
bun-version: latest

- run: bun install --frozen-lockfile
- name: Remove npm lockfile to prevent bun git-clone issues
run: rm -f package-lock.json

- run: bun install
env:
BUN_AUTH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
PUPPETEER_SKIP_DOWNLOAD: true

- name: Build Kadence workspace packages
run: |
for pkg in helpers icons components; do
dir="node_modules/@kadence/${pkg}"
if [ -f "$dir/package.json" ]; then
(cd "$dir" && npm install --omit=prod && npm run build)
fi
done

- name: Build packages
run: bun run build

Expand Down
2 changes: 1 addition & 1 deletion includes/assets/js/kb-advanced-form-block.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function (token) {
wp_add_inline_script( 'kadence-blocks-recaptcha', $recaptcha_v3_script, 'after' );
$this->enqueue_script( 'kadence-blocks-recaptcha' );

$output = '<input type="hidden" name="recaptcha_response" class="kb_recaptcha_response kb_recaptcha_' . esc_attr( $unique_id ) . '" />';
$output = '<input type="hidden" name="recaptcha_response" class="kb_recaptcha_response kb_recaptcha_' . esc_attr( $unique_id ) . '" data-sitekey="' . esc_attr( $captcha_settings->public_key ) . '" />';

// Handle Kadence Captcha plugin settings
$recaptcha_notice_html = '<span style="max-width: 100%%; font-size: 11px; color: #555; line-height: 1.2; display: block; margin-bottom: 16px; padding: 10px; background: #f2f2f2;" class="kt-recaptcha-branding-string">%s</span>';
Expand Down
Loading
Loading