Sowenak

Не работают get параметры в URL

Версия WordPress 4.4.5
Сайтkivigrioup.by
Плагины:
-All In One SEO Pack
-Breadcrumb NavXT
-Contact Form 7
-Google XML Sitemaps
-Meta Slider Lightbox
-RusToLat
-Wordpress Menufication
-WP Fastest Cache
Сама проблема
На сайте не работают гет параметры (без этого жить было можно, но сейчас планируем запускать контекст и для аналитики и utm меток будет нужно.) Проблема началась около года назад, но тогда ей не было придано должного значения. В тот период если меня не подводит память редактировался только файл function.php(его содержимое выложу ниже). Что примечательно get параметры не работают только после страниц, если дописать этот параметр после страницы в админке, или после любого изображения, то все нормально. Может кто сталкивался с такой проблемой или хотя бы сможет подсказать в каком направлении копать буду очень благодарен.
Код function.php

<?php
function change_mce_options($initArray) {

    $initArray['verify_html'] = false;
    $initArray['cleanup_on_startup'] = false;
    $initArray['cleanup'] = false;
    $initArray['forced_root_block'] = false;
    $initArray['validate_children'] = false;
    $initArray['remove_redundant_brs'] = false;
    $initArray['remove_linebreaks'] = false;
    $initArray['force_p_newlines'] = false;
    $initArray['force_br_newlines'] = false;
    $initArray['fix_table_elements'] = false;

    $initArray['entities'] = '160,nbsp,38,amp,60,lt,62,gt';

    return $initArray;
}

add_filter('tiny_mce_before_init', 'change_mce_options');

function fb_disable_feed() {
wp_redirect(get_option('siteurl'));
}

add_action('do_feed', 'fb_disable_feed', 1);
add_action('do_feed_rdf', 'fb_disable_feed', 1);
add_action('do_feed_rss', 'fb_disable_feed', 1);
add_action('do_feed_rss2', 'fb_disable_feed', 1);
add_action('do_feed_atom', 'fb_disable_feed', 1);

remove_action('wp_head','adjacent_posts_rel_link_wp_head');
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action('wp_head', 'wp_shortlink_wp_head');
remove_action('wp_head','rel_canonical');
function true_search_turn_off( $q, $e = true ) {
    if ( is_search() ) {
        $q->is_search = false;
        $q->query_vars[s] = false;
        $q->query[s] = false;    
        if ( $e == true ){
            $q->is_404 = true;
        }
    }
}
 
add_action( 'parse_query', 'true_search_turn_off' );
add_filter( 'get_search_form', create_function( '$a', "return null;" ) );


if (function_exists('add_theme_support')) {
    add_theme_support('menus');
}

add_filter( 'wp_nav_menu_objects', 'submenu_limit', 10, 2 );

function submenu_limit( $items, $args ) {

    if ( empty($args->submenu) )
        return $items;

    $parent_id = array_pop( wp_filter_object_list( $items, array( 'title' => $args->submenu ), 'and', 'ID' ) );
    $children  = submenu_get_children_ids( $parent_id, $items );

    foreach ( $items as $key => $item ) {

        if ( ! in_array( $item->ID, $children ) )
            unset($items[$key]);
    }

    return $items;
}

function submenu_get_children_ids( $id, $items ) {

    $ids = wp_filter_object_list( $items, array( 'menu_item_parent' => $id ), 'and', 'ID' );

    foreach ( $ids as $id ) {

        $ids = array_merge( $ids, submenu_get_children_ids( $id, $items ) );
    }

    return $ids;
}
add_filter('rest_enabled', '__return_false');
remove_action( 'xmlrpc_rsd_apis', 'rest_output_rsd' ); 
remove_action( 'wp_head', 'rest_output_link_wp_head', 10, 0 ); 
remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 ); 
remove_action( 'auth_cookie_malformed', 'rest_cookie_collect_status' ); 
remove_action( 'auth_cookie_expired', 'rest_cookie_collect_status' ); 
remove_action( 'auth_cookie_bad_username', 'rest_cookie_collect_status' ); 
remove_action( 'auth_cookie_bad_hash', 'rest_cookie_collect_status' ); 
remove_action( 'auth_cookie_valid', 'rest_cookie_collect_status' ); 
remove_filter( 'rest_authentication_errors', 'rest_cookie_check_errors', 100 );
remove_action( 'init', 'rest_api_init' ); 
remove_action( 'rest_api_init', 'rest_api_default_filters', 10, 1 ); 
remove_action( 'parse_request', 'rest_api_loaded' );
remove_action( 'rest_api_init', 'wp_oembed_register_route' ); 
remove_filter( 'rest_pre_serve_request', '_oembed_rest_pre_serve_request', 10, 4 );


?>

P.S. .htaccess полностью дефолтный

Anonymous
Отправить
Ответ на: