Fix 'Only variable references should be returned by reference' notices
git-svn-id: https://develop.svn.wordpress.org/trunk@11083 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d77d35e502
commit
273df5a466
|
@ -342,10 +342,13 @@ function load_theme_textdomain($domain, $path = false) {
|
|||
* @param string $domain
|
||||
* @return object A Translation instance
|
||||
*/
|
||||
function get_translations_for_domain( $domain ) {
|
||||
function &get_translations_for_domain( $domain ) {
|
||||
global $l10n;
|
||||
$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