Skip to content

Commit 76ea8c7

Browse files
Release free-v3.0.3
1 parent 53219e5 commit 76ea8c7

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

readme.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Requires at least: 6.5
55
Donate Link: https://wprollback.com/
66
Tested up to: 6.8
77
Requires PHP: 7.4
8-
Stable tag: 3.0.2
8+
Stable tag: 3.0.3
99
License: GPLv3
1010
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1111

@@ -112,6 +112,11 @@ This is the first version of this plugin. It is a tool for your convenience. Rol
112112

113113
== Changelog ==
114114

115+
= 3.0.3 =
116+
* Fix: Resolved fatal error when attempting to rollback plugins that return boolean false for requires_php field instead of a string value. This fix ensures proper type validation for WordPress requirement fields.
117+
* Fix: Plugin and theme names containing HTML entities (like &, <, etc.) now display correctly in rollback modals instead of showing raw HTML characters.
118+
119+
115120
= 3.0.2 =
116121
* Improvement: Simplified theme rollback button display functionality - all themes now display rollback buttons without checking WordPress.org availability.
117122
* Improvement: Consolidated theme rollback JavaScript handlers between free and pro versions for better code maintainability.

src/Core/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct()
2525
{
2626
parent::__construct(
2727
'wp-rollback', // Text domain
28-
'3.0.2', // Version
28+
'3.0.3', // Version
2929
'wp-rollback', // Slug
3030
'wp-rollback-nonce', // Nonce
3131
self::findPluginFile('wp-rollback', __FILE__) // Plugin file path

src/Rollbacks/resources/modals/Templates/FreeCompleteTemplate.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import { ExternalLink, Icon, Button, Notice } from '@wordpress/components';
1111
import { __, sprintf } from '@wordpress/i18n';
12+
import { decodeEntities } from '@wordpress/html-entities';
1213
import { useRollbackContext } from '@wp-rollback/shared-core/context/RollbackContext';
1314
import { useNavigate } from 'react-router-dom';
1415
import { useEffect } from '@wordpress/element';
@@ -34,7 +35,7 @@ const FreeCompleteTemplate = ( { buttons } ) => {
3435
const successMessage = sprintf(
3536
/* translators: 1: Asset name 2: Asset version */
3637
__( '%1$s has been successfully rolled back to version %2$s.', 'wp-rollback' ),
37-
`<strong>${ rollbackInfo.name }</strong>`,
38+
`<strong>${ decodeEntities( rollbackInfo.name ) }</strong>`,
3839
`<strong>${ rollbackVersion }</strong>`
3940
);
4041

wp-rollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Description: Rollback (or forward) any WordPress.org plugin, theme or block like a boss.
77
* Author: WP Rollback
88
* Author URI: https://wprollback.com/
9-
* Version: 3.0.2
9+
* Version: 3.0.3
1010
* Text Domain: wp-rollback
1111
* Domain Path: /languages
1212
*

0 commit comments

Comments
 (0)