From 4bb472ac32882db43580f68b8abebc3261751cd4 Mon Sep 17 00:00:00 2001 From: desrosj Date: Tue, 15 Jan 2019 22:48:51 +0000 Subject: [PATCH] Docs: Add missing documentation for `_WP_Dependency::set_translations()`. Introduced in [43859]. Props stazdotio. Fixes #45550. Built from https://develop.svn.wordpress.org/trunk@44607 git-svn-id: http://core.svn.wordpress.org/trunk@44438 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-dependency.php | 10 ++++++++++ wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-dependency.php b/wp-includes/class-wp-dependency.php index cea4de5507..6934eb11d9 100644 --- a/wp-includes/class-wp-dependency.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 14d3370988..ec16d1f816 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-beta1-44606'; +$wp_version = '5.1-beta1-44607'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.