Commit Graph

15 Commits

Author SHA1 Message Date
e1ee99ac9c fix: validate type parameter against allow-list in showMessage (#83)
Adds allow-list validation for the 'type' parameter in showMessage()
to prevent class injection vulnerabilities. The type is now checked
against ['success', 'error'] before being passed to addClass(), with
a safe fallback to 'error' for any unexpected values.

Addresses review feedback from PR #47 (gemini-code-assist finding).
Closes #76
2026-03-17 19:33:04 +00:00
9cddf28c09 fix: use standard max-width media query syntax in admin-styles.css (issue #43) (#68)
Replace invalid CSS media-feature range notation with universally-supported
traditional syntax for better browser compatibility.

- admin/css/admin-styles.css:127: (width <= 782px) → (max-width: 782px)
2026-03-17 01:17:05 +00:00
1d41af86c3 fix: add dialog semantics and accessible close button to update source modal (#58)
Addresses PR #18 review feedback (issue #22):
- Add role="dialog", aria-modal="true", aria-labelledby to modal container
- Add tabindex="-1" to make modal keyboard-focusable
- Add unique id to <h2> heading for aria-labelledby reference
- Replace <span class="wpst-modal-close"> with <button type="button"> and aria-label

Fixes #22
2026-03-16 23:08:09 +00:00
5d148f8af9 fix: address CSS quality-debt from PR #15 review feedback (#55)
- Convert tab indentation to 4 spaces in admin/css/admin-styles.css
  and admin/css/update-source-selector.css per project coding standards
- Add stylelint and stylelint-config-standard to devDependencies
- Add lint:css npm script to enable CSS quality checking
- Update quality script to include CSS linting

The playground/multisite.html CSS rule-empty-line-before fix was already
applied in commit 3ca2fe5. This PR formally closes the quality-debt
tracking issue by verifying the fix and adding CSS linting tooling to
prevent similar regressions.

Closes #38
2026-03-16 22:44:46 +00:00
1c1980bb22 chore: improve workflow names and fix CSS indentation consistency (#18)
* fix: resolve plugin class loading reliability issues

* fix: address CodeRabbit XSS and accessibility findings from PR #18

- admin/js/admin-scripts.js: replace HTML string interpolation in showNotice
  with DOM API construction and .text() to prevent XSS; whitelist type values
- admin/js/update-source-selector.js: replace .html(message) with .text(message)
  in showMessage to prevent XSS from AJAX response content
- admin/templates/modal.php: add role=dialog, aria-modal=true, aria-labelledby
  for screen reader semantics; replace <span> close control with <button> for
  keyboard operability and proper ARIA role
2026-03-16 18:40:09 +00:00
cdc73bc010 Fix remaining code quality issues
- Fixed method names to use snake_case as required by WordPress coding standards
- Added proper spacing in filter_input function call
- Added periods at the end of inline comments
- Fixed parameter documentation in Plugin class
- Updated CSS media query to use context notation
2025-04-21 15:18:11 +01:00
67c6c65611 Fix camelCase naming and superglobal access issues
- Renamed methods to follow camelCase convention (initialize_hooks -> initializeHooks, enqueue_admin_assets -> enqueueAdminAssets)
- Renamed variables to follow camelCase convention (plugin_version -> pluginVersion)
- Replaced direct  superglobal access with filter_input() for better security
- Simplified commented-out code with a clear TODO comment
2025-04-21 15:14:15 +01:00
4c1bee9dbe Fix CSS and JavaScript formatting issues
- Updated stylelint configuration to fix CSS formatting issues
- Updated ESLint configuration to fix JavaScript issues
- Added global variables to ESLint configuration
2025-04-21 15:04:05 +01:00
200cc5671d Fix indentation issues in PHP files
- Fixed tabs vs spaces indentation issues in PHP files
- Updated phpcs.xml configuration
2025-04-21 15:01:09 +01:00
51183c378e Fix: Correct PHPCS alignment and update wp_mock constraint 2025-04-18 18:19:48 +01:00
71c0a77a31 Fix: Update PHPUnit bootstrap and fix comment punctuation 2025-04-18 18:16:31 +01:00
058ae4b64e Fix: Rename class files and apply coding standard fixes 2025-04-18 18:08:51 +01:00
275958bfdb Fix: Apply latest phpcbf formatting fixes 2025-04-18 18:01:52 +01:00
0874c4f59e Apply stashed changes after merging test workflow fix 2025-04-18 17:54:07 +01:00
c7b590870c Initial commit of WordPress Plugin Starter Template for AI Coding
Some checks failed
Tests / PHP 7.0 (push) Has been cancelled
Tests / PHP 7.4 (push) Has been cancelled
Tests / PHP 8.0 (push) Has been cancelled
Tests / Code Style (push) Has been cancelled
Sync Wiki / Sync Wiki to GitHub (push) Has been cancelled
Release / Build and Release (push) Has been cancelled
2025-04-18 03:09:39 +01:00