[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
Fri May 17 20:48:23 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:  General                              |    Version:  6.5.3
 Severity:  normal                               |   Keywords:
  Focuses:  coding-standards, php-compatibility  |
-------------------------------------------------+-------------------------
 It shows this warning everywhere.


 {{{
 Warning: Invalid argument supplied for foreach() in /public_html/wp-
 includes/class-wp-post-type.php on line 753
 }}}

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


More information about the wp-trac mailing list