[wp-trac] [WordPress Trac] #55359: get_option return value wrong

WordPress Trac noreply at wordpress.org
Wed Mar 9 19:16:10 UTC 2022


#55359: get_option return value wrong
--------------------------------+-----------------------------
 Reporter:  malthert            |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 https://developer.wordpress.org/reference/functions/get_option/

 says it can return scalar including integer, which is false.

 get_option can only return:
 bool|null|string|array|object

 Need to fix in phpdoc and documentation.

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


More information about the wp-trac mailing list