[wp-trac] [WordPress Trac] #62166: Bundled themes: PHPCS "exactly one blank line after the file comment"
WordPress Trac
noreply at wordpress.org
Wed Jan 15 18:13:56 UTC 2025
#62166: Bundled themes: PHPCS "exactly one blank line after the file comment"
---------------------------+-------------------------------------
Reporter: dhruvang21 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: minor | Resolution:
Keywords: has-patch | Focuses: docs, coding-standards
---------------------------+-------------------------------------
Changes (by sabernhardt):
* focuses: coding-standards => docs, coding-standards
Comment:
PR 7500 does not edit the following class files, and I am not sure whether
this ticket should change them.
- `twentyeleven\inc\widgets.php`
- `twentyfourteen\inc\featured-content.php`
- `twentyfourteen\inc\widgets.php`
I do not think that they should simply add an empty line between the
comment and the `class Featured_Content {` line. However, the two widget
class files seem to combine the file header and the class docblock
(compared to how [https://github.com/WordPress/wordpress-
develop/blob/b275b38768fc2c2208e44bf6e9121a117c8ce119/src/wp-
content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php
Twenty Nineteen separates them]).
#62437 can address any edits to `package`/`subpackage`/`since` details in
block themes such as Twenty Twenty-Four (62166.5.patch).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62166#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list