Make WordPress Core

Changeset 36492


Ignore:
Timestamp:
02/07/2016 01:26:17 AM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Add a note to the DocBlock for current_user_can() to explain that it will always return true for super admins, unless specifically denied.

Props finnj.
Fixes #35551.

File:
1 edited

Legend:

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

    r36416 r36492  
    409409 * in part, this practice is discouraged as it may produce unreliable results.
    410410 *
     411 * Note: Will always return true if the current user is a super admin, unless specifically denied.
     412 *
    411413 * @since 2.0.0
    412414 *
Note: See TracChangeset for help on using the changeset viewer.