WordPress.org

Make WordPress Core

#19049 closed defect (bug) (invalid)

wp_tag_cloud() not returning values

Reported by: ryanhellyer Owned by:
Priority: normal Milestone:
Component: Template Version: 3.3
Severity: normal Keywords: has-patch
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 20 months ago.
Allows wp_tag_cloud() to return value as intended.

Download all attachments as: .zip

Change History (2)

ryanhellyer20 months ago

Allows wp_tag_cloud() to return value as intended.

comment:1 dd3220 months 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.