Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59160 closed defect (bug) (wontfix)

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

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

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
3 years ago

  • Component Themes → Bundled Theme
  • Keywords needs-patch removed
  • Milestone Awaiting Review
  • Resolution → worksforme
  • Status new → 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
3 years ago

  • Focuses coding-standards added
  • Resolution worksforme → wontfix
  • Summary The file name is not correct as per the WordPress Phpcs rule in twentythirteen theme → 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.