Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:21:46 PM (5 years 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/l10n.php

    r46603 r46660  
    12981298 * @param string $dir A directory to search for language files.
    12991299 *                    Default WP_LANG_DIR.
    1300  * @return array An array of language codes or an empty array if no languages are present. Language codes are formed by stripping the .mo extension from the language file names.
     1300 * @return string[] An array of language codes or an empty array if no languages are present. Language codes are formed by stripping the .mo extension from the language file names.
    13011301 */
    13021302function get_available_languages( $dir = null ) {
     
    13191319     * @since 4.7.0
    13201320     *
    1321      * @param array $languages An array of available language codes.
    1322      * @param string $dir       The directory where the language files were found.
     1321     * @param string[] $languages An array of available language codes.
     1322     * @param string   $dir       The directory where the language files were found.
    13231323     */
    13241324    return apply_filters( 'get_available_languages', $languages, $dir );
     
    13871387 *
    13881388 * @param string $po_file Path to PO file.
    1389  * @return array PO file headers.
     1389 * @return string[] Array of PO file header values keyed by header name.
    13901390 */
    13911391function wp_get_pomo_file_data( $po_file ) {
Note: See TracChangeset for help on using the changeset viewer.