Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#45120 closed enhancement (fixed)

the wp_list_authors function has bugs between code and document

Reported by: haruharuharuby's profile haruharuharuby Owned by: pento's profile pento
Milestone: 5.1 Priority: normal
Severity: normal Version: 5.1
Component: Users Keywords: has-patch commit
Focuses: docs Cc:

Description

I found a rug between a document and current code.

In the wp_list_authors function

In the code, the default value of exlucde_admin parameter is true. But In the document is false.

https://codex.wordpress.org/Template_Tags/wp_list_authors

Attachments (1)

author_ducument.diff (1.1 KB) - added by haruharuharuby 5 years ago.
this is the patch file of wp-includes/author-template.php

Download all attachments as: .zip

Change History (8)

@haruharuharuby
5 years ago

this is the patch file of wp-includes/author-template.php

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Users
  • Focuses docs added
  • Keywords has-patch commit added
  • Milestone changed from Awaiting Review to 5.0.1

#2 @mukesh27
5 years ago

  • Summary changed from the wp_list_authors function has rugs between code and document to the wp_list_authors function has bugs between code and document

#3 @pento
5 years ago

  • Milestone changed from 5.0.1 to 5.0.2

#4 @pento
5 years ago

  • Milestone changed from 5.0.2 to 5.0.3

#5 @audrasjb
5 years ago

  • Milestone changed from 5.0.3 to 5.1

Hi,

Per today's bug scrub, we are going to address Docs enhancements in 5.1, coming next month.

#6 @pento
5 years ago

  • Owner set to pento
  • Status changed from new to assigned

#7 @pento
5 years ago

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

In 44503:

Docs: Correct the documentation for wp_list_authors().

The exclude_admin argument defaults to true, not false.

Props haruharuharuby.
Fixes #45120.

Note: See TracTickets for help on using tickets.