Skip to content

Get rid of WordPress.getCurrentBlog calls in Stats - #1801

Merged
nbradbury merged 9 commits into
developfrom
issue/1787-get-rid-currentblog-stats
Sep 2, 2014
Merged

Get rid of WordPress.getCurrentBlog calls in Stats#1801
nbradbury merged 9 commits into
developfrom
issue/1787-get-rid-currentblog-stats

Conversation

@daniloercoli

Copy link
Copy Markdown
Contributor

Fix #1787

@daniloercoli daniloercoli added this to the 3.2 milestone Sep 1, 2014

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this needs a null check on currentBlog.

@nbradbury nbradbury self-assigned this Sep 1, 2014
@nbradbury

Copy link
Copy Markdown
Contributor

@daniloercoli I'm still seeing several places where getCurrentBlog() is called. Are these ok?

screen shot 2014-09-01 at 4 59 06 pm

@daniloercoli

Copy link
Copy Markdown
Contributor Author

@nbradbury - Those fragments above are not used in the app, and will not probably used soon. We kept them just for reference.

@daniloercoli

Copy link
Copy Markdown
Contributor Author

The call to getCurrentBlog() in onBlogChanged in required, since it's called when the user active switch from one blog to another.

@nbradbury

Copy link
Copy Markdown
Contributor

Looks good :shipit:

nbradbury added a commit that referenced this pull request Sep 2, 2014
…rentblog-stats

Get rid of WordPress.getCurrentBlog calls in Stats
@nbradbury
nbradbury merged commit 50bcf07 into develop Sep 2, 2014
@nbradbury
nbradbury deleted the issue/1787-get-rid-currentblog-stats branch September 2, 2014 13:18
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.

Allow Stats to be a fragment that will show stats for a given site id

2 participants