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:
parent
fee925282b
commit
66c363de8f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue