Skip to content

Commit 8b47455

Browse files
committed
Use _private_wordPressComRestApi in Blog+WordPressComRestAPI.swift to build WordPressData
1 parent 494481f commit 8b47455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPress/Classes/Models/Blog/Blog+WordPressComRestAPI.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public extension Blog {
1111
/// - Warning: this method doesn't know if a Jetpack blog has the JSON API disabled.
1212
@objc
1313
var wordPressComRestApi: WordPressComRestApi? {
14-
account?.wordPressComRestApi
14+
// FIXME: We are banking on the fact that by the time a consumer reads this, WPAccount will already have initialized its API client instance.
15+
account?._private_wordPressComRestApi
1516
}
1617

1718
/// Whether the blog is hosted on WordPress.com or connected through Jetpack.

0 commit comments

Comments
 (0)