From 23e60ed7652cc429a7ccfb4ad636bb502fed0219 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Thu, 21 Jul 2022 16:09:12 +0000
Subject: [PATCH 1/2] Coding Standards: Replace the old `wp-db.php` filename in
`phpcompat.xml.dist`.
This ensures the correct file is allowlisted for use of `mysql_` extension in PHP < 7.0.
Follow-up to [53749].
See #56268, #55647.
Built from https://develop.svn.wordpress.org/trunk@53750
git-svn-id: http://core.svn.wordpress.org/trunk@53309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-includes/version.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wp-includes/version.php b/wp-includes/version.php
index c61f9d854c..ecaa82907c 100644
a
|
b
|
|
16 | 16 | * |
17 | 17 | * @global string $wp_version |
18 | 18 | */ |
19 | | $wp_version = '6.1-alpha-53749'; |
| 19 | $wp_version = '6.1-alpha-53750'; |
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. |
--
2.25.1
From 0303f74694384e1164d8a2137b824e8978881150 Mon Sep 17 00:00:00 2001
From: Krunal Palaniya <krunal@buddyboss.com>
Date: Thu, 21 Jul 2022 22:46:40 +0530
Subject: [PATCH 2/2] Fixed multisite activation email subject and content
translation issue
---
wp-includes/ms-functions.php | 88 ++++++++++++++++++------------------
1 file changed, 45 insertions(+), 43 deletions(-)
diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php
index 364b7a4cc5..6fc5addd4d 100644
a
|
b
|
function wpmu_signup_user_notification( $user_login, $user_email, $key, $meta = |
1079 | 1079 | |
1080 | 1080 | $from_name = ( '' !== get_site_option( 'site_name' ) ) ? esc_html( get_site_option( 'site_name' ) ) : 'WordPress'; |
1081 | 1081 | $message_headers = "From: \"{$from_name}\" <{$admin_email}>\n" . 'Content-Type: text/plain; charset="' . get_option( 'blog_charset' ) . "\"\n"; |
1082 | | $message = sprintf( |
1083 | | /** |
1084 | | * Filters the content of the notification email for new user sign-up. |
1085 | | * |
1086 | | * Content should be formatted for transmission via wp_mail(). |
1087 | | * |
1088 | | * @since MU (3.0.0) |
1089 | | * |
1090 | | * @param string $content Content of the notification email. |
1091 | | * @param string $user_login User login name. |
1092 | | * @param string $user_email User email address. |
1093 | | * @param string $key Activation key created in wpmu_signup_user(). |
1094 | | * @param array $meta Signup meta data. Default empty array. |
1095 | | */ |
1096 | | apply_filters( |
1097 | | 'wpmu_signup_user_notification_email', |
1098 | | /* translators: New user notification email. %s: Activation URL. */ |
1099 | | __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login." ), |
1100 | | $user_login, |
1101 | | $user_email, |
1102 | | $key, |
1103 | | $meta |
1104 | | ), |
| 1082 | /* translators: New user notification email. %s: Activation URL. */ |
| 1083 | $content = sprintf( |
| 1084 | __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login." ), |
1105 | 1085 | site_url( "wp-activate.php?key=$key" ) |
1106 | 1086 | ); |
| 1087 | /** |
| 1088 | * Filters the content of the notification email for new user sign-up. |
| 1089 | * |
| 1090 | * Content should be formatted for transmission via wp_mail(). |
| 1091 | * |
| 1092 | * @since MU (3.0.0) |
| 1093 | * |
| 1094 | * @param string $content Content of the notification email. |
| 1095 | * @param string $user_login User login name. |
| 1096 | * @param string $user_email User email address. |
| 1097 | * @param string $key Activation key created in wpmu_signup_user(). |
| 1098 | * @param array $meta Signup meta data. Default empty array. |
| 1099 | */ |
| 1100 | $message = apply_filters( |
| 1101 | 'wpmu_signup_user_notification_email', |
| 1102 | $content, |
| 1103 | $user_login, |
| 1104 | $user_email, |
| 1105 | $key, |
| 1106 | $meta |
| 1107 | ); |
1107 | 1108 | |
| 1109 | /* translators: New user notification email subject. 1: Network title, 2: New user login. */ |
1108 | 1110 | $subject = sprintf( |
1109 | | /** |
1110 | | * Filters the subject of the notification email of new user signup. |
1111 | | * |
1112 | | * @since MU (3.0.0) |
1113 | | * |
1114 | | * @param string $subject Subject of the notification email. |
1115 | | * @param string $user_login User login name. |
1116 | | * @param string $user_email User email address. |
1117 | | * @param string $key Activation key created in wpmu_signup_user(). |
1118 | | * @param array $meta Signup meta data. Default empty array. |
1119 | | */ |
1120 | | apply_filters( |
1121 | | 'wpmu_signup_user_notification_subject', |
1122 | | /* translators: New user notification email subject. 1: Network title, 2: New user login. */ |
1123 | | _x( '[%1$s] Activate %2$s', 'New user notification email subject' ), |
1124 | | $user_login, |
1125 | | $user_email, |
1126 | | $key, |
1127 | | $meta |
1128 | | ), |
| 1111 | _x( '[%1$s] Activate %2$s', 'New user notification email subject' ), |
1129 | 1112 | $from_name, |
1130 | 1113 | $user_login |
1131 | 1114 | ); |
| 1115 | /** |
| 1116 | * Filters the subject of the notification email of new user signup. |
| 1117 | * |
| 1118 | * @since MU (3.0.0) |
| 1119 | * |
| 1120 | * @param string $subject Subject of the notification email. |
| 1121 | * @param string $user_login User login name. |
| 1122 | * @param string $user_email User email address. |
| 1123 | * @param string $key Activation key created in wpmu_signup_user(). |
| 1124 | * @param array $meta Signup meta data. Default empty array. |
| 1125 | */ |
| 1126 | $subject = apply_filters( |
| 1127 | 'wpmu_signup_user_notification_subject', |
| 1128 | $subject |
| 1129 | $user_login, |
| 1130 | $user_email, |
| 1131 | $key, |
| 1132 | $meta |
| 1133 | ); |
1132 | 1134 | |
1133 | 1135 | wp_mail( $user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); |
1134 | 1136 | |