[wp-trac] [WordPress Trac] #34857: Improve documentation for wp_admin_css_color()
WordPress Trac
noreply at wordpress.org
Fri Dec 11 18:01:46 UTC 2015
#34857: Improve documentation for wp_admin_css_color()
--------------------------------------+-----------------------------
Reporter: swissspidy | Owner: kiranpotphode
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: docs
--------------------------------------+-----------------------------
Comment (by DrewAPicture):
Replying to [comment:3 swissspidy]:
> > Any guidelines on hash notations where arguments have no key-value
pair but accepts definite number of parameters?
> For example in this case $colors argument accepts 4 parameters but lacks
keys for parameters.
>
> @DrewAPicture to the rescue? :-)
We don't document flat arrays in hash notations. I would suggest
documenting the accepted values, types, and exact order required in the
parameter description.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34857#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list