WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:21:46 PM (18 months ago)
Author:
johnbillion
Message:

Docs: Improve documentation of known return types, plus other docs fixes.

See #48303

File:
1 edited

Legend:

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

    r46644 r46660  
    767767 *
    768768 * @param string $content Content to extract URLs from.
    769  * @return array URLs found in passed string.
     769 * @return string[] Array of URLs found in passed string.
    770770 */
    771771function wp_extract_urls( $content ) {
     
    24882488 * @param string       $name       Filename.
    24892489 * @param null|string  $deprecated Never used. Set to null.
    2490  * @param mixed        $bits       File content
     2490 * @param string       $bits       File content
    24912491 * @param string       $time       Optional. Time formatted in 'yyyy/mm'. Default null.
    24922492 * @return array
     
    30043004 * @since 4.6.0
    30053005 *
    3006  * @return array Array of file extensions types keyed by the type of file.
     3006 * @return array[] Multi-dimensional array of file extensions types keyed by the type of file.
    30073007 */
    30083008function wp_get_ext_types() {
     
    30153015     * @see wp_ext2type()
    30163016     *
    3017      * @param array $ext2type Multi-dimensional array with extensions for a default set
    3018      *                        of file types.
     3017     * @param array[] $ext2type Multi-dimensional array of file extensions types keyed by the type of file.
    30193018     */
    30203019    return apply_filters(
     
    42634262 *
    42644263 * @param array|string $list List of ids.
    4265  * @return array Sanitized array of IDs.
     4264 * @return int[] Sanitized array of IDs.
    42664265 */
    42674266function wp_parse_id_list( $list ) {
     
    42774276 *
    42784277 * @param  array|string $list List of slugs.
    4279  * @return array Sanitized array of slugs.
     4278 * @return string[] Sanitized array of slugs.
    42804279 */
    42814280function wp_parse_slug_list( $list ) {
     
    58435842 * @param string $context         Optional. If specified adds filter hook {@see 'extra_$context_headers'}.
    58445843 *                                Default empty.
    5845  * @return array Array of file headers in `HeaderKey => Header Value` format.
     5844 * @return string[] Array of file header values keyed by header name.
    58465845 */
    58475846function get_file_data( $file, $default_headers, $context = '' ) {
Note: See TracChangeset for help on using the changeset viewer.