bp_core_admin_settings_save ()
拯救我们的环境。
描述
源
文件:bp-core / admin / bp-core-admin-settings.php
函数bp_core_admin_settings_save() {global $wp_settings_fields;如果(收取($ _GET['页'])& &“bp-integratio乐动体育网站怎样ns”= = $ _GET['页']& &收取($ _GET['标签'])& &“bp-compatibility”= = $ _GET['标签']& & !empty($_POST['submit']) {check_admin_referer('buddypress-options');//由于许多设置是用复选框保存的,因此当未选中时$_POST数组中没有值,我们循环遍历注册的设置。if (isset($wp_settings_fields['buddypress']) {foreach ((array) $wp_settings_fields['buddypress'] as $section => $settings) {foreach ($settings as $setting_name => $settings) {$value = isset($_POST[$setting_name]) ?$_POST[$setting_name]: ";Bp_update_option ($setting_name, $value);}} bp_core_redirect(add_query_arg(array('page' => 'bp-integr乐动体育网站怎样ations', 'tab' => 'bp-compatibility', 'updated' => 'true',), bp_get_admin_url('admin.php'));} }
更新日志
版本 | 描述 |
---|---|
1.6.0 | 介绍了。 |