static function fetchUrlAuthed(&$website, $what, $params = null, $checkConstraints = false, $pForceFetch = false, $pRetryFailed = true) { if ($params == null) { $params = array(); } $params['optimize'] = get_option("mainwp_optimize") == 1 ? 1 : 0; $postdata = MainWPUtility::getPostDataAuthed($website, $what, $params); $information = MainWPUtility::fetchUrl($website, $website->url, $postdata, $checkConstraints, $pForceFetch, $website->verify_certificate, $pRetryFailed, $website->http_user, $website->http_pass); if (is_array($information) && isset($information['sync']) && !empty($information['sync'])) { MainWPSync::syncInformationArray($website, $information['sync']); unset($information['sync']); } return $information; }