Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/vpostal/vpostal.ru/docs/wp-content/themes/vpostal/functions.php:171 Stack trace: #0 /home/vpostal/vpostal.ru/docs/wp-includes/class-wp-hook.php(326): acf_location_rules_match_category(false, Array, Array) #1 /home/vpostal/vpostal.ru/docs/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array) #2 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/locations.php(270): apply_filters('acf/location/ru...', false, Array, Array, Array) #3 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php(188): acf_match_location_rule(Array, Array, Array) #4 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/post-types/class-acf-field-group.php(163): acf_get_field_group_visibility(Array, Array) #5 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/class-acf-internal-post-type.php(376): ACF_Field_Group->filter_posts(Array, Array) #6 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/acf-internal-post-type-functions.php(153): ACF_Internal_Post_Type->get_posts(Array) #7 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php(118): acf_get_internal_post_type_posts('acf-field-group', Array) #8 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/rest-api/class-acf-rest-api.php(507): acf_get_field_groups(Array) #9 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/rest-api/class-acf-rest-api.php(122): ACF_Rest_Api->get_field_groups_by_id('49', 'post', 'post') #10 /home/vpostal/vpostal.ru/docs/wp-content/plugins/advanced-custom-fields-pro/includes/rest-api/class-acf-rest-api.php(83): ACF_Rest_Api->get_schema() #11 /home/vpostal/vpostal.ru/docs/wp-includes/class-wp-hook.php(324): ACF_Rest_Api->register_field(Object(WP_REST_Server)) #12 /home/vpostal/vpostal.ru/docs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #13 /home/vpostal/vpostal.ru/docs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /home/vpostal/vpostal.ru/docs/wp-includes/rest-api.php(618): do_action('rest_api_init', Object(WP_REST_Server)) #15 /home/vpostal/vpostal.ru/docs/wp-includes/rest-api.php(442): rest_get_server() #16 /home/vpostal/vpostal.ru/docs/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP)) #17 /home/vpostal/vpostal.ru/docs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #18 /home/vpostal/vpostal.ru/docs/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #19 /home/vpostal/vpostal.ru/docs/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array) #20 /home/vpostal/vpostal.ru/docs/wp-includes/class-wp.php(813): WP->parse_request('') #21 /home/vpostal/vpostal.ru/docs/wp-includes/functions.php(1336): WP->main('') #22 /home/vpostal/vpostal.ru/docs/wp-blog-header.php(16): wp() #23 /home/vpostal/vpostal.ru/docs/index.php(17): require('/home/vpostal/v...') #24 {main} thrown in /home/vpostal/vpostal.ru/docs/wp-content/themes/vpostal/functions.php on line 171