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

WordPress Trac noreply at wordpress.org
Sat Nov 9 15:45:42 UTC 2024


#62366: get_post_states() throws PHP warning
-------------------------+-------------------------------------------------
 Reporter:  akramipro    |       Owner:  (none)
     Type:  defect       |      Status:  new
  (bug)                  |
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Posts, Post  |     Version:  trunk
  Types                  |
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  coding-standards, php-
  close                  |  compatibility
-------------------------+-------------------------------------------------

Comment (by akramipro):

 We cannot hope that the user will enter the correct value.
 We should not allow it to cause an error.
 Why is it incorrect to check this?

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


More information about the wp-trac mailing list