From 66c363de8f1bbd8981216b2352089007fc91f008 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 31 Jan 2013 01:01:19 +0000 Subject: [PATCH] Avoid 'Only variables should be passed by reference' warning. fixes #23232. git-svn-id: http://core.svn.wordpress.org/trunk@23357 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pomo/translations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/pomo/translations.php b/wp-includes/pomo/translations.php index 856e38aa10..106b6da164 100644 --- a/wp-includes/pomo/translations.php +++ b/wp-includes/pomo/translations.php @@ -57,7 +57,7 @@ class Translations { $this->headers[$header] = $value; } - function set_headers(&$headers) { + function set_headers($headers) { foreach($headers as $header => $value) { $this->set_header($header, $value); } @@ -242,7 +242,7 @@ class NOOP_Translations { function set_header($header, $value) { } - function set_headers(&$headers) { + function set_headers($headers) { } function get_header($header) {