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/ajax/wpCustomizeNavMenus.php

    r56548 r57099  
    120120     * @return array {
    121121     *     @type array {
    122      *         @string string $role             The role that will test caps for.
    123      *         @array array  $expected_results The expected results from the Ajax call.
     122     *         @type string $role             The role that will test caps for.
     123     *         @type array  $expected_results The expected results from the Ajax call.
    124124     *     }
    125125     * }
     
    192192     * @return array {
    193193     *     @type array {
    194      * @array array $post_args        The arguments that will merged with the $_POST array.
    195      * @array array $expected_results The expected results from the Ajax call.
     194     *         @type array $post_args        The arguments that will merged with the $_POST array.
     195     *         @type array $expected_results The expected results from the Ajax call.
    196196     *     }
    197197     * }
     
    516516     * @return array {
    517517     *     @type array {
    518      * @string string $role             The role that will test caps for.
    519      * @array array  $expected_results The expected results from the Ajax call.
     518     *         @type string $role             The role that will test caps for.
     519     *         @type array  $expected_results The expected results from the Ajax call.
    520520     *     }
    521521     * }
     
    611611     * @return array {
    612612     *     @type array {
    613      * @string string $post_args        The args that will be passed to Ajax.
    614      * @array array  $expected_results The expected results from the Ajax call.
     613     *         @type string $post_args        The args that will be passed to Ajax.
     614     *         @type array  $expected_results The expected results from the Ajax call.
    615615     *     }
    616616     * }
Note: See TracChangeset for help on using the changeset viewer.