WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5289 closed defect (bug) (invalid)

wp_list_authors doesnt work with echo=false

Reported by: fgubert Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3.1
Component: Template Keywords:
Focuses: Cc:

Description

if i use wp_list_authors('show_fullname=1&optioncount=0&hide_empty=1&echo=false'); the content returns by echo. if echo=true too.

at the author-template.php, is this: if ( !$echo )

return $return;

echo $return;

if i replace by this works: if ($echo == "false") {

return $return;

} else {

echo $return;

}

Change History (4)

#1 @DD32
11 years ago

correct me if i'm wrong, But i think the method all the echo= functions expect a numeric value(Like the others in that query string)

eg:

wp_list_authors('show_fullname=1&optioncount=0&hide_empty=1&echo=0');

#2 @fgubert
11 years ago

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

Hum. ur correct. Sorry by this :)

#3 @Viper007Bond
11 years ago

false is a string and not "FALSE", so therefore it comes across as "TRUE". ;)

#4 @Nazgul
11 years ago

  • Milestone 2.3.2 deleted
Note: See TracTickets for help on using tickets.