/*
Theme Name: yaka
Theme URI: https://www.yaka.cn
Author:  cc
Author URI: 
Description: 
Version: 12.1.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: https://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: https://themeforest.net/licenses/regular_extended
License URI: License.txt
Tags: 
Text Domain: the7mk2
*/

.wp-caption-text,
.sticky,
.gallery-caption,
.bypostauthor,
.main-page {}

//调整 wp-includes/http.php 超时限制值以解决服务器响应缓慢的问题
add_filter( 'http_request_args', 'bal_http_request_args', 100, 1 );
function bal_http_request_args( $r ) //called on line 237
{
    $r['timeout'] = 15; //单位：秒
    return $r;
}

add_action( 'http_api_curl', 'bal_http_api_curl', 100, 1 );
function bal_http_api_curl( $handle ) //called on line 1315
{
    curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 15 );
    curl_setopt( $handle, CURLOPT_TIMEOUT, 15 );
}