Make WordPress Core

Changeset 42871


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

Location:
trunk/src
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r42796 r42871  
    194194 * @since 3.0.0
    195195 *
    196  * @param array $messages Post updated messages. For defaults @see $messages declarations above.
     196 * @param array[] $messages Post updated messages. For defaults see `$messages` declarations above.
    197197 */
    198198$messages = apply_filters( 'post_updated_messages', $messages );
  • trunk/src/wp-admin/edit.php

    r42719 r42871  
    330330 * @since 3.7.0
    331331 *
    332  * @param array $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are
    333  *                             keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'.
    334  * @param array $bulk_counts   Array of item counts for each message, used to build internationalized strings.
     332 * @param array[] $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are
     333 *                               keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'.
     334 * @param int[]  $bulk_counts   Array of item counts for each message, used to build internationalized strings.
    335335 */
    336336$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
  • trunk/src/wp-admin/includes/bookmark.php

    r42719 r42871  
    254254 *
    255255 * @param int   $link_id         ID of the link to update.
    256  * @param array $link_categories Array of link categories to add the link to.
     256 * @param int[] $link_categories Array of link category IDs to add the link to.
    257257 */
    258258function wp_set_link_cats( $link_id = 0, $link_categories = array() ) {
  • trunk/src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php

    r42343 r42871  
    5656         * @since 3.0.0
    5757         *
    58          * @param array $update_actions Array of plugin action links.
     58         * @param string[] $update_actions Array of plugin action links.
    5959         * @param array $plugin_info    Array of information for the last-updated plugin.
    6060         */
  • trunk/src/wp-admin/includes/class-bulk-theme-upgrader-skin.php

    r42677 r42871  
    5656         * @since 3.0.0
    5757         *
    58          * @param array    $update_actions Array of theme action links.
     58         * @param string[] $update_actions Array of theme action links.
    5959         * @param WP_Theme $theme_info     Theme object for the last-updated theme.
    6060         */
  • trunk/src/wp-admin/includes/class-language-pack-upgrader-skin.php

    r42343 r42871  
    7878         * @since 3.7.0
    7979         *
    80          * @param array $update_actions Array of translations update links.
     80         * @param string[] $update_actions Array of translations update links.
    8181         */
    8282        $update_actions = apply_filters( 'update_translations_complete_actions', $update_actions );
  • trunk/src/wp-admin/includes/class-language-pack-upgrader.php

    r42827 r42871  
    152152     * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    153153     *
    154      * @param array $language_updates Optional. Language pack updates. Default empty array.
    155      * @param array $args {
    156      *     Optional. Other arguments for upgrading multiple language packs. Default empty array
     154     * @param object[] $language_updates Optional. Array of language packs to update. @see wp_get_translation_updates().
     155     *                                   Default empty array.
     156     * @param array    $args {
     157     *     Other arguments for upgrading multiple language packs. Default empty array.
    157158     *
    158159     *     @type bool $clear_update_cache Whether to clear the update cache when done.
     
    160161     * }
    161162     * @return array|bool|WP_Error Will return an array of results, or true if there are no updates,
    162      *                                   false or WP_Error for initial errors.
     163     *                             false or WP_Error for initial errors.
    163164     */
    164165    public function bulk_upgrade( $language_updates = array(), $args = array() ) {
  • trunk/src/wp-admin/includes/class-plugin-installer-skin.php

    r42787 r42871  
    9090         * @since 2.7.0
    9191         *
    92          * @param array $install_actions Array of plugin action links.
    93          * @param object $api             Object containing WordPress.org API plugin data. Empty
    94          *                                for non-API installs, such as when a plugin is installed
    95          *                                via upload.
    96          * @param string $plugin_file     Path to the plugin file relative to the plugins directory.
     92         * @param string[] $install_actions Array of plugin action links.
     93         * @param object   $api             Object containing WordPress.org API plugin data. Empty
     94         *                                  for non-API installs, such as when a plugin is installed
     95         *                                  via upload.
     96         * @param string   $plugin_file     Path to the plugin file relative to the plugins directory.
    9797         */
    9898        $install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file );
  • trunk/src/wp-admin/includes/class-plugin-upgrader-skin.php

    r42787 r42871  
    6565         * @since 2.7.0
    6666         *
    67          * @param array $update_actions Array of plugin action links.
    68          * @param string $plugin         Path to the plugin file relative to the plugins directory.
     67         * @param string[] $update_actions Array of plugin action links.
     68         * @param string   $plugin         Path to the plugin file relative to the plugins directory.
    6969         */
    7070        $update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin );
  • trunk/src/wp-admin/includes/class-theme-installer-skin.php

    r42343 r42871  
    105105         * @since 2.8.0
    106106         *
    107          * @param array    $install_actions Array of theme action links.
     107         * @param string[] $install_actions Array of theme action links.
    108108         * @param object   $api             Object containing WordPress.org API theme data.
    109109         * @param string   $stylesheet      Theme directory name.
  • trunk/src/wp-admin/includes/class-theme-upgrader-skin.php

    r42343 r42871  
    8686         * @since 2.8.0
    8787         *
    88          * @param array $update_actions Array of theme action links.
    89          * @param string $theme          Theme directory name.
     88         * @param string[] $update_actions Array of theme action links.
     89         * @param string   $theme          Theme directory name.
    9090         */
    9191        $update_actions = apply_filters( 'update_theme_complete_actions', $update_actions, $this->theme );
  • trunk/src/wp-admin/includes/class-theme-upgrader.php

    r42777 r42871  
    321321     * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional.
    322322     *
    323      * @param array $themes The theme slugs.
    324      * @param array $args {
     323     * @param string[] $themes Array of the theme slugs.
     324     * @param array    $args {
    325325     *     Optional. Other arguments for upgrading several themes at once. Default empty array.
    326326     *
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r42767 r42871  
    382382         * @since 2.7.0
    383383         *
    384          * @param array $comment_types An array of comment types. Accepts 'Comments', 'Pings'.
     384         * @param string[] $comment_types An array of comment types. Accepts 'Comments', 'Pings'.
    385385         */
    386386        $comment_types = apply_filters(
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r42343 r42871  
    397397         * @since 3.5.0
    398398         *
    399          * @param array $views An array of available list table views.
     399         * @param string[] $views An array of available list table views.
    400400         */
    401401        $views = apply_filters( "views_{$this->screen->id}", $views );
     
    448448             * @since 3.5.0
    449449             *
    450              * @param array $actions An array of the available bulk actions.
     450             * @param string[] $actions An array of the available bulk actions.
    451451             */
    452452            $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );
     
    504504     * @since 3.1.0
    505505     *
    506      * @param array $actions The list of actions
    507      * @param bool $always_visible Whether the actions should be always visible
     506     * @param string[] $actions        An array of action links.
     507     * @param bool     $always_visible Whether the actions should be always visible.
    508508     * @return string
    509509     */
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r42343 r42871  
    287287         * @since 3.5.0
    288288         *
    289          * @param array  $taxonomies An array of registered taxonomies to show for attachments.
    290          * @param string $post_type  The post type. Default 'attachment'.
     289         * @param string[] $taxonomies An array of registered taxonomy names to show for attachments.
     290         * @param string   $post_type  The post type. Default 'attachment'.
    291291         */
    292292        $taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' );
     
    318318         * @since 2.5.0
    319319         *
    320          * @param array $posts_columns An array of columns displayed in the Media list table.
    321          * @param bool  $detached      Whether the list table contains media not attached
    322          *                             to any posts. Default true.
     320         * @param string[] $posts_columns An array of columns displayed in the Media list table.
     321         * @param bool     $detached      Whether the list table contains media not attached
     322         *                                to any posts. Default true.
    323323         */
    324324        return apply_filters( 'manage_media_columns', $posts_columns, $this->detached );
     
    756756         * @since 2.8.0
    757757         *
    758          * @param array  $actions  An array of action links for each attachment.
    759          *                          Default 'Edit', 'Delete Permanently', 'View'.
    760          * @param WP_Post $post     WP_Post object for the current attachment.
    761          * @param bool    $detached Whether the list table contains media not attached
    762          *                          to any posts. Default true.
     758         * @param string[] $actions  An array of action links for each attachment.
     759         *                           Default 'Edit', 'Delete Permanently', 'View'.
     760         * @param WP_Post  $post     WP_Post object for the current attachment.
     761         * @param bool     $detached Whether the list table contains media not attached
     762         *                           to any posts. Default true.
    763763         */
    764764        return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
  • trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php

    r42343 r42871  
    249249         * @since MU (3.0.0)
    250250         *
    251          * @param array $sites_columns An array of displayed site columns. Default 'cb',
    252          *                             'blogname', 'lastupdated', 'registered', 'users'.
     251         * @param string[] $sites_columns An array of displayed site columns. Default 'cb',
     252         *                               'blogname', 'lastupdated', 'registered', 'users'.
    253253         */
    254254        return apply_filters( 'wpmu_blogs_columns', $sites_columns );
     
    274274     */
    275275    public function column_cb( $blog ) {
     276        var_dump($blog);
     277        exit;
    276278        if ( ! is_main_site( $blog['blog_id'] ) ) :
    277279            $blogname = untrailingslashit( $blog['domain'] . $blog['path'] );
     
    570572         * @since 3.1.0
    571573         *
    572          * @param array $actions  An array of action links to be displayed.
    573          * @param int    $blog_id  The site ID.
    574          * @param string $blogname Site path, formatted depending on whether it is a sub-domain
    575          *                         or subdirectory multisite installation.
     574         * @param string[] $actions  An array of action links to be displayed.
     575         * @param int      $blog_id  The site ID.
     576         * @param string   $blogname Site path, formatted depending on whether it is a sub-domain
     577         *                           or subdirectory multisite installation.
    576578         */
    577579        $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r42343 r42871  
    9898             * @since 3.1.0
    9999             *
    100              * @param array $all An array of WP_Theme objects to display in the list table.
     100             * @param WP_Theme[] $all Array of WP_Theme objects to display in the list table.
    101101             */
    102102            'all'      => apply_filters( 'all_themes', wp_get_themes() ),
     
    507507         * @since 2.8.0
    508508         *
    509          * @param array    $actions An array of action links.
     509         * @param string[] $actions An array of action links.
    510510         * @param WP_Theme $theme   The current WP_Theme object.
    511511         * @param string   $context Status of the theme, one of 'all', 'enabled', or 'disabled'.
     
    523523         * @since 3.1.0
    524524         *
    525          * @param array    $actions An array of action links.
     525         * @param string[] $actions An array of action links.
    526526         * @param WP_Theme $theme   The current WP_Theme object.
    527527         * @param string   $context Status of the theme, one of 'all', 'enabled', or 'disabled'.
     
    588588         * @since 3.1.0
    589589         *
    590          * @param array    $theme_meta An array of the theme's metadata,
     590         * @param string[] $theme_meta An array of the theme's metadata,
    591591         *                             including the version, author, and
    592592         *                             theme URI.
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r42343 r42871  
    179179         * @since MU (3.0.0)
    180180         *
    181          * @param array $users_columns An array of user columns. Default 'cb', 'username',
    182          *                             'name', 'email', 'registered', 'blogs'.
     181         * @param string[] $users_columns An array of user columns. Default 'cb', 'username',
     182         *                                'name', 'email', 'registered', 'blogs'.
    183183         */
    184184        return apply_filters( 'wpmu_users_columns', $users_columns );
     
    369369             * @since 3.1.0
    370370             *
    371              * @param array $actions     An array of action links to be displayed.
    372              *                           Default 'Edit', 'View'.
    373              * @param int   $userblog_id The site ID.
     371             * @param string[] $actions     An array of action links to be displayed. Default 'Edit', 'View'.
     372             * @param int      $userblog_id The site ID.
    374373             */
    375374            $actions = apply_filters( 'ms_user_list_site_actions', $actions, $val->userblog_id );
     
    466465         * @since 3.2.0
    467466         *
    468          * @param array   $actions An array of action links to be displayed.
    469          *                         Default 'Edit', 'Delete'.
    470          * @param WP_User $user    WP_User object.
     467         * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'Delete'.
     468         * @param WP_User  $user    WP_User object.
    471469         */
    472470        $actions = apply_filters( 'ms_user_row_actions', $actions, $user );
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r42829 r42871  
    122122         * @since 2.7.0
    123123         *
    124          * @param array $tabs The tabs shown on the Plugin Install screen. Defaults include 'featured', 'popular',
    125          *                    'recommended', 'favorites', and 'upload'.
     124         * @param string[] $tabs The tabs shown on the Plugin Install screen. Defaults include 'featured', 'popular',
     125         *                      'recommended', 'favorites', and 'upload'.
    126126         */
    127127        $tabs = apply_filters( 'install_plugins_tabs', $tabs );
     
    132132         * @since 2.7.0
    133133         *
    134          * @param array $nonmenu_tabs The tabs that don't have a Menu item on the Plugin Install screen.
     134         * @param string[] $nonmenu_tabs The tabs that don't have a menu item on the Plugin Install screen.
    135135         */
    136136        $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs );
     
    603603             * @since 2.7.0
    604604             *
    605              * @param array $action_links An array of plugin action hyperlinks. Defaults are links to Details and Install Now.
    606              * @param array $plugin       The plugin currently being listed.
     605             * @param string[] $action_links An array of plugin action links. Defaults are links to Details and Install Now.
     606             * @param array    $plugin       The plugin currently being listed.
    607607             */
    608608            $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin );
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r42787 r42871  
    671671             * @since 3.1.0
    672672             *
    673              * @param array $actions     An array of plugin action links. By default this can include 'activate',
    674              *                            'deactivate', and 'delete'.
    675              * @param string $plugin_file Path to the plugin file relative to the plugins directory.
    676              * @param array  $plugin_data An array of plugin data. See `get_plugin_data()`.
    677              * @param string $context     The plugin context. By default this can include 'all', 'active', 'inactive',
    678              *                            'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
     673             * @param string[] $actions     An array of plugin action links. By default this can include 'activate',
     674             *                              'deactivate', and 'delete'.
     675             * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
     676             * @param array    $plugin_data An array of plugin data. See `get_plugin_data()`.
     677             * @param string   $context     The plugin context. By default this can include 'all', 'active', 'inactive',
     678             *                              'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
    679679             */
    680680            $actions = apply_filters( 'network_admin_plugin_action_links', $actions, $plugin_file, $plugin_data, $context );
     
    688688             * @since 3.1.0
    689689             *
    690              * @param array $actions     An array of plugin action links. By default this can include 'activate',
    691              *                            'deactivate', and 'delete'.
    692              * @param string $plugin_file Path to the plugin file relative to the plugins directory.
    693              * @param array  $plugin_data An array of plugin data. See `get_plugin_data()`.
    694              * @param string $context     The plugin context. By default this can include 'all', 'active', 'inactive',
    695              *                            'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
     690             * @param string[] $actions     An array of plugin action links. By default this can include 'activate',
     691             *                              'deactivate', and 'delete'.
     692             * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
     693             * @param array    $plugin_data An array of plugin data. See `get_plugin_data()`.
     694             * @param string   $context     The plugin context. By default this can include 'all', 'active', 'inactive',
     695             *                              'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
    696696             */
    697697            $actions = apply_filters( "network_admin_plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context );
     
    706706             * @since 4.9.0 The 'Edit' link was removed from the list of action links.
    707707             *
    708              * @param array $actions     An array of plugin action links. By default this can include 'activate',
    709              *                            'deactivate', and 'delete'. With Multisite active this can also include
    710              *                            'network_active' and 'network_only' items.
    711              * @param string $plugin_file Path to the plugin file relative to the plugins directory.
    712              * @param array  $plugin_data An array of plugin data. See `get_plugin_data()`.
    713              * @param string $context     The plugin context. By default this can include 'all', 'active', 'inactive',
    714              *                            'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
     708             * @param string[] $actions     An array of plugin action links. By default this can include 'activate',
     709             *                              'deactivate', and 'delete'. With Multisite active this can also include
     710             *                              'network_active' and 'network_only' items.
     711             * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
     712             * @param array    $plugin_data An array of plugin data. See `get_plugin_data()`.
     713             * @param string   $context     The plugin context. By default this can include 'all', 'active', 'inactive',
     714             *                              'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
    715715             */
    716716            $actions = apply_filters( 'plugin_action_links', $actions, $plugin_file, $plugin_data, $context );
     
    725725             * @since 4.9.0 The 'Edit' link was removed from the list of action links.
    726726             *
    727              * @param array $actions     An array of plugin action links. By default this can include 'activate',
    728              *                            'deactivate', and 'delete'. With Multisite active this can also include
    729              *                            'network_active' and 'network_only' items.
    730              * @param string $plugin_file Path to the plugin file relative to the plugins directory.
    731              * @param array  $plugin_data An array of plugin data. See `get_plugin_data()`.
    732              * @param string $context     The plugin context. By default this can include 'all', 'active', 'inactive',
    733              *                            'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
     727             * @param string[] $actions     An array of plugin action links. By default this can include 'activate',
     728             *                              'deactivate', and 'delete'. With Multisite active this can also include
     729             *                              'network_active' and 'network_only' items.
     730             * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
     731             * @param array    $plugin_data An array of plugin data. See `get_plugin_data()`.
     732             * @param string   $context     The plugin context. By default this can include 'all', 'active', 'inactive',
     733             *                              'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
    734734             */
    735735            $actions = apply_filters( "plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context );
     
    825825                     * @since 2.8.0
    826826                     *
    827                      * @param array $plugin_meta An array of the plugin's metadata,
    828                      *                            including the version, author,
    829                      *                            author URI, and plugin URI.
    830                      * @param string $plugin_file Path to the plugin file relative to the plugins directory.
    831                      * @param array  $plugin_data An array of plugin data.
    832                      * @param string $status      Status of the plugin. Defaults are 'All', 'Active',
    833                      *                            'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use',
    834                      *                            'Drop-ins', 'Search'.
     827                     * @param string[] $plugin_meta An array of the plugin's metadata,
     828                     *                              including the version, author,
     829                     *                              author URI, and plugin URI.
     830                     * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
     831                     * @param array    $plugin_data An array of plugin data.
     832                     * @param string   $status      Status of the plugin. Defaults are 'All', 'Active',
     833                     *                              'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use',
     834                     *                              'Drop-ins', 'Search'.
    835835                     */
    836836                    $plugin_meta = apply_filters( 'plugin_row_meta', $plugin_meta, $plugin_file, $plugin_data, $status );
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r42725 r42871  
    234234     * @since 4.4.0
    235235     *
    236      * @param array  $args URL parameters for the link.
    237      * @param string $label Link text.
    238      * @param string $class Optional. Class attribute. Default empty string.
     236     * @param string[] $args  Associative array of URL parameters for the link.
     237     * @param string   $label Link text.
     238     * @param string   $class Optional. Class attribute. Default empty string.
    239239     * @return string The formatted link string.
    240240     */
     
    558558         * @since 3.5.0
    559559         *
    560          * @param array  $taxonomies Array of taxonomies to show columns for.
    561          * @param string $post_type  The post type.
     560         * @param string[] $taxonomies Array of taxonomy names to show columns for.
     561         * @param string   $post_type  The post type.
    562562         */
    563563        $taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type );
     
    590590             * @since 2.5.0
    591591             *
    592              * @param array $post_columns An array of column names.
     592             * @param string[] $post_columns An associative array of column headings.
    593593             */
    594594            $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns );
     
    600600             * @since 1.5.0
    601601             *
    602              * @param array  $posts_columns An array of column names.
    603              * @param string $post_type     The post type slug.
     602             * @param string[] $post_columns An associative array of column headings.
     603             * @param string   $post_type    The post type slug.
    604604             */
    605605            $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );
     
    613613         * @since 3.0.0
    614614         *
    615          * @param array $post_columns An array of column names.
     615         * @param string[] $post_columns An associative array of column headings.
    616616         */
    617617        return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns );
     
    13361336             * @since 2.8.0
    13371337             *
    1338              * @param array $actions An array of row action links. Defaults are
    1339              *                         'Edit', 'Quick Edit', 'Restore', 'Trash',
    1340              *                         'Delete Permanently', 'Preview', and 'View'.
    1341              * @param WP_Post $post The post object.
     1338             * @param string[] $actions An array of row action links. Defaults are
     1339             *                          'Edit', 'Quick Edit', 'Restore', 'Trash',
     1340             *                          'Delete Permanently', 'Preview', and 'View'.
     1341             * @param WP_Post  $post    The post object.
    13421342             */
    13431343            $actions = apply_filters( 'page_row_actions', $actions, $post );
     
    13511351             * @since 2.8.0
    13521352             *
    1353              * @param array $actions An array of row action links. Defaults are
    1354              *                         'Edit', 'Quick Edit', 'Restore', 'Trash',
    1355              *                         'Delete Permanently', 'Preview', and 'View'.
    1356              * @param WP_Post $post The post object.
     1353             * @param string[] $actions An array of row action links. Defaults are
     1354             *                          'Edit', 'Quick Edit', 'Restore', 'Trash',
     1355             *                          'Delete Permanently', 'Preview', and 'View'.
     1356             * @param WP_Post  $post    The post object.
    13571357             */
    13581358            $actions = apply_filters( 'post_row_actions', $actions, $post );
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r42790 r42871  
    12231223         * @since 4.4.0
    12241224         *
    1225          * @param array $view_mode_post_types Array of post types that can change view modes.
    1226          *                                    Default non-hierarchical post types with show_ui on.
     1225         * @param string[] $view_mode_post_types Array of post types that can change view modes.
     1226         *                                       Default non-hierarchical post types with show_ui on.
    12271227         */
    12281228        $view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types );
  • trunk/src/wp-admin/includes/class-wp-site-icon.php

    r42343 r42871  
    3535     *
    3636     * @since 4.3.0
    37      * @var array
     37     * @var int[]
    3838     */
    3939    public $site_icon_sizes = array(
     
    132132
    133133    /**
    134      * Adds additional sizes to be made when creating the site_icon images.
    135      *
    136      * @since 4.3.0
    137      *
    138      * @param array $sizes List of additional sizes.
    139      * @return array Additional image sizes.
     134     * Adds additional sizes to be made when creating the site icon images.
     135     *
     136     * @since 4.3.0
     137     *
     138     * @param array[] $sizes Array of arrays containing information for additional sizes.
     139     * @return array[] Array of arrays containing additional image sizes.
    140140     */
    141141    public function additional_sizes( $sizes = array() ) {
     
    147147         * @since 4.3.0
    148148         *
    149          * @param array $site_icon_sizes Sizes available for the Site Icon.
     149         * @param int[] $site_icon_sizes Array of sizes available for the Site Icon.
    150150         */
    151151        $this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );
     
    180180     * @since 4.3.0
    181181     *
    182      * @param array $sizes List of image sizes.
    183      * @return array List of intermediate image sizes.
     182     * @param string[] $sizes Array of image size names.
     183     * @return string[] Array of image size names.
    184184     */
    185185    public function intermediate_image_sizes( $sizes = array() ) {
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r42727 r42871  
    487487         * @deprecated 3.0.0 Use {$taxonomy}_row_actions instead.
    488488         *
    489          * @param array $actions An array of action links to be displayed. Default
    490          *                        'Edit', 'Quick Edit', 'Delete', and 'View'.
    491          * @param WP_Term $tag    Term object.
     489         * @param string[] $actions An array of action links to be displayed. Default
     490         *                          'Edit', 'Quick Edit', 'Delete', and 'View'.
     491         * @param WP_Term  $tag     Term object.
    492492         */
    493493        $actions = apply_filters( 'tag_row_actions', $actions, $tag );
     
    500500         * @since 3.0.0
    501501         *
    502          * @param array $actions An array of action links to be displayed. Default
    503          *                        'Edit', 'Quick Edit', 'Delete', and 'View'.
    504          * @param WP_Term $tag    Term object.
     502         * @param string[] $actions An array of action links to be displayed. Default
     503         *                          'Edit', 'Quick Edit', 'Delete', and 'View'.
     504         * @param WP_Term  $tag     Term object.
    505505         */
    506506        $actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag );
  • trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php

    r42827 r42871  
    7777         * @since 2.8.0
    7878         *
    79          * @param array $nonmenu_tabs The tabs that don't have a menu item on
    80          *                            the Install Themes screen.
     79         * @param string[] $nonmenu_tabs The tabs that don't have a menu item on
     80         *                               the Install Themes screen.
    8181         */
    8282        $nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );
     
    335335         * @since 3.4.0
    336336         *
    337          * @param array    $actions An array of theme action hyperlinks. Defaults are
     337         * @param string[] $actions An array of theme action links. Defaults are
    338338         *                          links to Install Now, Preview, and Details.
    339339         * @param WP_Theme $theme   Theme object.
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r42343 r42871  
    453453             * @since 2.8.0
    454454             *
    455              * @param array  $actions     An array of action links to be displayed.
    456              *                             Default 'Edit', 'Delete' for single site, and
    457              *                             'Edit', 'Remove' for Multisite.
    458              * @param WP_User $user_object WP_User object for the currently-listed user.
     455             * @param string[] $actions     An array of action links to be displayed.
     456             *                              Default 'Edit', 'Delete' for single site, and
     457             *                              'Edit', 'Remove' for Multisite.
     458             * @param WP_User  $user_object WP_User object for the currently listed user.
    459459             */
    460460            $actions = apply_filters( 'user_row_actions', $actions, $user_object );
     
    572572     *
    573573     * @param WP_User $user_object The WP_User object.
    574      * @return array An array of user roles.
     574     * @return string[] An array of user roles.
    575575     */
    576576    protected function get_role_list( $user_object ) {
     
    594594         * @since 4.4.0
    595595         *
    596          * @param array  $role_list   An array of user roles.
    597          * @param WP_User $user_object A WP_User object.
     596         * @param string[] $role_list   An array of user roles.
     597         * @param WP_User  $user_object A WP_User object.
    598598         */
    599599        return apply_filters( 'get_role_list', $role_list, $user_object );
  • 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' ) {
  • trunk/src/wp-includes/taxonomy.php

    r42843 r42871  
    179179 *                         one element from the array needs to match; 'and' means all elements must match.
    180180 *                         Default 'and'.
    181  * @return array A list of taxonomy names or objects.
     181 * @return string[]|WP_Taxonomy[] An array of taxonomy names or objects.
    182182 */
    183183function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' ) {
  • trunk/src/wp-includes/theme.php

    r42827 r42871  
    2929 *                          Defaults to 0, synonymous for the current blog.
    3030 * }
    31  * @return array Array of WP_Theme objects.
     31 * @return WP_Theme[] Array of WP_Theme objects.
    3232 */
    3333function wp_get_themes( $args = array() ) {
  • trunk/src/wp-includes/update.php

    r42827 r42871  
    601601 * @since 3.7.0
    602602 *
    603  * @return array
     603 * @return object[] Array of translation objects that have available updates.
    604604 */
    605605function wp_get_translation_updates() {
Note: See TracChangeset for help on using the changeset viewer.