We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
主题版本号:2.8.13 WordPress版本:6.5.5 PHP版本:7.4 同样存在此问题,
Sorry, something went wrong.
修改 inc/fun/widget.php可以解决:
inc/fun/widget.php
$show_views = $instance['show_views'] ?? 'on'; $show_comments = $instance['show_comments'] ?? 'on'; $show_posts = $instance['show_posts'] ?? 'on'; $show_users = $instance['show_users'] ?? 'on';
修改为:
$show_views = isset($instance['show_views']) && $instance['show_views'] === 'on'; $show_comments = isset($instance['show_comments']) && $instance['show_comments'] === 'on'; $show_posts = isset($instance['show_posts']) && $instance['show_posts'] === 'on'; $show_users = isset($instance['show_users']) && $instance['show_users'] === 'on';
主题版本号:2.8.13 WordPress版本:6.5.5 PHP版本:7.4 同样存在此问题, 修改 inc/fun/widget.php可以解决: $show_views = $instance['show_views'] ?? 'on'; $show_comments = $instance['show_comments'] ?? 'on'; $show_posts = $instance['show_posts'] ?? 'on'; $show_users = $instance['show_users'] ?? 'on'; 修改为: $show_views = isset($instance['show_views']) && $instance['show_views'] === 'on'; $show_comments = isset($instance['show_comments']) && $instance['show_comments'] === 'on'; $show_posts = isset($instance['show_posts']) && $instance['show_posts'] === 'on'; $show_users = isset($instance['show_users']) && $instance['show_users'] === 'on';
$show_views = $instance['show_views'] ?? 'on'; $show_comments = $instance['show_comments'] ?? 'on'; $show_posts = $instance['show_posts'] ?? 'on'; $show_users = $instance['show_users'] ?? 'on'; 修改为:
实测有效,感谢!
No branches or pull requests
关于博主展示项开关失效,无论是否勾选都会全部显示
The text was updated successfully, but these errors were encountered: