GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge branch 'develop' into ci/deploy-demo · axeptio/wordpress-plugin@335f2d8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .claude-review-fixes.md
  • .github/workflows
    • auto-approve-copilot.yml
  • CLAUDE.md
  • assets/js/backend/components
    • pluginList.js
  • axeptio-wordpress-plugin.php
  • includes
    • classes
      • admin
        • pages
          • class-admin-callbacks.php
          • class-admin-main.php
        • rest
          • class-plugins.php
        • settings
          • class-setting-api.php
      • backend
        • class-settings.php
      • compat
        • class-alpinejs-wpkses.php
      • frontend
        • class-axeptio-sdk.php
        • class-hook-modifier.php
        • class-sdk-proxy.php
      • init
        • class-activation-hook.php
      • models
        • class-axeptio-steps.php
        • class-hook-modes.php
        • class-models.php
        • class-plugins.php
        • class-shortcode-tags-modes.php
        • class-wp-consent-api-settings.php
      • third-party
        • class-wp-rocket.php
    • core.php
    • helpers
      • helpers.php
      • utility.php
    • wpcs-autoload.php
  • languages
    • axeptio-sdk-integration-de_DE.mo
    • axeptio-sdk-integration-de_DE.po
    • axeptio-sdk-integration-en_US.mo
    • axeptio-sdk-integration-en_US.po
    • axeptio-sdk-integration-es_ES.mo
    • axeptio-sdk-integration-es_ES.po
    • axeptio-sdk-integration-fr_FR.mo
    • axeptio-sdk-integration-fr_FR.po
    • axeptio-sdk-integration-it_IT.mo
    • axeptio-sdk-integration-it_IT.po
    • axeptio-sdk-integration-nl_NL.mo
    • axeptio-sdk-integration-nl_NL.po
    • axeptio-sdk-integration.pot
  • readme.txt
  • templates
    • admin
      • common/fields
        • gtm-events.php
        • image-upload.php
        • select-languages.php
        • text.php
        • textarea.php
        • title.php
        • toggle.php
      • main
        • fields
          • background-image.php
          • client-id.php
          • google-consent-mode.php
          • non-existing-account.php
          • proxy-sdk.php
          • sdk-active.php
          • send-datas.php
          • validation-error.php
          • version-options.php
          • version.php
          • widget-options.php
        • tabs.php
      • onboarding
        • account.php
        • welcome.php
      • plugin-manager.php
      • plugins/fields
        • edit.php
        • modal-delete.php
        • repeater.php
        • toggle.php
      • sections
        • main.php
        • notice.php
        • plugins.php
      • settings-main.php
    • frontend
      • google-consent-mode.php
      • sdk.php
      • shortcode-placeholder.php

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.claude-review-fixes.md‎

Copy file name to clipboardExpand all lines: .claude-review-fixes.md
-25Lines changed: 0 additions & 25 deletions
This file was deleted.
Collapse file

‎.github/workflows/auto-approve-copilot.yml‎

