WordPress.org

Make WordPress Core

Changeset 44607


Ignore:
Timestamp:
01/15/2019 10:47:14 PM (14 months ago)
Author:
desrosj
Message:

Docs: Add missing documentation for _WP_Dependency::set_translations().

Introduced in [43859].

Props stazdotio.
Fixes #45550.

File:
1 edited

Legend:

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

    r44169 r44607  
    113113    }
    114114
     115    /**
     116     * Sets the translation domain for this dependency.
     117     *
     118     * @since 5.0.0
     119     *
     120     * @param string $domain The translation textdomain.
     121     * @param string $path   Optional. The full file path to the directory containing translation files.
     122     *
     123     * @return bool False if $domain is not a string, true otherwise.
     124     */
    115125    public function set_translations( $domain, $path = null ) {
    116126        if ( ! is_string( $domain ) ) {
Note: See TracChangeset for help on using the changeset viewer.