Skip to content

Commit

Permalink
Undeclared function
Browse files Browse the repository at this point in the history
  • Loading branch information
sixhours committed Oct 10, 2024
1 parent aada2c7 commit 2e15854
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ function wpcom_launchpad_get_task_definitions() {
},
'get_calypso_path' => function ( $task, $default, $data ) {
// Attempt to get the domain from the pre-transfer site option if the function exists, otherwise check the current site option.
// @phan-suppress-next-line PhanUndeclaredClassMethod -- Being checked before being called.
// @phan-suppress-next-line PhanUndeclaredFunction -- Being checked before being called.
$domain = function_exists( 'wpcom_get_migration_source_site_domain' ) ? wpcom_get_migration_source_site_domain( $data['site_id'] ) : get_option( 'migration_source_site_domain', null );
$path = $domain ? '/domains/add/use-my-domain/' . $data['site_slug_encoded'] . '/?initialQuery=' . $domain : '/domains/add/use-my-domain/' . $data['site_slug_encoded'];
return $path;
Expand Down

0 comments on commit 2e15854

Please sign in to comment.