Copy file name to clipboard
+180Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
name: Auto-approve (Copilot)
2+
3+
# Standalone (non-reusable) copy for public repos — public repos cannot call
4+
# reusable workflows from internal/private repositories. This file mirrors the
5+
# logic of axeptio/tech-scripts/.github/workflows/auto-approve-copilot.yml.
6+
# Keep in sync with the canonical template when the reusable workflow is updated.
7+
8+
on:
9+
pull_request:
10+
types: [opened, ready_for_review, synchronize, reopened]
11+
branches: [develop, staging, main, master]
12+
pull_request_review:
13+
types: [submitted]
14+
15+
permissions:
16+
pull-requests: write
17+
contents: read
18+
checks: read
19+
20+
concurrency:
21+
group: >-
22+
auto-approve-copilot-${{ github.repository }}-${{
23+
github.event.pull_request.number ||
24+
github.run_id
25+
}}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
auto-approve:
30+
name: Auto-approve if Copilot conditions met
31+
runs-on: ubuntu-latest
32+
if: >-
33+
github.event.pull_request != null &&
34+
(github.event.pull_request.base.ref == 'develop' ||
35+
github.event.pull_request.base.ref == 'staging' ||
36+
github.event.pull_request.base.ref == 'main' ||
37+
github.event.pull_request.base.ref == 'master') &&
38+
github.event.pull_request.draft == false &&
39+
github.event.pull_request.head.repo.full_name == github.repository &&
40+
github.actor != 'axeptio-bot'
41+
env:
42+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
43+
SLACK_CHANNEL: alert-pr-notifications
44+
steps:
45+
- name: Checkout tech-scripts (for decide.js)
46+
uses: actions/checkout@v4
47+
with:
48+
repository: axeptio/tech-scripts
49+
ref: master
50+
path: .tech-scripts
51+
persist-credentials: false
52+
token: ${{ secrets.BOT_GITHUB_TOKEN }}
53+
54+
- name: Request axeptio-bot review
55+
if: >-
56+
github.event_name == 'pull_request' &&
57+
(github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened')
58+
uses: actions/github-script@v7
59+
with:
60+
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
61+
script: |
62+
const botLogin = 'axeptio-bot';
63+
const { owner, repo } = context.repo;
64+
const prNumber = context.payload.pull_request.number;
65+
const { data: pr } = await github.rest.pulls.get({ owner, repo, pull_number: prNumber });
66+
if (pr.user.login === botLogin) return;
67+
const alreadyRequested = pr.requested_reviewers.some(r => r.login === botLogin);
68+
if (!alreadyRequested) {
69+
await github.rest.pulls.requestReviewers({
70+
owner, repo, pull_number: prNumber,
71+
reviewers: [botLogin],
72+
});
73+
}
74+
75+
- name: Evaluate and approve
76+
id: evaluate
77+
uses: actions/github-script@v7
78+
env:
79+
AUTO_APPROVE_BASE_BRANCH: develop,staging,main,master
80+
with:
81+
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
82+
script: |
83+
const decide = require('./.tech-scripts/scripts/auto-approve-copilot/decide.js');
84+
await decide({ github, context, core });
85+
86+
- name: Notify Slack (approved)
87+
if: steps.evaluate.outputs.decision == 'approved' && env.SLACK_BOT_TOKEN != ''
88+
continue-on-error: true
89+
env:
90+
REPO: ${{ github.repository }}
91+
PR_URL: ${{ github.event.pull_request.html_url }}
92+
PR_NUMBER: ${{ github.event.pull_request.number }}
93+
PR_TITLE: ${{ github.event.pull_request.title }}
94+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
95+
REASON: ${{ steps.evaluate.outputs.reason }}
96+
run: |
97+
payload=$(jq -nc \
98+
--arg channel "$SLACK_CHANNEL" \
99+
--arg repo "$REPO" \
100+
--arg url "$PR_URL" \
101+
--arg num "$PR_NUMBER" \
102+
--arg title "$PR_TITLE" \
103+
--arg author "$PR_AUTHOR" \
104+
--arg reason "$REASON" \
105+
'def s: gsub("&";"&amp;")|gsub("<";"&lt;")|gsub(">";"&gt;")|gsub("\\|";"|");
106+
def test_flag: if ($repo | test("test-only-repo|tech-scripts")) then "[TEST] " else "" end;
107+
{channel: $channel,
108+
attachments: [{
109+
color: "#36a64f",
110+
text: (test_flag + "<" + $url + "|" + ($repo | split("/")[-1]) + "#" + $num + "> @" + $author + " — " + ($title|s) + "\n" + ($reason|s))
111+
}]}')
112+
curl -sS -X POST \
113+
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
114+
-H 'Content-type: application/json; charset=utf-8' \
115+
--data "$payload" \
116+
https://slack.com/api/chat.postMessage
117+
118+
- name: Notify Slack (skipped)
119+
if: steps.evaluate.outputs.decision == 'skip' && env.SLACK_BOT_TOKEN != ''
120+
continue-on-error: true
121+
env:
122+
REPO: ${{ github.repository }}
123+
PR_URL: ${{ github.event.pull_request.html_url }}
124+
PR_NUMBER: ${{ github.event.pull_request.number }}
125+
PR_TITLE: ${{ github.event.pull_request.title }}
126+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
127+
REASON: ${{ steps.evaluate.outputs.reason }}
128+
run: |
129+
payload=$(jq -nc \
130+
--arg channel "$SLACK_CHANNEL" \
131+
--arg repo "$REPO" \
132+
--arg url "$PR_URL" \
133+
--arg num "$PR_NUMBER" \
134+
--arg title "$PR_TITLE" \
135+
--arg author "$PR_AUTHOR" \
136+
--arg reason "$REASON" \
137+
'def s: gsub("&";"&amp;")|gsub("<";"&lt;")|gsub(">";"&gt;")|gsub("\\|";"|");
138+
def test_flag: if ($repo | test("test-only-repo|tech-scripts")) then "[TEST] " else "" end;
139+
{channel: $channel,
140+
attachments: [{
141+
color: "#e8912d",
142+
text: (test_flag + "<" + $url + "|" + ($repo | split("/")[-1]) + "#" + $num + "> @" + $author + " — " + ($title|s) + "\nskipped: " + ($reason|s))
143+
}]}')
144+
curl -sS -X POST \
145+
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
146+
-H 'Content-type: application/json; charset=utf-8' \
147+
--data "$payload" \
148+
https://slack.com/api/chat.postMessage
149+
150+
- name: Notify Slack (error)
151+
if: failure() && env.SLACK_BOT_TOKEN != ''
152+
continue-on-error: true
153+
env:
154+
REPO: ${{ github.repository }}
155+
PR_URL: ${{ github.event.pull_request.html_url }}
156+
PR_NUMBER: ${{ github.event.pull_request.number }}
157+
PR_TITLE: ${{ github.event.pull_request.title }}
158+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
159+
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
160+
run: |
161+
payload=$(jq -nc \
162+
--arg channel "$SLACK_CHANNEL" \
163+
--arg repo "$REPO" \
164+
--arg url "$PR_URL" \
165+
--arg num "$PR_NUMBER" \
166+
--arg title "$PR_TITLE" \
167+
--arg author "$PR_AUTHOR" \
168+
--arg runUrl "$RUN_URL" \
169+
'def s: gsub("&";"&amp;")|gsub("<";"&lt;")|gsub(">";"&gt;")|gsub("\\|";"|");
170+
def test_flag: if ($repo | test("test-only-repo|tech-scripts")) then "[TEST] " else "" end;
171+
{channel: $channel,
172+
attachments: [{
173+
color: "#ff0000",
174+
text: (test_flag + "<" + $url + "|" + ($repo | split("/")[-1]) + "#" + $num + "> @" + $author + " — " + ($title|s) + "\nerror — <" + $runUrl + "|run log>")
175+
}]}')
176+
curl -sS -X POST \
177+
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
178+
-H 'Content-type: application/json; charset=utf-8' \
179+
--data "$payload" \
180+
https://slack.com/api/chat.postMessage
Collapse file

‎CLAUDE.md‎

Copy file name to clipboardExpand all lines: CLAUDE.md
+7-2Lines changed: 7 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
66

77
WordPress plugin integrating the Axeptio CMP (Consent Management Platform) SDK for GDPR-compliant cookie consent management. Published on WordPress.org SVN. Supports WPML/PolyLang for multilingual sites.
88

9-
- **Plugin slug**: `axeptio-wordpress-plugin`
10-
- **Text domain**: `axeptio-wordpress-plugin`
9+
- **WordPress.org slug**: `axeptio-sdk-integration` (SVN repo, plugin folder, dist package)
10+
- **Text domain**: `axeptio-sdk-integration` (the 2nd arg of every i18n call: `__()`, `esc_html__()`, …)
11+
- **Admin page slug**: `axeptio-wordpress-plugin` — DISTINCT from the text domain. Used in `menu_slug`, `parent_slug`, `'page' => …`, `toplevel_page_…`, `do_settings_sections()`. Do NOT "fix" these to `axeptio-sdk-integration`; renaming would break the admin menu and option saving.
12+
- **Entry point file**: `axeptio-wordpress-plugin.php` (legacy filename, unrelated to the text domain)
1113
- **Min PHP**: 7.4 | **Min WP**: 5.6
1214
- **Constant prefix**: `XPWP_`
1315
- **Global prefixes** (PHPCS enforced): `axeptio`, `AXEPTIO`, `Axeptio`, `XPWP`, `xpwp`
@@ -56,6 +58,7 @@ Conventional commits enforced by Husky + commitlint. Allowed types: `build`, `ch
5658
All features extend the abstract `Module` class (`includes/classes/class-module.php`) which requires `can_register()` and `register()` methods. `Module_Initialization` (singleton) auto-discovers and initializes modules sorted by `$load_order`.
5759

5860
Registered modules (in `class-module-initialization.php`):
61+
5962
- `Models` — data layer
6063
- `Activation_Hook` — plugin activation logic
6164
- `AlpineJS_Wpkses` — wp_kses compatibility for Alpine.js attributes
@@ -105,3 +108,5 @@ dist/ # Built assets (generated, not committed)
105108
- **PHP**: WordPress Coding Standards (WPCS) via PHPCS. Short array syntax `[]` enforced. PHP 7.4+ features allowed.
106109
- **JS**: WordPress ESLint plugin
107110
- **Static analysis**: PHPStan at max level with WordPress extensions
111+
- **Direct-access guard**: every file under `templates/` must start with `defined( 'ABSPATH' ) || exit;` (Plugin Check `missing_direct_file_access_protection`). For HTML-first templates, prepend `<?php defined( 'ABSPATH' ) || exit; ?>`. Class files under `includes/` that only declare a namespaced class are not flagged. `rector.php` and `tests/` are flagged locally but excluded from the dist package via `.distignore`, so leave them alone.
112+
- **Plugin Check**: `ddev wp plugin check axeptio-sdk-integration` (the WordPress.org review tool). The dist package is produced from `.distignore` (CI/CD deploy); note `exclusions.txt` used by `task release` does NOT currently exclude `tests/`.
Collapse file

‎assets/js/backend/components/pluginList.js‎

Copy file name to clipboardExpand all lines: assets/js/backend/components/pluginList.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ const instance = function( args ) {
165165
this.setForceEditOpen( true );
166166
const self = this;
167167
const customUploader = wp.media( {
168-
title: wp.i18n.__( 'Select a media', 'axeptio-wordpress-plugin' ),
169-
button: { text: wp.i18n.__( 'Use this media', 'axeptio-wordpress-plugin' ) },
168+
title: wp.i18n.__( 'Select a media', 'axeptio-sdk-integration' ),
169+
button: { text: wp.i18n.__( 'Use this media', 'axeptio-sdk-integration' ) },
170170
multiple: false,
171171
} ).on( 'select', function() {
172172
const attachment = customUploader.state().get( 'selection' ).first().toJSON();
Collapse file

‎axeptio-wordpress-plugin.php‎

Copy file name to clipboardExpand all lines: axeptio-wordpress-plugin.php
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
Author: axeptio
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
10-
Text Domain: axeptio-wordpress-plugin
10+
Text Domain: axeptio-sdk-integration
1111
Domain Path: /languages
1212
Requires Plugins: wp-consent-api
1313
**/
1414

15+
defined( 'ABSPATH' ) || exit;
16+
1517
define( 'XPWP_VERSION', '2.6.2' );
1618
define( 'XPWP_URL', plugin_dir_url( __FILE__ ) );
1719
define( 'XPWP_PATH', plugin_dir_path( __FILE__ ) );
@@ -31,15 +33,15 @@
3133

3234
deactivate_plugins( XPWP_BASENAME );
3335

34-
$axeptio_error_message = '<h1>' . esc_attr__( 'Unable to activate Axeptio', 'axeptio-wordpress-plugin' ) . '</h1>';
36+
$axeptio_error_message = '<h1>' . esc_attr__( 'Unable to activate Axeptio', 'axeptio-sdk-integration' ) . '</h1>';
3537

3638
$axeptio_error_message .= '<p>' . sprintf(
3739
/* translators: %1$s: current php version min and %2$s version of php required */
38-
esc_attr__( 'Your server is currently running PHP %1$s. The Axeptio plugin requires at least PHP %2$s. Please upgrade your PHP version to use this plugin.', 'axeptio-wordpress-plugin' ),
40+
esc_attr__( 'Your server is currently running PHP %1$s. The Axeptio plugin requires at least PHP %2$s. Please upgrade your PHP version to use this plugin.', 'axeptio-sdk-integration' ),
3941
PHP_VERSION,
4042
'7.4'
4143
) . '</p>';
42-
$axeptio_error_message .= sprintf( '<p><a class="button button-large" href="%1$s">%2$s</a></p>', esc_url( get_admin_url( null, 'plugins.php' ) ), __( 'Return to plugins pages', 'axeptio-wordpress-plugin' ) );
44+
$axeptio_error_message .= sprintf( '<p><a class="button button-large" href="%1$s">%2$s</a></p>', esc_url( get_admin_url( null, 'plugins.php' ) ), __( 'Return to plugins pages', 'axeptio-sdk-integration' ) );
4345

4446
wp_die( ( $axeptio_error_message ) ); // PHPCS:Ignore WordPress.Security.EscapeOutput.OutputNotEscaped
4547

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.