Repository navigation
fix wrong settings link anchor - #828
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @cclambie. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What?
Updates the settings link anchor in the Plugins menu to correctly point to the Two-Factor settings section of the user profile page.
Why?
The "Settings" link displayed under the plugin title in the Plugins menu was directing users to
#application-passwords-sectioninstead of the Two-Factor plugin's own settings section. This meant users clicking "Settings" would land on an unrelated part of their profile page, making it difficult to find the actual plugin settings.Fixes #827
How?
Two files are updated to replace the incorrect anchor:
.wordpress-org/blueprints/blueprint.json: UpdatedlandingPagefrom/wp-admin/profile.php#application-passwords-sectionto/wp-admin/profile.php#two-factor-optionsclass-two-factor-core.php: Updatedadd_settings_action_link()to build the settings URL usingadmin_url( 'profile.php#two-factor-options' )instead ofprofile.php#application-passwords-sectionThe anchor
#two-factor-optionsis the first element ID beneath the Two-Factor section header in the user profile, making it the correct and most direct target.Testing Instructions
#two-factor-optionssection of the user profile, not#application-passwords-sectionChangelog Entry