WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
04/30/2017 09:28:41 AM (3 years ago)
Author:
shulard
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40286, comment 8

    initial v1  
    1 I though that `get_post` function will always return an WP_Post instance so `$_post->ID` will always be defined. It can be null but it's defined.
     1I though that `get_post` function will always return an `WP_Post` instance so `$_post->ID` will always be defined. It can be `null` but it's defined (`$ID` is a public property of `WP_Post` class).