Opened 3 months ago
Last modified 15 hours ago
#62775 new enhancement
line length should generally not exceed 80 characters, and the hard limit is 120 characters.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 6.6 |
Component: | Interactivity API | Keywords: | dev-feedback needs-patch 2nd-opinion |
Focuses: | coding-standards | Cc: |
Description (last modified by )
wp-includes/interactivity-api/class-wp-interactivity-api.php Line 418
Line length should not more than 120 characters as coding guidelines.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi and thanks for the ticket!
The line length limit should apply to DocBlocks, not lines with translatable strings.
Splitting the
$message
line into multiple lines might be an improvement, however.Or the message could go inside
_doing_it_wrong()
to avoid creating a$message
variable.If changing line 418 is valuable, then splitting lines 537 and 564 could be worthwhile too.