Quantcast
Channel: Topic Tag: mobile | WordPress.org
Viewing all articles
Browse latest Browse all 22088

bagofminds on "header.php call by reference php error in mobile minileven jetpack theme"

$
0
0

Hi

At jetpack/modules/minileven/theme/pub/minileven/header.php at line 32 the call to array_shift() expects a reference (giving an error writ large on mobile web sites) when passed array_values().
An easy fix is just to move the call to array_values() to a temporary variable before the call and pass the variable:
ie:

PROBLEM:
$menu_id = array_shift( array_values( $location ) ); // access the ID of the...etc...

SOLUTION:
$locs = array_values( $location );
$menu_id = array_shift( $locs ); // access the ID of the...etc...

Regards

Phil Basker

https://wordpress.org/plugins/jetpack/


Viewing all articles
Browse latest Browse all 22088

Trending Articles