WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method() public WP 5.2.0

Check if we can access files without providing credentials.

Это метод класса: WP_Site_Health_Auto_Updates{}

Хуков нет.

Возвращает

Массив. The test results.

Использование

$WP_Site_Health_Auto_Updates = new WP_Site_Health_Auto_Updates();
$WP_Site_Health_Auto_Updates->test_check_wp_filesystem_method();

Список изменений

С версии 5.2.0 Введена.

Код WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method() WP 5.5.1

wp-admin/includes/class-wp-site-health-auto-updates.php
<?php
function test_check_wp_filesystem_method() {
	$skin    = new Automatic_Upgrader_Skin;
	$success = $skin->request_filesystem_credentials( false, ABSPATH );

	if ( ! $success ) {
		$description  = __( 'Your installation of WordPress prompts for FTP credentials to perform updates.' );
		$description .= ' ' . __( '(Your site is performing updates over FTP due to file ownership. Talk to your hosting company.)' );

		return array(
			'description' => $description,
			'severity'    => 'fail',
		);
	}

	return array(
		'description' => __( "Your installation of WordPress doesn't require FTP credentials to perform updates." ),
		'severity'    => 'pass',
	);
}