Commit a2161cd 1 parent f30f341 commit a2161cd Copy full SHA for a2161cd
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ public function action_get_prebuilt_layouts() {
255
255
}
256
256
257
257
$ cache = get_transient ( 'siteorigin_panels_layouts_directory_ ' . $ directory_id .'_page_ ' . $ page_num );
258
+
258
259
if ( empty ( $ search ) && ! empty ( $ cache ) ) {
259
260
$ return = $ cache ;
260
261
} else {
@@ -265,7 +266,7 @@ public function action_get_prebuilt_layouts() {
265
266
}
266
267
267
268
$ url = apply_filters ( 'siteorigin_panels_layouts_directory_url ' , $ url );
268
- $ response = wp_remote_get ( esc_url ( $ url ) );
269
+ $ response = wp_remote_get ( esc_url_raw ( $ url ) );
269
270
270
271
if (
271
272
! is_wp_error ( $ response ) &&
Original file line number Diff line number Diff line change @@ -682,6 +682,9 @@ public function version_check() {
682
682
if ( empty ( $ active_version ) || $ active_version !== SITEORIGIN_PANELS_VERSION ) {
683
683
do_action ( 'siteorigin_panels_version_changed ' );
684
684
update_option ( 'siteorigin_panels_active_version ' , SITEORIGIN_PANELS_VERSION );
685
+
686
+ // Clear layout directory cache after update to account for bug in versions 2.29.18 and below.
687
+ delete_transient ( 'siteorigin_panels_layouts_directory_siteorigin_page_2 ' );
685
688
}
686
689
}
687
690
You can’t perform that action at this time.
0 commit comments