WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#4020 closed defect (bug) (fixed)

default theme: archive.php no need to echo single_cat_title()

Reported by: buzink Owned by: ryan
Milestone: 2.2 Priority: lowest
Severity: trivial Version: 2.2
Component: Template Keywords: has-patch commit
Focuses: Cc:

Description

In archive.php of default theme it says <?php echo single_cat_title(); ?>, while it should be <?php single_cat_title(); ?> as the function allready returns an echo statement. This has no effect on functionality but might confuse developers trying to find out how to display the category title somewhere, like me :-).

Attachments (1)

4020.diff (734 bytes) - added by foolswisdom 7 years ago.
Patch prepared on trunk r5093

Download all attachments as: .zip

Change History (8)

comment:1 foolswisdom7 years ago

  • Milestone changed from 2.3 to 2.2
  • Version set to 2.2

buzink, thank you!

foolswisdom7 years ago

Patch prepared on trunk r5093

comment:2 foolswisdom7 years ago

  • Keywords has-patch commit added

comment:3 foolswisdom7 years ago

  • Summary changed from small error in default theme to default theme: archive.php no need to echo single_cat_title()

comment:4 rob1n7 years ago

Bah, dang legacy bugs ;).

comment:5 rob1n7 years ago

  • Owner changed from anonymous to foolswisdom

comment:6 ryan7 years ago

  • Owner changed from foolswisdom to ryan

comment:7 ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5105]) Remove extraneous echo. Props buzink. fixes #4020

Note: See TracTickets for help on using tickets.