This commit is contained in:
Javier Casares 2026-08-08 08:53:08 +00:00
commit 7d3fc1969d
52 changed files with 1776 additions and 295 deletions

View file

@ -135,10 +135,10 @@ function robotstxt_docmd_get_repository_contents_recursive( string $owner, strin
$url = sprintf(
'https://api.github.com/repos/%s/%s/contents/%s?ref=%s',
$owner,
$repo,
$path,
$branch
rawurlencode( $owner ),
rawurlencode( $repo ),
rawurlencode( $path ),
rawurlencode( $branch )
);
$response = wp_remote_get(
@ -239,10 +239,10 @@ function robotstxt_docmd_get_file_content( string $owner, string $repo, string $
$url = sprintf(
'https://api.github.com/repos/%s/%s/contents/%s?ref=%s',
$owner,
$repo,
$file_path,
$branch
rawurlencode( $owner ),
rawurlencode( $repo ),
rawurlencode( $file_path ),
rawurlencode( $branch )
);
$response = wp_remote_get(