Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56951


Ignore:
Timestamp:
11/02/2022 08:49:24 AM (4 years ago)
Author:
sabernhardt
Comment:

Hi and thanks for the report!

The style guide page describes how to style "Code in text"; these are input fields. For the "Website" field, the regular-text class sets the input width, and the code class gives it the fixed-width font and text direction.

"Facebook profile URL" is not a Core profile field, but it seems to be from Yoast SEO. You could open an issue (and/or pull request) to suggest adding the code class to each profile URL field and probably changing the type from text to url. https://github.com/Yoast/wordpress-seo/issues

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56951

    • Property Keywords close 2nd-opinion added
    • Property Component changed from General to Administration
  • Ticket #56951 – Description

    initial v1  
    11in 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.
    22
    3 [[Image()]] See Here: https://prnt.sc/wQ7zuSY-pWRX
     3See Here: https://prnt.sc/wQ7zuSY-pWRX
    44
    55This 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:
     
    77I found this page which also contradicts the use of 'regular-text code' for a url:
    88
    9 
    109Reference
    1110https://make.wordpress.org/docs/style-guide/developer-content/code-in-text/#items-to-put-in-regular-non-code-font