Changes between Initial Version and Version 1 of Ticket #56170, comment 8
- Timestamp:
- 02/01/2023 09:24:20 PM (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #56170, comment 8
initial v1 1 The provided patch fixes the immediate issue, but doesn't cover the same issue with `wp_trash_post` and `wp_untrash_post` earlier in the same function, which also expect `int` arguments.1 The provided patch fixes the immediate issue, but doesn't cover the same issue with `wp_trash_post` and `wp_untrash_post` earlier in the same code block, which also expect `int` arguments. 2 2 3 Alternate version of patch ensures that `$post_ids` is an array of integers from the beginning of the function, simplifying the code by making the (array) and (int) casting unnecessary.3 Alternate version of patch ensures that `$post_ids` is an array of integers from earlier in the code block, simplifying the code by making the (array) and (int) casting unnecessary.