[wp-trac] [WordPress Trac] #62735: Change documented type of get_network_option, update_network_option and delete_network_option's $network_id parameter to int|null

WordPress Trac noreply at wordpress.org
Mon Dec 23 08:35:58 UTC 2024


#62735: Change documented type of get_network_option, update_network_option and
delete_network_option's $network_id parameter to int|null
-------------------------------------+-----------------------------
 Reporter:  maikelraow               |      Owner:  (none)
     Type:  enhancement              |     Status:  new
 Priority:  normal                   |  Milestone:  Awaiting Review
Component:  Options, Meta APIs       |    Version:  trunk
 Severity:  minor                    |   Keywords:
  Focuses:  docs, php-compatibility  |
-------------------------------------+-----------------------------
 get_network_option, update_network_option and delete_network_option all
 have a $network_id as first parameter.

 {{{
 @param int $network_id ID of the network. Can be null to default to the
 current network ID.
 }}}

 It's @param type is set to INT yet it also explicitly says that NULL can
 be passed to use the current network ID. If passing NULL is valid then
 should the type not be INT|NULL?

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


More information about the wp-trac mailing list