From 99bcf2719bbf7f6bbd0db46569853eeb3516548c Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Tue, 15 Jan 2019 22:47:14 +0000 Subject: [PATCH] Docs: Add missing documentation for `_WP_Dependency::set_translations()`. Introduced in [43859]. Props stazdotio. Fixes #45550. git-svn-id: https://develop.svn.wordpress.org/trunk@44607 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-dependency.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wp-includes/class-wp-dependency.php b/src/wp-includes/class-wp-dependency.php index cea4de5507..6934eb11d9 100644 --- a/src/wp-includes/class-wp-dependency.php +++ b/src/wp-includes/class-wp-dependency.php @@ -112,6 +112,16 @@ class _WP_Dependency { return true; } + /** + * Sets the translation domain for this dependency. + * + * @since 5.0.0 + * + * @param string $domain The translation textdomain. + * @param string $path Optional. The full file path to the directory containing translation files. + * + * @return bool False if $domain is not a string, true otherwise. + */ public function set_translations( $domain, $path = null ) { if ( ! is_string( $domain ) ) { return false;