Skip to content

Commit

Permalink
Extract the body logic out of the domain_customize task
Browse files Browse the repository at this point in the history
  • Loading branch information
Valter Lorran committed Oct 6, 2023
1 parent 4539813 commit 2926e77
Showing 1 changed file with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1803,24 +1803,5 @@ function wpcom_launchpad_task_component_link( $label, $href ) {
* @return array The body of the domain customize task.
*/
function wpcom_launchpad_domain_customize_body() {
// if the filter is true, we should return null
if ( ! apply_filters( 'wpcom_launchpad_domain_customize_body_enabled', false ) ) {
return null;
}

return array(
wpcom_launchpad_task_component_text(
__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in tellus id eros scelerisque eleifend eget quis dui. Aenean eget sem non ex pulvinar commodo. Aliquam vel justo id ex rutrum faucibus id eu mi.', 'jetpack-mu-wpcom' )
),
array(
wpcom_launchpad_task_component_link(
__( 'Learn more about customizing your domain', 'jetpack-mu-wpcom' ),
'https://wordpress.com/support/domains/customize-your-domain/'
),
wpcom_launchpad_task_component_link(
__( 'Help', 'jetpack-mu-wpcom' ),
'https://wordpress.com/support/domains/customize-your-domain/'
),
),
);
return apply_filters( 'wpcom_launchpad_domain_customize_body', null );
}

0 comments on commit 2926e77

Please sign in to comment.