[wp-trac] [WordPress Trac] #28310: Accessing properties of null returned from get_post()
WordPress Trac
noreply at wordpress.org
Tue May 20 15:56:46 UTC 2014
#28310: Accessing properties of null returned from get_post()
----------------------------------------+--------------------
Reporter: GaryJ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+--------------------
Changes (by DrewAPicture):
* keywords: has-patch => has-patch needs-unit-tests
Comment:
[attachment:28310.2.diff] looks good to me. Seems like we're both adding
and clarifying a return condition though. Should we not also have new or
improved unit tests for `get_the_date()`, `get_the_time()`,
`get_post_time()`, and `get_post_modified_time()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28310#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list