Make WordPress Core


Ignore:
Timestamp:
03/22/2018 08:26:06 PM (7 years ago)
Author:
johnbillion
Message:

Docs: Document many more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

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

    r42837 r42871  
    29002900
    29012901/**
    2902  * Retrieves all of the taxonomy names that are registered for attachments.
     2902 * Retrieves all of the taxonomies that are registered for attachments.
    29032903 *
    29042904 * Handles mime-type-specific taxonomies such as attachment:image and attachment:video.
    29052905 *
    29062906 * @since 3.5.0
    2907  *
    29082907 * @see get_taxonomies()
    29092908 *
    29102909 * @param string $output Optional. The type of taxonomy output to return. Accepts 'names' or 'objects'.
    29112910 *                       Default 'names'.
    2912  * @return array The names of all taxonomy of $object_type.
     2911 * @return string[]|WP_Taxonomy[] Array of names or objects of registered taxonomies for attachments.
    29132912 */
    29142913function get_taxonomies_for_attachments( $output = 'names' ) {
Note: See TracChangeset for help on using the changeset viewer.