File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` WP Curate ` will be documented in this file.
4
4
5
+ ## 2.4.9 - 2025-01-13
6
+
7
+ - Bug Fix: Allow manually resetting custom post title back to original title.
8
+
5
9
## 2.4.8 - 2024-12-17
6
10
7
11
- Bug Fix: Roll back to React 18 again.
Original file line number Diff line number Diff line change @@ -92,10 +92,7 @@ export default function Edit({
92
92
* Handle cases for when it's not necessary to update the collection of
93
93
* custom titles
94
94
*/
95
- if (
96
- title === rawTitle
97
- || title === currentCustomPostTitle ?. title
98
- ) {
95
+ if ( title === currentCustomPostTitle ?. title ) {
99
96
return ;
100
97
}
101
98
@@ -113,6 +110,10 @@ export default function Edit({
113
110
} ,
114
111
] ;
115
112
}
113
+ // If the custom title matches the original title, we don't want to store it.
114
+ if ( title === rawTitle ) {
115
+ newCustomPostTitles = newCustomPostTitles . filter ( ( item ) => item ?. postId !== postId ) ;
116
+ }
116
117
117
118
// @ts -ignore
118
119
dispatch ( 'core/block-editor' ) . updateBlockAttributes ( queryParentId , {
Original file line number Diff line number Diff line change 3
3
* Plugin Name: WP Curate
4
4
* Plugin URI: https://github.com/alleyinteractive/wp-curate
5
5
* Description: Plugin to curate homepages and other landing pages
6
- * Version: 2.4.8
6
+ * Version: 2.4.9
7
7
* Author: Alley Interactive
8
8
* Author URI: https://github.com/alleyinteractive/wp-curate
9
9
* Requires at least: 6.4
You can’t perform that action at this time.
0 commit comments