Skip to content

Commit 9e09d5a

Browse files
committed
Use version_compare for 2.4 to 2.5 settings migration guard
1 parent 3d0b290 commit 9e09d5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php/class-media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3253,7 +3253,7 @@ public function is_enabled( $enabled ) {
32533253
*/
32543254
public function upgrade_settings( $previous_version, $new_version ) {
32553255

3256-
if ( '2.4' === $previous_version ) {
3256+
if ( version_compare( $previous_version, '2.5', '<' ) ) {
32573257
// Setup new data from old.
32583258
$images = get_option( 'cloudinary_global_transformations', array() );
32593259
$video = get_option( self::GLOBAL_VIDEO_TRANSFORMATIONS, array() );

0 commit comments

Comments
 (0)