bp_ps_get_request (美元的类型,美元的形式)
获取BuddyBoss配置文件搜索请求。
描述
源
文件:bp-core /概要搜索/ bps-search.php
函数bp_ps_get_request ($type, $form=0) {$current = bp_ps_current_page ();$cookie = apply_filters ('bp_ps_cookie_name', 'bp_ps_request');$request = isset ($_REQUEST[BP_PS_FORM])?$ _REQUEST:数组();if (empty ($request) && isset ($_COOKIE[$cookie])) parse_str (stripslashes ($_COOKIE[$cookie]), $request); / / $请求$cookie = apply_filters ('bp_ps_cookie_name', 'bp_ps_filters');$filters = bp_ps_hidden_filters ();if (empty ($ cookie [$cookie]) && isset ($_COOKIE[$cookie])) parse_str(条带斜杠($_COOKIE[$cookie]), $filters);switch ($type) {case 'form': if (isset ($request[BP_PS_FORM]) && $request[BP_PS_FORM] != $form) $request = array ();打破; case 'filters': if (isset ($request['bp_ps_directory']) && $request['bp_ps_directory'] != $current) $request = array (); break; case 'search': if (isset ($request['bp_ps_directory']) && $request['bp_ps_directory'] != $current) $request = array (); if (isset ($filters['bp_ps_directory']) && $filters['bp_ps_directory'] != $current) $filters = array (); foreach ($filters as $key => $value) $request[$key] = $value; break; } return apply_filters ('bp_ps_request', $request, $type, $form); }
更新日志
版本 | 描述 |
---|---|
BuddyBoss 1.0.0 | 介绍了。 |