Changes between Version 1 and Version 2 of Ticket #50913, comment 23
- Timestamp:
- 09/11/2020 11:29:34 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #50913, comment 23
v1 v2 11 11 * `current_user_can( 'publish_post' )` 12 12 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 warningis legitimate, hiding it would only make debugging harder.13 These 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. 14 14 15 15 See also: #48415, specifically comment:2:ticket:48415.