-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blaze: Laying foundations for showing Advertising in menu for Jetpack sites #28088
Merged
Merged
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3fdf14e
Blaze: Show Advertising in menu for Jetpack sites
candy02058912 2e33029
changelog
candy02058912 65be6f5
Merge remote-tracking branch 'origin/trunk' into fix/jetpack-site-bla…
sdixon194 df16a81
Add unit test
candy02058912 d356548
Fix unit test
candy02058912 9e69f19
Add locale restriction for blaze
candy02058912 aa1d12f
Use user locale
candy02058912 fc8afbf
Update unit test and locale restrictions
candy02058912 267182a
Fix the connection manager code
candy02058912 1b380f9
Merge branch 'trunk' into fix/jetpack-site-blaze-menu
candy02058912 8dfe46b
Use blaze package
candy02058912 e23fcda
Merge branch 'trunk' into fix/jetpack-site-blaze-menu
candy02058912 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/plugins/jetpack/changelog/fix-jetpack-site-blaze-menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: enhancement | ||
|
||
Blaze: Show Advertising in menu for Jetpack sites |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we're currently looking at the user locale, not the site locale. The site locale may make more sense on the long run in my opinion, but maybe we want to keep using the user locale here as well, for consistency?
I believe you can get that info from
(new Automattic\Jetpack\Connection\Manager() )->get_connected_user_data()['user_locale']
This again highlights the need for a more accessible way to check if a site is eligible for Blaze, as I was mentioning here:
1386-gh-Automattic/dotcom-forge#issuecomment-1351085107
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me @jeherve! We'll start soon working on translating Blaze so we'll be able to remove this check altogether: p1673035073317699-slack-C04DZ725FEK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for mentioning this. It's super helpful 🙏