php - Wordpress error : Fatal error: Can't use function return value in write context in -


the whole error:

fatal error: can't use function return value in write context in /www/.../wp-content/themes/.../includes/meta.page.php on line 178

'desc' => esc_html__('default value on theme options: ', 'consultaid') .  ((isset(themeton_std::getopt('social_sharevisibility')[$post_type.'s']) &&  themeton_std::getopt('social_sharevisibility')[$post_type.'s'] == '0') ?  esc_attr__('hidden', 'consultaid') : esc_attr__('show', 'consultaid')), 

try taking call static class out of isset check. set variable use in isset() function.

$var = themeton_std::getopt('social_sharevisibility')[$post_type.'s'];  'desc' => esc_html__('default value on theme options: ', 'consultaid') .  ((isset($var) && themeton_std::getopt('social_sharevisibility')[$post_type.'s'] == '0') ?   esc_attr__('hidden', 'consultaid') : esc_attr__('show', 'consultaid')), 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -