What's Changed
Bug Fixes
-
Fixed: Cursor dot & Influence ring had no effect
wp_localize_scriptserialises PHP booleans as"1"or""(empty string),
not true JStrue/false. The JS check!== undefinedwas always passing.
Fixed by casting to(int)in PHP and comparing with== 1in JS. -
Fixed: Preview didn't match the live site
The admin preview was computing pixel colors directly from RGB multiplier sliders,
ignoring the pixel base color entirely. Both the preview canvas and the frontend
script now use the same color formula.
New Features
- Background color picker — choose the canvas fill color (default
#000000) - Pixel base color picker — choose the base tint of pixel blocks (default
#ffffff);
RGB multiplier sliders now modulate this color instead of white - Style Debug Log — a live log panel below the preview detects common conflicts:
overflow: hiddenon<body>or<html>(clips the fixed canvas)- Opaque background set on
<body>(covers the canvas) - Non-negative
z-indexvalue (canvas may appear above content)
Runs automatically on page load and on every settings change
Improvements
- Number inputs widened from
58pxto74px— full value now visible - Color pickers wired to WP Color Picker API with live preview update on change
- Frontend JS now explicitly uses
parseInt/parseFloaton all config values
to guard against string coercion fromwp_localize_script
Files
background-motion-v1.3.1.zip— ready to install via WordPress plugin uploader