From 633d1902b547e0b82e0eadc4c4fcef178180f296 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: https://develop.svn.wordpress.org/trunk@23357 602fd350-edb4-49c9-b593-d223f7449a82 --- 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) {