Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#4020 closed defect (bug) (fixed)

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

Reported by: buzink's profile buzink Owned by: ryan's profile 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 18 years ago.
Patch prepared on trunk r5093

Download all attachments as: .zip

Change History (8)

#1 @foolswisdom
18 years ago

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

buzink, thank you!

@foolswisdom
18 years ago

Patch prepared on trunk r5093

#2 @foolswisdom
18 years ago

  • Keywords has-patch commit added

#3 @foolswisdom
18 years ago

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

#4 @rob1n
18 years ago

Bah, dang legacy bugs ;).

#5 @rob1n
18 years ago

  • Owner changed from anonymous to foolswisdom

#6 @ryan
18 years ago

  • Owner changed from foolswisdom to ryan

#7 @ryan
18 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.