Skip to content

Commit 211bce8

Browse files
release: fixes
- Fixed broken preview for last optimized images - Improved PHP 8+ compatibility - Updated dependencies
2 parents 650f064 + 1593e24 commit 211bce8

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/admin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,9 @@ private function localize_dashboard_app() {
14151415
}
14161416
$api_key = $this->settings->get( 'api_key' );
14171417
$service_data = $this->settings->get( 'service_data' );
1418+
if ( ! is_array( $service_data ) ) {
1419+
$service_data = [];
1420+
}
14181421
$user = get_userdata( get_current_user_id() );
14191422
$user_status = 'inactive';
14201423
$auto_connect = get_option( Optml_Settings::OPTML_USER_EMAIL, 'no' );

inc/rest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ public function poll_optimized_images( WP_REST_Request $request ) {
718718
foreach ( $final_images as $index => $value ) {
719719
$final_images[ $index ]['url'] = Optml_Media_Offload::instance()->get_media_optimized_url(
720720
$value['url'],
721-
$value['key'],
721+
strtolower( $value['key'] ),
722722
140,
723723
140,
724724
[

playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import { defineConfig } from '@playwright/test';
22

33
export default defineConfig({
44
testDir: './tests/e2e',
5-
timeout: 30000,
5+
timeout: 60000,
66
workers: process.env.CI ? 2 : 5,
77
retries: process.env.CI ? 2 : 0,
88
use: {
99
baseURL: 'http://testing.optimole.com', // Replace with your local WordPress URL
1010
trace: 'on-first-retry',
11+
navigationTimeout: 45000,
1112
},
1213
projects: [
1314
{

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: optimole
33
Tags: image optimization, optimize images, compress images, webp, avif
44
Requires at least: 5.5
5-
Tested up to: 6.9
5+
Tested up to: 7.0
66
Requires PHP: 7.4
77
Stable tag: 4.2.5
88
License: GPLv3

0 commit comments

Comments
 (0)