From e1757d42fa7a9803fd98312119df2ab887a4f909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?jorge=2Egonz=C3=A1lez?= Date: Thu, 1 Aug 2024 10:46:33 +0200 Subject: [PATCH 1/3] Making the "$wordcamp is over. Check out the next edition" text translateable. --- public_html/wp-content/mu-plugins/latest-site-hints.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public_html/wp-content/mu-plugins/latest-site-hints.php b/public_html/wp-content/mu-plugins/latest-site-hints.php index 6a6a4a8332..ac11fb72c5 100644 --- a/public_html/wp-content/mu-plugins/latest-site-hints.php +++ b/public_html/wp-content/mu-plugins/latest-site-hints.php @@ -126,7 +126,11 @@ function show_notification_about_latest_site() { } echo '

' . - wp_sprintf( '%s is over. Check out the next edition!', esc_html( get_blog_details( $current_blog->blog_id )->blogname ), esc_url( $latest_domain ) ) . + wp_sprintf( + __('%s is over. Check out the next edition!', 'wordcamporg' ), + esc_html( get_blog_details( $current_blog->blog_id )->blogname ), + esc_url( $latest_domain ) + ) . '

'; } From 1bc613327642a01835ee9bb4bf0d9c54decef084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?jorge=2Egonz=C3=A1lez?= Date: Thu, 1 Aug 2024 11:11:04 +0200 Subject: [PATCH 2/3] Fixing linting issues --- public_html/wp-content/mu-plugins/latest-site-hints.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public_html/wp-content/mu-plugins/latest-site-hints.php b/public_html/wp-content/mu-plugins/latest-site-hints.php index ac11fb72c5..665c789554 100644 --- a/public_html/wp-content/mu-plugins/latest-site-hints.php +++ b/public_html/wp-content/mu-plugins/latest-site-hints.php @@ -127,10 +127,10 @@ function show_notification_about_latest_site() { echo '

' . wp_sprintf( - __('%s is over. Check out the next edition!', 'wordcamporg' ), - esc_html( get_blog_details( $current_blog->blog_id )->blogname ), - esc_url( $latest_domain ) - ) . + __('%1$s is over. Check out the next edition!', 'wordcamporg' ), + esc_html( get_blog_details( $current_blog->blog_id )->blogname ), + esc_url( $latest_domain ) + ) . '

'; } From 4f4d68d2afec3740599760b06deb0a1d1bf7d9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?jorge=2Egonz=C3=A1lez?= Date: Thu, 1 Aug 2024 11:14:33 +0200 Subject: [PATCH 3/3] Fixing linting issues with spaces --- public_html/wp-content/mu-plugins/latest-site-hints.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public_html/wp-content/mu-plugins/latest-site-hints.php b/public_html/wp-content/mu-plugins/latest-site-hints.php index 665c789554..46f82c73e4 100644 --- a/public_html/wp-content/mu-plugins/latest-site-hints.php +++ b/public_html/wp-content/mu-plugins/latest-site-hints.php @@ -127,9 +127,9 @@ function show_notification_about_latest_site() { echo '

' . wp_sprintf( - __('%1$s is over. Check out the next edition!', 'wordcamporg' ), - esc_html( get_blog_details( $current_blog->blog_id )->blogname ), - esc_url( $latest_domain ) + __('%1$s is over. Check out the next edition!', 'wordcamporg' ), + esc_html( get_blog_details( $current_blog->blog_id )->blogname ), + esc_url( $latest_domain ) ) . '

'; }