Skip to content

Commit cd190e5

Browse files
committed
Adjust the cloudinary_version_upgrade hook position
1 parent bfaef6e commit cd190e5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

php/class-media.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ class Media extends Settings_Component implements Setup {
158158
public function __construct( Plugin $plugin ) {
159159
$this->plugin = $plugin;
160160
add_action( 'init', array( $this, 'init_hook' ) );
161+
162+
// Add upgrade hook, since setup methods are called after the connect upgrade has run.
163+
add_action( 'cloudinary_version_upgrade', array( $this, 'upgrade_media_settings' ) );
161164
}
162165

163166
/**
@@ -181,9 +184,6 @@ public function init_hook() {
181184
SYNC::META_KEYS['unsynced'] => __( 'Unsynced', 'cloudinary' ),
182185
)
183186
);
184-
185-
// Add upgrade hook, since setup methods are called after the connect upgrade has run.
186-
add_action( 'cloudinary_version_upgrade', array( $this, 'upgrade_media_settings' ) );
187187
}
188188

189189
/**

0 commit comments

Comments
 (0)