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
This commit is contained in:
Sergey Biryukov 2013-01-31 01:01:19 +00:00
parent fee925282b
commit 66c363de8f

View File

@ -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) {