[wp-trac] [WordPress Trac] #18215: Wrong method signature: get_post_meta

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 22 13:43:24 UTC 2011

#18215: Wrong method signature: get_post_meta
 Reporter:  luis.ferro    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Post Types    |    Version:
 Severity:  minor         |   Keywords:
 On wp-includes/post.php, around line 1458, there is the following
 signature of a method:

 function get_post_meta($post_id, $key, $single = false)

 This is incorrect and should be:

 function get_post_meta($post_id, $key = null, $single = false)


 p.s.- the only effect of this is a warning on the IDE that you can use and
 naturally a possibility of some warnings on PHP, if they are not

Ticket URL: <http://core.trac.wordpress.org/ticket/18215>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list