[wp-trac] [WordPress Trac] #65044: get_post_custom_values() missing array check, inconsistent with get_post_custom_keys()

WordPress Trac noreply at wordpress.org
Thu Apr 9 05:43:56 UTC 2026


#65044: get_post_custom_values() missing array check, inconsistent with
get_post_custom_keys()
-------------------------------+-----------------------------
 Reporter:  saratheonline      |      Owner:  saratheonline
     Type:  defect (bug)       |     Status:  assigned
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Explain that get_post_custom() can return false or "", and that the
 sibling function
   get_post_custom_keys() guards against this but get_post_custom_values()
 does not, causing a PHP 8+ warning.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65044>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list