Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:28:51 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Docs on docs. Further improve documentation of known return types, plus other docs fixes.

See #48303

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r46315 r46662  
    200200 *
    201201 * @param string $taxonomy Taxonomy to retrieve terms from.
    202  * @param int $default Not used.
    203  * @param int $number Number of terms to retrieve. Defaults to 10.
    204  * @param bool $echo Optionally output the list as well. Defaults to true.
    205  * @return array List of popular term IDs.
     202 * @param int    $default Not used.
     203 * @param int    $number  Number of terms to retrieve. Defaults to 10.
     204 * @param bool   $echo    Optionally output the list as well. Defaults to true.
     205 * @return int[] Array of popular term IDs.
    206206 */
    207207function wp_popular_terms_checklist( $taxonomy, $default = 0, $number = 10, $echo = true ) {
     
    20982098
    20992099/**
    2100  * Function to retrieve an array of post states from a post.
     2100 * Retrieves an array of post states from a post.
    21012101 *
    21022102 * @since 5.3.0
    21032103 *
    21042104 * @param WP_Post $post The post to retrieve states for.
    2105  * @return array The array of translated post states.
     2105 * @return string[] Array of post state labels keyed by their state.
    21062106 */
    21072107function get_post_states( $post ) {
Note: See TracChangeset for help on using the changeset viewer.