Hello @w33zy,
interestingly, this happens when I call another plugin short code – Link Library. Never seen this happen in other circumstances.
In my page https://genussfaktor.at/service/links/ I call Link Library by short code [link-library settings=”1″].
I’m not familiar with the internals of wordpress, so I can’t tell why this is connected to the preg_match() in your code… e.g. how come this error stems from wp-admin when its the front page not the admin?
When I leave out that short code, the warning does not appear. On the side of preg_amtch it seems clear it does not take and array as second parameter.
The array is returned by $wp_query->query[‘orderby’] – when i change to $wp_query->query[‘orderby’][0] of course it’s gone.
Regars
Harald