Make WordPress Core

Changeset 61735


Ignore:
Timestamp:
02/25/2026 04:28:37 PM (8 weeks ago)
Author:
dmsnell
Message:

Docs: Fix backwards default value for wp_list_users()::exclude_admin.

This was previosly listed as defaulting to false when in fact it defaults to true.

Developed in: https://github.com/WordPress/wordpress-develop/pull/11022
Discussed in: https://core.trac.wordpress.org/ticket/64224
Reported in: https://github.com/WordPress/Documentation-Issue-Tracker/issues/1849

Props dmsnell, noruzzaman, vHeemstra, westonruter.
See #64224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r61656 r61735  
    895895 *     @type string $order         Sorting direction for $orderby. Accepts 'ASC', 'DESC'. Default 'ASC'.
    896896 *     @type int    $number        Maximum users to return or display. Default empty (all users).
    897  *     @type bool   $exclude_admin Whether to exclude the 'admin' account, if it exists. Default false.
     897 *     @type bool   $exclude_admin Whether to exclude the 'admin' account, if it exists. Default true.
    898898 *     @type bool   $show_fullname Whether to show the user's full name. Default false.
    899899 *     @type string $feed          If not empty, show a link to the user's feed and use this text as the alt
Note: See TracChangeset for help on using the changeset viewer.