Skip to content

Add a couple APIs to return site home url and timezone info#1147

Merged
crazytonyli merged 1 commit intotrunkfrom
task/add-more-site-info-api
Feb 4, 2026
Merged

Add a couple APIs to return site home url and timezone info#1147
crazytonyli merged 1 commit intotrunkfrom
task/add-more-site-info-api

Conversation

@crazytonyli
Copy link
Contributor

Relates to wordpress-mobile/WordPress-iOS#25183. These info will be used to populate the Blog.options in the app.

@crazytonyli crazytonyli requested a review from jkmassel February 4, 2026 07:42
}

/// Returns the site home URL as a string.
pub fn home_url_string(&self) -> String {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it would be worthwhile to have a ParsedUrl variant of this that's guaranteed to be a valid URL?

Not a blocker, just for your consideration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's okay both ways. For the specific case of how I plan to use the new API in the app, I don't plan to parse it: the original value is stored and they will be parsed at different places where it's used.

@crazytonyli crazytonyli merged commit 0afedd9 into trunk Feb 4, 2026
23 checks passed
@crazytonyli crazytonyli deleted the task/add-more-site-info-api branch February 4, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants