Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#19049 closed defect (bug) (invalid)

wp_tag_cloud() not returning values

Reported by: ryanhellyer's profile ryanhellyer Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Template Keywords: has-patch
Focuses: Cc:

Description

wp_tag_cloud() is not returning values when echo=false argument is used.

Attachments (1)

wp_tag_cloud_return.diff (463 bytes) - added by ryanhellyer 14 years ago.
Allows wp_tag_cloud() to return value as intended.

Download all attachments as: .zip

Change History (2)

@ryanhellyer
14 years ago

Allows wp_tag_cloud() to return value as intended.

#1 @dd32
14 years ago

  • Component changed from General to Template
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

true||false is only usable when you use array notation for calling template tags.

When using the string form within template tags, you need to use a 0 for a false value. This is consistent with all other template tags. In your case, you're passing the string "false" which PHP reads as a true value.

Note: See TracTickets for help on using tickets.