mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fix 'Only variable references should be returned by reference' notices
git-svn-id: http://svn.automattic.com/wordpress/trunk@11083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
515487d39c
commit
a8513a8a37
@ -342,10 +342,13 @@ function load_theme_textdomain($domain, $path = false) {
|
|||||||
* @param string $domain
|
* @param string $domain
|
||||||
* @return object A Translation instance
|
* @return object A Translation instance
|
||||||
*/
|
*/
|
||||||
function get_translations_for_domain( $domain ) {
|
function &get_translations_for_domain( $domain ) {
|
||||||
global $l10n;
|
global $l10n;
|
||||||
$empty = &new Translations;
|
$empty = &new Translations;
|
||||||
return isset($l10n[$domain])? $l10n[$domain] : $empty;
|
if ( isset($l10n[$domain]) )
|
||||||
|
return $l10n[$domain];
|
||||||
|
else
|
||||||
|
return $empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user