Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@19072 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d8db24fafa
commit
f8ed38f26c
@ -215,7 +215,8 @@ if ( apply_filters('custom_menu_order', false) ) {
|
||||
}
|
||||
|
||||
// Remove the last menu item if it is a separator.
|
||||
$last_menu_key = array_pop( $last_menu_key = array_keys( $menu ) );
|
||||
$last_menu_key = array_keys( $menu );
|
||||
$last_menu_key = array_pop( $last_menu_key );
|
||||
if ( !empty( $menu ) && 'wp-menu-separator' == $menu[ $last_menu_key ][ 4 ] )
|
||||
unset( $menu[ $last_menu_key ] );
|
||||
unset( $last_menu_key );
|
||||
|
@ -195,7 +195,8 @@ class MO extends Gettext_Translations {
|
||||
$translation = $reader->substr( $strings, $t['pos'], $t['length'] );
|
||||
|
||||
if ('' === $original) {
|
||||
$this->set_headers($this->make_headers($translation));
|
||||
$headers = $this->make_headers($translation);
|
||||
$this->set_headers($headers);
|
||||
} else {
|
||||
$entry = &$this->make_entry($original, $translation);
|
||||
$this->entries[$entry->key()] = &$entry;
|
||||
|
Loading…
Reference in New Issue
Block a user