Upgrade PayButton to v5.2.0 #104
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As per title.
Greptile Overview
Greptile Summary
Upgraded PayButton library from v5.0.2 to v5.2.0 by replacing the minified
assets/js/paybutton.jsbundle with the new version (159 lines added, 75 deleted).Critical Issue Found:
includes/class-paybutton-public.phpline 72 was not updated to match - it still shows'5.0.2'instead of'5.2.0'. This version parameter is used by WordPress'swp_enqueue_script()function for browser cache busting, which means users may continue to receive the old cached version even after the upgrade, causing inconsistencies.Confidence Score: 2/5
includes/class-paybutton-public.phpfile needs immediate attention - line 72 must be updated to version '5.2.0' to match the upgraded libraryImportant Files Changed
File Analysis
class-paybutton-public.php:72not updated to matchSequence Diagram
sequenceDiagram participant Dev as Developer participant WP as WordPress Plugin participant PB as PayButton v5.2.0 participant User as End User Note over Dev,WP: PR #104: Upgrade PayButton Library Dev->>WP: Update assets/js/paybutton.js Note right of Dev: Minified bundle<br/>+159 lines, -75 lines Note over WP,PB: Issue: Version Mismatch WP->>WP: class-paybutton-public.php:72<br/>Still shows '5.0.2' Note over User,PB: Runtime Behavior User->>WP: Load WordPress Page WP->>PB: Enqueue paybutton.js<br/>with version='5.0.2' Note right of WP: Browser cache may not<br/>invalidate properly PB->>User: Render PayButton UI<br/>(actual v5.2.0 code)