From 21f4b2c02ce92189e60d953c512392bdf23d430f Mon Sep 17 00:00:00 2001 From: Austin Passy <367897+thefrosty@users.noreply.github.com> Date: Sun, 13 Jul 2025 09:10:06 -0700 Subject: [PATCH 1/2] Update wp-utilites to latest version. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0c27c00..c29c39f 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "composer/installers": "~2.0", "pimple/pimple": "~3.0", "symfony/http-foundation": "^7.2", - "thefrosty/wp-utilities": "^3.5" + "thefrosty/wp-utilities": "^3.8" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", From df3bb79345aad7fcf1c94aa90a5d0bcd35efe556 Mon Sep 17 00:00:00 2001 From: Austin Passy <367897+thefrosty@users.noreply.github.com> Date: Sun, 13 Jul 2025 09:10:16 -0700 Subject: [PATCH 2/2] Expression result is not used anywhere --- src/views/dashboard-widget.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/dashboard-widget.php b/src/views/dashboard-widget.php index af84e8c..24b16ff 100644 --- a/src/views/dashboard-widget.php +++ b/src/views/dashboard-widget.php @@ -59,7 +59,6 @@ try { $formatErrors = (new ReflectionObject($this))->getMethod('formatErrors'); - $formatErrors->setAccessible(true); $formatErrors->invoke($this, $errors, $length, $limit); } catch (Throwable $throwable) { // phpcs:ignore SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions.NonFullyQualifiedException echo wpautop($throwable->getMessage());