Skip to content

Commit

Permalink
Release 4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
balexey88 committed Sep 25, 2024
1 parent 744cfec commit bb931d5
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
== Changelog ==
= 4.1.1 =
* FIX - cache issues during Data Optimization.

= 4.1.0 =
* NEW - move compatibilities files from `wp_sm_sync` to `wp_stateless_files` table with extended information.
* COMPATIBILITY - WooCommerce Compatibility replaced with [WP-Stateless – WooCommerce Addon](https://wordpress.org/plugins/wp-stateless-woocommerce-addon/).
Expand Down
3 changes: 3 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 4.1.1
* FIX - cache issues during Data Optimization.

#### 4.1.0
* NEW - move compatibilities files from `wp_sm_sync` to `wp_stateless_files` table with extended information.
* COMPATIBILITY - WooCommerce Compatibility replaced with [WP-Stateless – WooCommerce Addon](https://wordpress.org/plugins/wp-stateless-woocommerce-addon/).
Expand Down
8 changes: 7 additions & 1 deletion lib/classes/batch/class-batch-task-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ private function _get_state() {
* @return int|null
*/
private function _get_last_updated() {
return get_option( $this->identifier . self::UPDATED_KEY, null );
// We need to omit the cache and get the data directly from the db
global $wpdb;

$sql = "SELECT option_value FROM $wpdb->options WHERE option_name = '%s' LIMIT 1";
$sql = $wpdb->prepare($sql, $this->identifier . self::UPDATED_KEY);

return $wpdb->get_var($sql);
}

/**
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License: GPLv2 or later
Requires PHP: 8.0
Requires at least: 5.0
Tested up to: 6.6.2
Stable tag: 4.1.0
Stable tag: 4.1.1

Upload and serve your WordPress media files from Google Cloud Storage.

Expand Down Expand Up @@ -129,6 +129,9 @@ Before upgrading to WP-Stateless 3.2.0, please, make sure you use PHP 7.2 or abo
Before upgrading to WP-Stateless 3.0, please, make sure you tested it on your development environment.

== Changelog ==
= 4.1.1 =
* FIX - cache issues during Data Optimization.

= 4.1.0 =
* NEW - move compatibilities files from `wp_sm_sync` to `wp_stateless_files` table with extended information.
* COMPATIBILITY - WooCommerce Compatibility replaced with [WP-Stateless – WooCommerce Addon](https://wordpress.org/plugins/wp-stateless-woocommerce-addon/).
Expand Down
2 changes: 1 addition & 1 deletion static/data/addons.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'plugin_files' => ['elementor/elementor.php'],
'addon_file' => 'wp-stateless-elementor-addon/wp-stateless-elementor-addon.php',
'icon' => 'https://ps.w.org/elementor/assets/icon.svg',
'repo' => 'udx/wp-stateless-elementor-addon',
'repo' => 'udx/wp-stateless-elementor-website-builder-addon',
'wp' => 'https://wordpress.org/plugins/wp-stateless-elementor-website-builder-addon/',
'hubspot_id' => '151481399819',
// 'hubspot_link' => 'https://cta-service-cms2.hubspot.com/web-interactives/public/v1/track/click?encryptedPayload=AVxigLKR8B2Z9422V%2Fh9SGpptZeq1UWUETejTC8i1C7YoBj8TRWSG2Yij36fQHaj37NIgIU0OgWeZ9SAaTb9lL%2BlPaEKwWJ1WcQNWv%2FLFWh1Y8LTEIUGRvPzShNKyv0yIC5Z3Hu6YWGYp46iXXI6nLLBfbt2fHytn3mHX7Ic3%2ByuAF3Cz2rmMusOMD3XSJGTAYobOOXuyHJzeHzztZAimflHRg%3D%3D&portalId=20504491',
Expand Down
2 changes: 1 addition & 1 deletion static/migrations/20240423174109.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function process_item($item) {

$media = (array) $client->get_media( $sync->file );

if ( is_array($media) && !empty($media) ) {
if ( is_array($media) && !empty($media) && isset($media['metadata']) ) {
$metadata = $media['metadata'];

if ( !isset($metadata['source']) && !isset($metadata['sourceVersion']) ) {
Expand Down
2 changes: 1 addition & 1 deletion wp-stateless-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://stateless.udx.io/
* Description: Upload and serve your WordPress media files from Google Cloud Storage.
* Author: UDX
* Version: 4.1.0
* Version: 4.1.1
* Text Domain: stateless-media
* Author URI: https://udx.io
* License: GPLv2 or later
Expand Down

0 comments on commit bb931d5

Please sign in to comment.