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
13 changes: 9 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Tags: paywall, monetization, donation, crypto, ecash
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.0
Stable tag: 3.3.0
PayButton Client: 4.1.0
Stable tag: 4.0.0
PayButton Client: 5.0.2
Comment on lines +8 to +9
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Stable tag and client version bump look good; verify the enqueued asset actually uses 5.0.2.

Run to confirm what version is enqueued/bundled:


🏁 Script executed:

#!/bin/bash
# Find PayButton client references and versions
rg -nP -C2 '(wp_enqueue_script|wp_register_script)\s*\(|paybutton(\.min)?\.js|PayButton Client|5\.0\.2'
# If bundled, list files that look like the client build
fd -t f -i 'paybutton*.js' | xargs -I{} sh -c 'echo "=== {} ==="; head -n 3 "{}"; echo'

Length of output: 59717


Update enqueued PayButton script version to 5.0.2

  • In includes/class-paybutton-public.php, change the version argument on the wp_enqueue_script call for assets/js/paybutton.js (from '1.0' to '5.0.2').
  • In includes/class-paybutton-admin.php, do the same for the admin enqueue of assets/js/paybutton.js (change '1.0' to '5.0.2').
🤖 Prompt for AI Agents
In README.txt around lines 8-9 and in includes/class-paybutton-public.php and
includes/class-paybutton-admin.php (search for wp_enqueue_script calls for
assets/js/paybutton.js), update the version argument from '1.0' to '5.0.2' so
the enqueued script version matches the PayButton Client; locate the
wp_enqueue_script(...) calls in both public and admin classes and change the
version parameter to '5.0.2', then run a quick test to confirm cache-busting
works as expected.

PayButton Client URI: https://github.com/PayButton/paybutton
License: MIT
License URI: https://github.com/PayButton/wordpress-plugin/blob/master/LICENSE
Expand Down Expand Up @@ -74,6 +74,11 @@ The integration uses the SideShift API to enable the button or widget to accept

== Changelog ==

= 4.0.0 (2025/09/07) =
* Added support for no-reload content unlocks.
* The paywall payment dialog now closes automatically.
* Upgraded the PayButton dependency to v5.0.2.

= 3.3.0 (2025/06/09) =
* Relaxed IP fingerprinting to use only the first two octets (IPv4) or hextets (IPv6) in the cookie fingerprint to avoid frequent logouts from dynamic IP changes.
* New feature to display unlock counts publicly above the paywall button on posts.
Expand Down Expand Up @@ -128,6 +133,6 @@ The integration uses the SideShift API to enable the button or widget to accept

== Upgrade Notice ==

= 3.3.0 =
Upgrade to version 3.3.0 for improved compatibility and reliability.
= 4.0.0 =
Upgrade to version 4.0.0 for improved compatibility and reliability.
=======
2 changes: 1 addition & 1 deletion includes/class-paybutton-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function enqueue_admin_scripts( $hook_suffix ) {
'paybutton-core',
PAYBUTTON_PLUGIN_URL . 'assets/js/paybutton.js',
array('address-validator'),
'1.0',
'5.0.2',
true
);

Expand Down
2 changes: 1 addition & 1 deletion includes/class-paybutton-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function enqueue_public_assets() {
'paybutton-core',
PAYBUTTON_PLUGIN_URL . 'assets/js/paybutton.js', // Local file path
array(),
'1.0',
'5.0.2',
false
);

Expand Down
2 changes: 1 addition & 1 deletion paybutton.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: PayButton
* Description: Monetize your content with configurable no-signup paywalls.
* Version: 3.3.0
* Version: 4.0.0
* Author: PayButton
* Author URI: https://github.com/PayButton/wordpress-plugin
* License: MIT
Expand Down