WPSEO_File_Size_Exception::unknown_error()public staticYoast 1.0

Gets the exception for when a unknown error occurs.

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

Хуков нет.

Возвращает

WPSEO_File_Size_Exception. Instance of the exception.

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

$result = WPSEO_File_Size_Exception::unknown_error( $file_url );
$file_url(строка) (обязательный)
The file url.

Код WPSEO_File_Size_Exception::unknown_error() Yoast 19.10

public static function unknown_error( $file_url ) {
	$message = sprintf(
		/* translators: %1$s expands to the requested url */
		__( 'Cannot get the size of %1$s because of unknown reasons.', 'wordpress-seo' ),
		$file_url
	);

	return new self( $message );
}