WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #50913, comment 23


Ignore:
Timestamp:
09/11/2020 11:29:34 AM (11 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50913, comment 23

    v1 v2  
    1111* `current_user_can( 'publish_post' )`
    1212
    13 These all require a post ID to check, and will cause a PHP warning if the ID is not provided. Performing these checks without passing in a post ID (or a comment ID, in case of `edit_comment`) is a developer error, so I think the warning is legitimate, hiding it would only make debugging harder.
     13These all require a post ID to check, and will cause a PHP notice if the ID is not provided. Performing these checks without passing in a post ID (or a comment ID, in case of `edit_comment`) is a developer error, so I think the notice is legitimate, hiding it would only make debugging harder.
    1414
    1515See also: #48415, specifically comment:2:ticket:48415.