[wp-trac] [WordPress Trac] #28310: Accessing properties of null returned from get_post()

WordPress Trac noreply at wordpress.org
Tue Sep 2 01:48:23 UTC 2014


#28310: Accessing properties of null returned from get_post()
-------------------------------------------+-----------------------------
 Reporter:  GaryJ                          |       Owner:  wonderboymusic
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  4.0
Component:  Posts, Post Types              |     Version:  trunk
 Severity:  normal                         |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests punt  |     Focuses:
-------------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 I agree in general, it just seemed inconsistent with the rest of the file
 and a bit redundant for these particular tests.

 I've grouped them by the function being tested, and made sure the test
 functions still have accurate names.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28310#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list