[wp-trac] [WordPress Trac] #61242: PHP warning when `'taxonomies'` in `register_post_type` is set to `false` instead of `array()`

WordPress Trac noreply at wordpress.org
Sat May 18 08:11:28 UTC 2024


#61242: PHP warning when `'taxonomies'` in `register_post_type` is set to `false`
instead of `array()`
-------------------------------+------------------------------
 Reporter:  siddiquesaad       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  6.5.3
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):

 * focuses:  coding-standards, php-compatibility =>
 * component:  General => Posts, Post Types


Comment:

 Why/How are you passing false there in the first place when it needs to be
 an array?

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


More information about the wp-trac mailing list