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

Fix 'Redirect to same path' setting screen-reader-text #168

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

pedro-mendonca
Copy link
Contributor

Description of the Change

Fix missing screen-reader-text on setting 'Redirect to same path' being obtained from a non-existing setting array.
Fixes #167

Alternate Designs

The method to populate the default settings only passes the field values, not the labels.
So, for now, this PR sets the label as all other fields, hardcoded and duplicating the label.
In the future this could be improved to avoid duplication of this label strings.

Benefits

Fix PHP error and setting screen reader text.

Possible Drawbacks

None

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

@vikrampm1 vikrampm1 added the type:bug Something isn’t working. label Nov 5, 2021
@jeffpaul jeffpaul requested review from a team and dkotter and removed request for a team November 8, 2021 15:43
@jeffpaul jeffpaul added this to the Future Release milestone Nov 8, 2021
@jeffpaul jeffpaul modified the milestones: Future Release, 7.3.0 Nov 9, 2021
@jeffpaul jeffpaul merged commit 1ab6626 into 10up:develop Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn’t working.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Wrong 'Redirect to same path' screen reader text with PHP error on fresh install
4 participants