Proplem about PHP Notice: Only variables should be passed by reference
-
Hi,
I have installed the plugin optiontree on php 7 and i have problem about PHP Notice: Only variables should be passed by reference in ot-loader.php on line 326
In my opinion, next update should replace$path = ltrim( end( @explode( get_stylesheet(), str_replace( ‘\\’, ‘/’, dirname( __FILE__ ) ) ) ), ‘/’ );
.
.
to
.
.
$path_base = explode( get_stylesheet(), str_replace( ‘\\’, ‘/’, dirname( __FILE__ ) ) );
$path = ltrim( end( $path_base ), ‘/’ );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Proplem about PHP Notice: Only variables should be passed by reference’ is closed to new replies.