最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - "WARNING: Found @$ in the file __ Possible error suppression is being used

programmeradmin1浏览0评论

In my theme custom admin page, i have some checkboxes. To check whether it is checked or not i am using following method.

function mega_menu_deactivater() {
    $mega_menu_condition = get_option( 'deactivate_mega_menu' );
    $checked = ( @$mega_menu_condition == 1 ? 'checked' : '' );
    echo '<input type="checkbox" id="deactivate_mega_menu" name="deactivate_mega_menu" value="1" '.$checked.'>';
}

This works fine. But when i run themecheck i get this Warning.

"WARNING: Found @$ in the file functions-admin.php. Possible error suppression is being used."

is there any alternative to overcome this warning.

发布评论

评论列表(0)

  1. 暂无评论