Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HTML Anchor description to refer to block instead of heading #28367

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

jennydupuy
Copy link
Contributor

@jennydupuy jennydupuy commented Jan 20, 2021

Fixes #28296
The HTML Anchor field is described as follows: "Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."
Link to string on translate: https://translate.wordpress.org/projects/wp/dev/fr/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=8431365&filters%5Btranslation_id%5D=66590331

The problem lies in the use of the term "heading" which is inappropriate since it is possible to define an HTML anchor on all the blocks (with a few exceptions) whereas the term "heading" refers only to the Heading block.

I propose to simply replace the term "heading" by the term "block" in these string.
"Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."

Thus there will be no more inaccuracy on the element to which the anchor is applied.

The line 80 has been edited, I replaced "heading" by "block".

I hope I made the modification correctly.

The HTML Anchor field is described as follows: "Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."
Link to string on translate: https://translate.wordpress.org/projects/wp/dev/fr/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=8431365&filters%5Btranslation_id%5D=66590331

The problem lies in the use of the term "heading" which is inappropriate since it is possible to define an HTML anchor on all the blocks (with a few exceptions) whereas the term "heading" refers only to the Heading block.

I propose to simply replace the term "heading" by the term "block" in these string.
"Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."

Thus there will be no more inaccuracy on the element to which the anchor is applied.

The line 80 has been edited, I replaced "heading" by "block".

I hope I made the modification correctly.
@jennydupuy jennydupuy requested a review from ellatrix as a code owner January 20, 2021 22:20
@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jan 20, 2021
@jennydupuy jennydupuy changed the title Replace heading by block in anchor desc Replace heading by block in anchor desc Fixes #28296 Jan 20, 2021
@jennydupuy jennydupuy changed the title Replace heading by block in anchor desc Fixes #28296 Replace heading by block in anchor desc Jan 20, 2021
@ZebulanStanphill ZebulanStanphill added the [Type] Copy Issues or PRs that need copy editing assistance label Jan 21, 2021
Copy link
Member

@ZebulanStanphill ZebulanStanphill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. 👍

@talldan
Copy link
Contributor

talldan commented Jan 21, 2021

Thanks @jennydupuy, congrats on your first code contribution 🎉

@talldan talldan merged commit 5f32886 into WordPress:master Jan 21, 2021
@github-actions
Copy link

Congratulations on your first merged pull request, @jennydupuy! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts:

https://profiles.wordpress.org/me/profile/edit/

And if you don't have a WordPress.org account, you can create one on this page:

https://login.wordpress.org/register

Kudos!

@github-actions github-actions bot added this to the Gutenberg 9.9 milestone Jan 21, 2021
@talldan talldan changed the title Replace heading by block in anchor desc Update HTML Anchor description to refer to block instead of heading Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Copy Issues or PRs that need copy editing assistance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in HTML anchor field description
3 participants