[wp-trac] [WordPress Trac] #56951: Incorrect use of class in wp-admin fields
WordPress Trac
noreply at wordpress.org
Wed Nov 2 05:51:42 UTC 2022
#56951: Incorrect use of class in wp-admin fields
-------------------------------------------------+-------------------------
Reporter: phillsav | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: css, administration, coding- |
standards |
-------------------------------------------------+-------------------------
in wp-admin/options-general.php and profile.php we are using the class
'regular-text code' to display the text in the Website field. However in
other url field instances, we use the 'regular-text' class.
[[Image()]] See Here: https://prnt.sc/wQ7zuSY-pWRX
This seems incorrect, for example in wp-admin/profile.php, we have a list
of url fields beginning with the website url. The website field is the
only one which uses this 'regular-text code' class. It looks unusual to
differ between the url classes in this way:
I found this page which also contradicts the use of 'regular-text code'
for a url:
Reference
https://make.wordpress.org/docs/style-guide/developer-content/code-in-text
/#items-to-put-in-regular-non-code-font
Therefore, is the usage of this class correct? If not, i'm happy to be
assigned to contribute the fix for this, if it is indeed classed as
incorrect.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56951>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list