Make WordPress Core

Changeset 42640


Ignore:
Timestamp:
02/02/2018 09:37:47 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Convert $args array description for wp_get_themes() to a hash notation.

Props milana_cap.
Fixes #43213.

File:
1 edited

Legend:

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

    r42343 r42640  
    1818 * @staticvar array $_themes
    1919 *
    20  * @param array $args The search arguments. Optional.
    21  * - errors      mixed  True to return themes with errors, false to return themes without errors, null
    22  *                      to return all themes. Defaults to false.
    23  * - allowed     mixed  (Multisite) True to return only allowed themes for a site. False to return only
    24  *                      disallowed themes for a site. 'site' to return only site-allowed themes. 'network'
    25  *                      to return only network-allowed themes. Null to return all themes. Defaults to null.
    26  * - blog_id     int    (Multisite) The blog ID used to calculate which themes are allowed. Defaults to 0,
    27  *                      synonymous for the current blog.
     20 * @param array $args {
     21 *     Optional. The search arguments.
     22 *
     23 *     @type mixed $errors  True to return themes with errors, false to return themes without errors, null to return all themes.
     24 *                          Defaults to false.
     25 *     @type mixed $allowed (Multisite) True to return only allowed themes for a site. False to return only disallowed themes for a site.
     26 *                          'site' to return only site-allowed themes. 'network' to return only network-allowed themes.
     27 *                          Null to return all themes. Defaults to null.
     28 *     @type int   $blog_id (Multisite) The blog ID used to calculate which themes are allowed.
     29 *                          Defaults to 0, synonymous for the current blog.
     30 * }
    2831 * @return array Array of WP_Theme objects.
    2932 */
Note: See TracChangeset for help on using the changeset viewer.