Make WordPress Core


Ignore:
Timestamp:
11/09/2023 09:49:41 AM (10 months ago)
Author:
SergeyBiryukov
Message:

Docs: Fix various incorrect WP-flavored array specifications.

Tags like @string or @array do not exist and are not supported. The way these were used here, also meant duplicate information being documented.

Fixed now by using the @type tag as per the WP flavor of array documentation.

Includes some fixes to the documentation formatting.

Reference: PHP Documentation Standards: Parameters That Are Arrays.

Follow-up to [33322], [42880], [42971], [44786].

Props jrf.
See #59651.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/kses.php

    r56617 r57099  
    953953     * @return array {
    954954     *     @type array {
    955      *         @string string $css      A string of CSS rules.
    956      *         @string string $expected Expected string of CSS rules.
     955     *         @type string $css      A string of CSS rules.
     956     *         @type string $expected Expected string of CSS rules.
    957957     *     }
    958958     * }
     
    16151615     * @return array {
    16161616     *     @type array {
    1617      *         @string string $css      A string of CSS rules.
    1618      *         @string string $expected Expected string of CSS rules.
     1617     *         @type string $css      A string of CSS rules.
     1618     *         @type string $expected Expected string of CSS rules.
    16191619     *     }
    16201620     * }
Note: See TracChangeset for help on using the changeset viewer.