[wp-trac] [WordPress Trac] #62366: get_post_states() throws PHP warning

WordPress Trac noreply at wordpress.org
Sat Nov 9 15:17:47 UTC 2024


#62366: get_post_states() throws PHP warning
-------------------------------------------------+-------------------------
 Reporter:  akramipro                            |      Owner:  (none)
     Type:  defect (bug)                         |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  Posts, Post Types                    |    Version:  trunk
 Severity:  normal                               |   Keywords:  has-patch
  Focuses:  coding-standards, php-compatibility  |
-------------------------------------------------+-------------------------
 the `$post` sanity does not check in `get_post_states()`.
 this patch can fix bugs like #58932

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


More information about the wp-trac mailing list