WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 7 months ago

#45120 closed enhancement (fixed)

the wp_list_authors function has bugs between code and document

Reported by: haruharuharuby Owned by: 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 10 months ago.
this is the patch file of wp-includes/author-template.php

Download all attachments as: .zip

Change History (8)

@haruharuharuby
10 months ago

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

#1 @SergeyBiryukov
10 months 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
10 months 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
8 months ago

  • Milestone changed from 5.0.1 to 5.0.2

#4 @pento
8 months ago

  • Milestone changed from 5.0.2 to 5.0.3

#5 @audrasjb
8 months 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
7 months ago

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

#7 @pento
7 months 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.