summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-admin/includes
diff options
context:
space:
mode:
authorJohn Blackbourn <johnbillion@git.wordpress.org>2025-04-21 11:47:11 +0000
committerJohn Blackbourn <johnbillion@git.wordpress.org>2025-04-21 11:47:11 +0000
commita1bce5f880b7c7b125f92fa468c2adedd354ece5 (patch)
treedeead298cd0fd8f0e1114c3ef065257680d92ebb /src/wp-admin/includes
parent0bf5949d0127c29dd483c1ebb859970682024a55 (diff)
downloadwordpress-a1bce5f880b7c7b125f92fa468c2adedd354ece5.tar.gz
wordpress-a1bce5f880b7c7b125f92fa468c2adedd354ece5.zip
Docs: Improve and standardise the format of placeholder strings that get replaced within email messages.
This prevents the strings being treated as h3 headings by the documentation parser on developer.wordpress.org. See #63166 git-svn-id: https://develop.svn.wordpress.org/trunk@60178 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/wp-admin/includes')
-rw-r--r--src/wp-admin/includes/misc.php11
-rw-r--r--src/wp-admin/includes/privacy-tools.php11
2 files changed, 12 insertions, 10 deletions
diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php
index 61b69aafee..979d237448 100644
--- a/src/wp-admin/includes/misc.php
+++ b/src/wp-admin/includes/misc.php
@@ -1483,11 +1483,12 @@ All at ###SITENAME###
* Filters the text of the email sent when a change of site admin email address is attempted.
*
* The following strings have a special meaning and will get replaced dynamically:
- * - ###USERNAME### The current user's username.
- * - ###ADMIN_URL### The link to click on to confirm the email change.
- * - ###EMAIL### The proposed new site admin email address.
- * - ###SITENAME### The name of the site.
- * - ###SITEURL### The URL to the site.
+ *
+ * - `###USERNAME###` The current user's username.
+ * - `###ADMIN_URL###` The link to click on to confirm the email change.
+ * - `###EMAIL###` The proposed new site admin email address.
+ * - `###SITENAME###` The name of the site.
+ * - `###SITEURL###` The URL to the site.
*
* @since MU (3.0.0)
* @since 4.9.0 This filter is no longer Multisite specific.
diff --git a/src/wp-admin/includes/privacy-tools.php b/src/wp-admin/includes/privacy-tools.php
index c5d7c9a97f..d5853185eb 100644
--- a/src/wp-admin/includes/privacy-tools.php
+++ b/src/wp-admin/includes/privacy-tools.php
@@ -613,7 +613,7 @@ function wp_privacy_send_personal_data_export_email( $request_id ) {
/**
* Filters the recipient of the personal data export email notification.
- * Should be used with great caution to avoid sending the data export link to wrong emails.
+ * Should be used with great caution to avoid sending the data export link to the wrong email.
*
* @since 5.3.0
*
@@ -678,10 +678,11 @@ All at ###SITENAME###
* Filters the text of the email sent with a personal data export file.
*
* The following strings have a special meaning and will get replaced dynamically:
- * ###EXPIRATION### The date when the URL will be automatically deleted.
- * ###LINK### URL of the personal data export file for the user.
- * ###SITENAME### The name of the site.
- * ###SITEURL### The URL to the site.
+ *
+ * - `###EXPIRATION###` The date when the URL will be automatically deleted.
+ * - `###LINK###` URL of the personal data export file for the user.
+ * - `###SITENAME###` The name of the site.
+ * - `###SITEURL###` The URL to the site.
*
* @since 4.9.6
* @since 5.3.0 Introduced the `$email_data` array.