[wp-trac] [WordPress Trac] #24768: get_comment, wp_get_post_revision, get_term all have $null

WordPress Trac noreply at wordpress.org
Wed Jan 29 06:45:56 UTC 2014


#24768: get_comment, wp_get_post_revision, get_term all have $null
--------------------------+-----------------------------
 Reporter:  rmccue        |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.9
Component:  General       |     Version:  3.5
 Severity:  minor         |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27057"]:
 {{{
 #!CommitTicketReference repository="" revision="27057"
 `get_comment()`, `wp_get_post_revision()`, and `get_term()` all used to
 return by reference. Because of this, `$null` was set to `null` so the
 return value would be a variable where applicable. This has not been
 necessary since [21792], so the `$null`s have been removed.

 Props toszcze.
 Fixes #24768.
 }}}

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


More information about the wp-trac mailing list