From 309551d5bc8cc1f591e6a8c4c2054f3b06aec44c Mon Sep 17 00:00:00 2001 From: Daniel Morell Date: Mon, 22 Dec 2025 14:22:13 -0500 Subject: [PATCH 1/3] Fixed #145 ClassLoader namespace has escaped slashes --- scoper.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scoper.inc.php b/scoper.inc.php index 777ba70..d6e239e 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -50,7 +50,7 @@ static function (string $filePath, string $prefix, string $content): string { // Fix ClassLoader in string not being prefixed. if ($filePath === __DIR__ . '/build/vendor/composer/autoload_real.php') { $content = str_replace( - '(\'Composer\Autoload\ClassLoader\' === $class)', + '(\'Composer\\\\Autoload\\\\ClassLoader\' === $class)', '(\'RollbarWP\Composer\Autoload\ClassLoader\' === $class)', $content, ); From 1c12c7a89ebf3068f571cd01e995f6f709e58310 Mon Sep 17 00:00:00 2001 From: Daniel Morell Date: Mon, 22 Dec 2025 14:32:10 -0500 Subject: [PATCH 2/3] Added Changelog entry --- readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.txt b/readme.txt index e0a361d..6e3a9d6 100644 --- a/readme.txt +++ b/readme.txt @@ -150,6 +150,9 @@ using composer. == Changelog == += Version 3.1.1 (December 22nd 2025) = +* Fixed composer autoload ClassLoader namespace not replaced by PHPScoper in v3.1.0. + = Version 3.1.0 (December 18th 2025) = * Fixed settings values not being saved correctly when they match the default. * Added `rollbar_js_nonce` filter to allow customizing the nonce used in the Rollbar JS snippet. From 1405dcf397d8ad72b84b1f8699fae0ad88346636 Mon Sep 17 00:00:00 2001 From: Daniel Morell Date: Mon, 22 Dec 2025 14:34:38 -0500 Subject: [PATCH 3/3] Bumped the version to v3.1.1 --- readme.txt | 2 +- rollbar.php | 2 +- src/Plugin.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index 6e3a9d6..df1a180 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: rollbar, full stack, error, tracking, error tracking, error reporting, rep Requires at least: 6.5.0 Tested up to: 6.9 Requires PHP: 8.1 -Stable tag: 3.1.0 +Stable tag: 3.1.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/rollbar.php b/rollbar.php index ecc8cff..8b79903 100755 --- a/rollbar.php +++ b/rollbar.php @@ -4,7 +4,7 @@ * Plugin Name: Rollbar * Plugin URI: https://wordpress.org/plugins/rollbar * Description: Rollbar full-stack error tracking for WordPress. - * Version: 3.1.0 + * Version: 3.1.1 * Author: Rollbar * Author URI: https://rollbar.com * Text Domain: rollbar diff --git a/src/Plugin.php b/src/Plugin.php index fa1dff6..a10acc7 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -24,7 +24,7 @@ */ final class Plugin extends AbstractSingleton { - public const VERSION = '3.1.0'; + public const VERSION = '3.1.1'; /** * Configuration array for Rollbar.