From f74567a775c73d22a230db86a111d4ba76599ffc Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Fri, 5 Jul 2024 16:13:53 +1000 Subject: [PATCH] Replace references to third party domain with example.org (#63154). Removes references to a third party domain outside of the WordPress project's control with the reserved domain example.org. For the inline documentation a translator note is added alerting the polyglots to use either a reserved domain or a wordpress.org domain/sub-domain. Co-authored-by: ramonjd --- docs/how-to-guides/metabox.md | 2 +- packages/editor/src/components/page-attributes/parent.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/how-to-guides/metabox.md b/docs/how-to-guides/metabox.md index d16666a060c3c..da37b8fba3b7c 100644 --- a/docs/how-to-guides/metabox.md +++ b/docs/how-to-guides/metabox.md @@ -243,7 +243,7 @@ When the meta box area is saving, we display an updating overlay, to prevent use An example save url would look like: -`mysite.com/wp-admin/post.php?post=1&action=edit&meta-box-loader=1` +`example.org/wp-admin/post.php?post=1&action=edit&meta-box-loader=1` This url is automatically passed into React via a `_wpMetaBoxUrl` global variable. diff --git a/packages/editor/src/components/page-attributes/parent.js b/packages/editor/src/components/page-attributes/parent.js index ab52ca21a76ea..f83f700c96988 100644 --- a/packages/editor/src/components/page-attributes/parent.js +++ b/packages/editor/src/components/page-attributes/parent.js @@ -249,9 +249,12 @@ export function ParentRow() { onClose={ onClose } />
- { __( - "Child pages inherit characteristics from their parent, such as URL structure. For instance, if 'Web Design' is a child of 'Services,' its URL would be mysite.com/services/web-design." - ) } + { + /* translators: The domain name should be a reserved domain name to prevent linking to third party sites outside the WordPress project's control. You may also wish to use wordpress.org or a wordpress.org sub-domain. */ + __( + "Child pages inherit characteristics from their parent, such as URL structure. For instance, if 'Web Design' is a child of 'Services', its URL would be example.org/services/web-design." + ) + }

{ __( 'They also show up as sub-items in the default navigation menu. '