Make WordPress Core

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


Ignore:
Timestamp:
11/18/2022 01:05:41 AM (17 months ago)
Author:
omaeyusuke
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57131, comment 8

    initial v1  
    11I have rethought my current implementation and understand that `get_post()` is only used to check for the existence of posts, and that receiving `WP_Post` is an extra if we are talking about implementation alone.
    2 However, if I make it not-nullable, the current implementation of `get_the_category()` breaks. There is a way to rewrite it, which is what I'm trying to do.
     2However, if I make it not-nullable, the current implementation of `get_the_category()` breaks.