Skip to content

Commit

Permalink
correct variable in call to guessMIMEType
Browse files Browse the repository at this point in the history
  • Loading branch information
duncantl committed Nov 18, 2023
1 parent ce6d2d6 commit ba731d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion man/post.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ newCategory(category, description = "???", slug = category, parent = 0L,
.server = getServerURL())
publishPost(postid, login = getOption("WordpressLogin", stop("need a login and password")),
..., .server = getServerURL())
uploadFile(what, type = guessMIMEType(type), blogid = 0L,
uploadFile(what, type = guessMIMEType(what), blogid = 0L,
login = getOption("WordpressLogin", stop("need a login and password")),
remoteName = basename(what), overwrite = TRUE, ..., .server = getServerURL() )
newPage(content, publish = TRUE, blogid = 0,
Expand Down

0 comments on commit ba731d4

Please sign in to comment.