Fix user profile/edit SCF field table layout#362
Fix user profile/edit SCF field table layout#362meravi wants to merge 3 commits intoWordPress:trunkfrom
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 Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Hey @kraftbj, just pinging you for a review on this PR. I’d really appreciate it if you could take a look. Thanks! |
There was a problem hiding this comment.
Pull request overview
This PR addresses layout/alignment issues for Secure Custom Fields (SCF) fields on WordPress user profile (profile.php) and edit user (user-edit.php) admin screens by injecting scoped CSS to better match core table.form-table styling.
Changes:
- Adds an
admin_headhook to output scoped CSS on profile/edit-user screens. - Introduces CSS rules to normalize label width/alignment and input/Select2 widths.
- Adds a responsive rule to stack label/input cells on small screens.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes #349
Summary
SCF fields rendered on user profile (profile.php) and edit user (user-edit.php) screens use WordPress
table.form-tablemarkup. This can cause label/input alignment and width issues compared to core profile fields.Changes
Tested
Contributor
Screenshots
Before:

After:
