[wp-trac] [WordPress Trac] #54673: Improve formatting in `/wp-admin/user-edit.php`.
WordPress Trac
noreply at wordpress.org
Tue Dec 21 07:00:49 UTC 2021
#54673: Improve formatting in `/wp-admin/user-edit.php`.
------------------------------+-------------------------
Reporter: costdev | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.0
Component: Administration | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: coding-standards |
------------------------------+-------------------------
Follow-up to #53658. See [https://github.com/WordPress/wordpress-
develop/pull/2069#discussion_r772677546 this comment] on PR 2069.
The formatting in this file can cause PHPCS failures when adding new code.
This requires new code to be indented multiple times, breaking alignment
of the HTML. This makes for difficult reading.
In PR 2069, we used `// phpcs: disable ... // phpcs: enable` for the
failing sniffs to preserve alignment of the HTML. This is messy, and would
need to be implemented for similar future changes.
Let's fixup this file so that we can remove the annotations and save
further workarounds in future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54673>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list