Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter smls

    (@smls)

    I modified the file wp-content\plugins\front-editor\inc\SavePost.php in the function upload_image() from

    if ( isset( $upload['error'] ) )

    to

    if ( ! empty( $upload['error'] ) )

    and now images can be added successfully.

    Thread Starter smls

    (@smls)

    Я создаю тег тест, указываю слаг тест (кириллицей) и отправляю пост запрос

    $ch = curl_init("https://site.ru/tag/%d1%82%d0%b5%d1%81%d1%82/");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, array());
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    
    $response = curl_exec($ch);
    $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    echo $httpCode;
    curl_close($ch);

    в ответе 404 код. Только с терминами эта ошибка.
    Попробовал на нескольких сайтах. На некоторых есть ошибка, на каких-то нет. Сервер один.
    Зависимости не пока не выявил.

    Thread Starter smls

    (@smls)

    Thank you, I understood you. We’ll have to use a workaround.

    function consoleInterceptor(data) {
    if (data.includes("[CHATBOT STREAM] END:")) {
    // Perform the necessary action
    }
    }
    
    const originalConsoleLog = console.log;
    console.log = function (...args) {
    originalConsoleLog.apply(this, args);
    consoleInterceptor(args.join(" "));
    };
    Thread Starter smls

    (@smls)

    Я имел ввиду атрибут pattern что-бы регулярным выражением проверять номер, в vdz_call_back_view.php его вставил.

    Thread Starter smls

    (@smls)

    Добрый день, я уточнил, спам выражался в том что можно ввести в номер телефона одни нули. Задача свелась к поиску куда можно вставить паттерн для инпута.

Viewing 5 replies - 1 through 5 (of 5 total)