File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments