Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#59160 closed defect (bug) (wontfix)

Twenty Thirteen: The file name is not correct as per the WordPress Phpcs rule

Reported by: himshekhar07's profile himshekhar07 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords:
Focuses: coding-standards Cc:

Description

I found one file having the name "taxonomy-post_format.php". But as per the rule we have to name it "taxonomy-post-format.php" and also we need to follow consistency with the file name pattern.

Filenames should be all lowercase with hyphens as word separators. Expected taxonomy-post-format.php, but found taxonomy-post_format.php.

Change History (2)

#1 @audrasjb
8 months ago

  • Component changed from Themes to Bundled Theme
  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hello and thanks for the ticket,

post_format is the slug of the taxonomy, so it's expected that the archive template for this taxonomy would be taxonomy-post_format.php.

taxonomy-post-format.php won't work to display the taxonomy archive :)

Closing as worksforme.

#2 @SergeyBiryukov
8 months ago

  • Focuses coding-standards added
  • Resolution changed from worksforme to wontfix
  • Summary changed from The file name is not correct as per the WordPress Phpcs rule in twentythirteen theme to Twenty Thirteen: The file name is not correct as per the WordPress Phpcs rule

Please note that this file is excluded from WPCS checks, so this is a non-issue.

Note: See TracTickets for help on using tickets.