Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56170, comment 8


Ignore:
Timestamp:
02/01/2023 09:24:20 PM (21 months ago)
Author:
joedolson
Comment:

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.
     1The 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.
    22
    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.
     3Alternate 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.