Make WordPress Core


Ignore:
Timestamp:
09/27/2015 10:46:37 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Fix two typos in the DocBlock description for themes_api():

  • The fourth $action type is 'feature_list'
  • The first $action type in the data table should be 'query_themes'

See #34036.

File:
1 edited

Legend:

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

    r34648 r34649  
    309309 *
    310310 * The second filter, {@see 'themes_api'}, allows a plugin to override the WordPress.org
    311  * Theme API entirely. If `$action` is 'query_themes', 'theme_information', or 'hot_categories',
     311 * Theme API entirely. If `$action` is 'query_themes', 'theme_information', or 'feature_list',
    312312 * an object MUST be passed. If `$action` is 'hot_tags`, an array should be passed.
    313313 *
     
    317317 * Supported arguments per action:
    318318 *
    319  * | Argument Name      | 'query_plugins' | 'theme_information' | 'hot_tags' | 'feature_list'   |
     319 * | Argument Name      | 'query_themes' | 'theme_information' | 'hot_tags' | 'feature_list'   |
    320320 * | -------------------| :-------------: | :-----------------: | :--------: | :--------------: |
    321321 * | `$slug`            | No              |  Yes                | No         | No               |
Note: See TracChangeset for help on using the changeset viewer.