We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Blog.restApiRootURL
1 parent 6af4f4f commit 3cf9c72Copy full SHA for 3cf9c72
WordPress/Classes/ViewRelated/NewGutenberg/NewGutenbergViewController.swift
@@ -842,7 +842,7 @@ extension NewGutenbergViewController {
842
843
extension EditorConfiguration {
844
init(blog: Blog) {
845
- let selfHostedApiUrl = blog.url(withPath: "wp-json/")
+ let selfHostedApiUrl = blog.restApiRootURL ?? blog.url(withPath: "wp-json/")
846
let isWPComSite = blog.isHostedAtWPcom || blog.isAtomic()
847
let siteApiRoot = blog.isAccessibleThroughWPCom() && isWPComSite ? blog.wordPressComRestApi?.baseURL.absoluteString : selfHostedApiUrl
848
let siteId = blog.dotComID?.stringValue
0 commit comments