Skip to content
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

Merge fixes coming from 19.4 beta 2 #18136

Merged
merged 11 commits into from
Mar 15, 2022
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* [*] Weekly Roundup: We made some further changes to try and ensure that Weekly Roundup notifications are showing up for everybody who's enabled them [#18029]
* [*] Block editor: Autocorrected Headings no longer apply bold formatting if they weren't already bold. [#17844]
* [***] Block editor: Support for multiple color palettes [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4588]
* [**] User profiles: Fixed issue where the app wasn't displaying any of the device photos which the user had granted the app access to.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was done knowingly of the fact the new entry wouldn't have made it in the editorialized copy: #18132 (comment)


19.3
-----
Expand Down
10 changes: 10 additions & 0 deletions WordPress/Classes/Stores/StatsInsightsStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -463,18 +463,28 @@ private extension StatsInsightsStore {

transaction { state in
state.lastPostInsight = StatsRecord.insight(for: blog, type: .lastPostInsight).flatMap { StatsLastPostInsight(statsRecordValues: $0.recordValues) }
state.lastPostSummaryStatus = state.lastPostInsight == nil ? .error : .success
state.allTimeStats = StatsRecord.insight(for: blog, type: .allTimeStatsInsight).flatMap { StatsAllTimesInsight(statsRecordValues: $0.recordValues) }
state.allTimeStatus = state.allTimeStats == nil ? .error : .success
state.annualAndMostPopularTime = StatsRecord.insight(for: blog, type: .annualAndMostPopularTimes).flatMap { StatsAnnualAndMostPopularTimeInsight(statsRecordValues: $0.recordValues) }
state.annualAndMostPopularTimeStatus = state.annualAndMostPopularTime != nil ? .error : .success
state.publicizeFollowers = StatsRecord.insight(for: blog, type: .publicizeConnection).flatMap { StatsPublicizeInsight(statsRecordValues: $0.recordValues) }
state.publicizeFollowersStatus = state.publicizeFollowers == nil ? .error : .success
state.todaysStats = StatsRecord.insight(for: blog, type: .today).flatMap { StatsTodayInsight(statsRecordValues: $0.recordValues) }
state.todaysStatsStatus = state.todaysStats == nil ? .error : .success
state.postingActivity = StatsRecord.insight(for: blog, type: .streakInsight).flatMap { StatsPostingStreakInsight(statsRecordValues: $0.recordValues) }
state.postingActivityStatus = state.postingActivity == nil ? .error : .success
state.topTagsAndCategories = StatsRecord.insight(for: blog, type: .tagsAndCategories).flatMap { StatsTagsAndCategoriesInsight(statsRecordValues: $0.recordValues) }
state.tagsAndCategoriesStatus = state.topTagsAndCategories == nil ? .error : .success
state.topCommentsInsight = StatsRecord.insight(for: blog, type: .commentInsight).flatMap { StatsCommentsInsight(statsRecordValues: $0.recordValues) }
state.commentsInsightStatus = state.topCommentsInsight == nil ? .error : .success

let followersInsight = StatsRecord.insight(for: blog, type: .followers)

state.dotComFollowers = followersInsight.flatMap { StatsDotComFollowersInsight(statsRecordValues: $0.recordValues) }
state.dotComFollowersStatus = state.dotComFollowers == nil ? .error : .success
state.emailFollowers = followersInsight.flatMap { StatsEmailFollowersInsight(statsRecordValues: $0.recordValues) }
state.emailFollowersStatus = state.emailFollowers == nil ? .error : .success
}

DDLogInfo("Insights load from cache")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,7 @@ class GravatarPickerViewController: UIViewController, WPMediaPickerViewControlle

fileprivate var mediaPickerViewController: WPNavigationMediaPickerViewController!

fileprivate lazy var mediaPickerAssetDataSource: WPPHAssetDataSource? = {
let collectionsFetchResult = PHAssetCollection.fetchAssetCollections(with: .smartAlbum, subtype: .smartAlbumSelfPortraits, options: nil)
guard let assetCollection = collectionsFetchResult.firstObject else {
return nil
}

let dataSource = WPPHAssetDataSource()
dataSource.setSelectedGroup(PHAssetCollectionForWPMediaGroup(collection: assetCollection, mediaType: .image))
return dataSource
}()
fileprivate lazy var mediaPickerAssetDataSource = WPPHAssetDataSource()

// MARK: - View Lifecycle Methods

Expand Down
14 changes: 7 additions & 7 deletions WordPress/Resources/ar.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Translation-Revision-Date: 2022-02-24 11:54:08+0000 */
/* Translation-Revision-Date: 2022-03-11 18:54:08+0000 */
/* Plural-Forms: nplurals=6; plural=(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11 && n % 100 <= 99) ? 4 : 5)))); */
/* Generator: GlotPress/3.0.0-alpha.2 */
/* Language: ar */
Expand All @@ -7,7 +7,7 @@
"\nPlease send us an email to have your content cleared out." = "\nيرجى إرسال بريد إلكتروني إلينا لإزالة المحتوى الخاص بك.";

/* Notice shown on the Edit Comment view when the author is a registered user. */
"\nThis user is registered. Their name, web address, and email address cannot be edited." = "\nThis user is registered. Their name, web address, and email address cannot be edited.";
"\nThis user is registered. Their name, web address, and email address cannot be edited." = "\nتم تسجيل هذا المستخدم. يتعذر تحرير اسمه وعنوان الويب الخاص به وعنوان بريده الإلكتروني.";

/* Message of Delete Site confirmation alert; substitution is site's host. */
"\nTo confirm, please re-enter your site's address before deleting.\n\n" = "\nللتأكيد، يرجى إعادة إدخال عنوان موقعك قبل عملية حذفه.\n";
Expand Down Expand Up @@ -4068,7 +4068,7 @@ translators: Block name. %s: The localized block name */
"Loading Scan..." = "جاري تحميل الفحص...";

/* Displayed while a comment is being loaded. */
"Loading comment..." = "Loading comment...";
"Loading comment..." = "جارٍ تحميل التعليق...";

/* Shown while the app waits for the domain suggestions web service to return during the site creation process. */
"Loading domains" = "تحميل النطاقات";
Expand Down Expand Up @@ -5492,7 +5492,7 @@ translators: %s: Select control button label e.g. \"Button width\" */
"Posting regularly can help keep your readers engaged, and attract new visitors to your site." = "يمكن أن يساعد النشر بشكل منتظم على الحفاظ على انشغال القراء وجذب زائرين جدد إلى موقعك.";

/* Description for the card prompting the user to create a new post. */
"Posting regularly helps build your audience!" = "Posting regularly helps build your audience!";
"Posting regularly helps build your audience!" = "النشر بانتظام يساعد في بناء جمهورك!";

/* All Time Stats 'Posts' label
Noun. Title for posts button.
Expand All @@ -5511,7 +5511,7 @@ translators: %s: Select control button label e.g. \"Button width\" */
"Posts and Pages" = "المقالات والصفحات";

/* Description for the card prompting the user to create their first post. */
"Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!" = "Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!";
"Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!" = "تظهر التدوينات على صفحة مدونتك بترتيب زمني عكسي. حان الوقت لمشاركة أفكارك مع العالم!";

/* Title of the Posts Page Badge */
"Posts page" = "صفحة المقالات";
Expand Down Expand Up @@ -7462,7 +7462,7 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
"There was an error loading plugins" = "حدث خطأ عند تحميل الإضافات";

/* Text displayed when there is a failure loading a comment. */
"There was an error loading the comment." = "There was an error loading the comment.";
"There was an error loading the comment." = "حدث خطأ في أثناء تحميل التعليق.";

/* Text displayed when there is a failure loading the history. */
"There was an error loading the history" = "حدث خطأ أثناء تحميل السجلّ";
Expand Down Expand Up @@ -8695,7 +8695,7 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
"Weeks" = "أسابيع";

/* Post Signup Interstitial Title Text for Jetpack iOS */
"Welcome to Jetpack" = "Welcome to Jetpack";
"Welcome to Jetpack" = "مرحبًا بك في Jetpack";

/* Welcome message shown under Discover in the Reader just the 1st time the user sees it */
"Welcome to Reader. Discover millions of blogs at your fingertips." = "مرحبًا بك في القارئ. اكتشف ملايين المدونات في متناول يديك.";
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Resources/en-CA.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Translation-Revision-Date: 2022-02-28 02:34:49+0000 */
/* Translation-Revision-Date: 2022-03-14 23:56:27+0000 */
/* Plural-Forms: nplurals=2; plural=n != 1; */
/* Generator: GlotPress/3.0.0-alpha.2 */
/* Language: en_CA */
Expand Down
14 changes: 7 additions & 7 deletions WordPress/Resources/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Translation-Revision-Date: 2022-02-22 07:15:57+0000 */
/* Translation-Revision-Date: 2022-03-10 13:54:08+0000 */
/* Plural-Forms: nplurals=2; plural=n != 1; */
/* Generator: GlotPress/3.0.0-alpha.2 */
/* Language: es */
Expand All @@ -7,7 +7,7 @@
"\nPlease send us an email to have your content cleared out." = "\nPor favor, envíanos un correo electrónico para borrar tu contenido.";

/* Notice shown on the Edit Comment view when the author is a registered user. */
"\nThis user is registered. Their name, web address, and email address cannot be edited." = "\nThis user is registered. Their name, web address, and email address cannot be edited.";
"\nThis user is registered. Their name, web address, and email address cannot be edited." = "\nEste usuario está registrado. No se puede editar su nombre, ni la dirección de su sitio web o correo electrónico.";

/* Message of Delete Site confirmation alert; substitution is site's host. */
"\nTo confirm, please re-enter your site's address before deleting.\n\n" = "\nPara confirmar, por favor, vuelve a introducir la dirección del sitio antes de borrarlo.\n";
Expand Down Expand Up @@ -4068,7 +4068,7 @@ translators: Block name. %s: The localized block name */
"Loading Scan..." = "Cargando exploración...";

/* Displayed while a comment is being loaded. */
"Loading comment..." = "Loading comment...";
"Loading comment..." = "Cargando comentario...";

/* Shown while the app waits for the domain suggestions web service to return during the site creation process. */
"Loading domains" = "Cargando dominios";
Expand Down Expand Up @@ -5492,7 +5492,7 @@ translators: %s: Select control button label e.g. \"Button width\" */
"Posting regularly can help keep your readers engaged, and attract new visitors to your site." = "Publicar regularmente puede ayudar a que tus lectores permanezcan implicados, y a atraer nuevos visitantes a tu sitio.";

/* Description for the card prompting the user to create a new post. */
"Posting regularly helps build your audience!" = "Posting regularly helps build your audience!";
"Posting regularly helps build your audience!" = "¡Publicar regularmente ayuda a crear tu audiencia!";

/* All Time Stats 'Posts' label
Noun. Title for posts button.
Expand All @@ -5511,7 +5511,7 @@ translators: %s: Select control button label e.g. \"Button width\" */
"Posts and Pages" = "Entradas y páginas";

/* Description for the card prompting the user to create their first post. */
"Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!" = "Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!";
"Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!" = "Las entradas aparecen en la página de tu blog en orden cronológicamente inverso. ¡Es el momento de compartir tus ideas con el mundo!";

/* Title of the Posts Page Badge */
"Posts page" = "Página de entradas";
Expand Down Expand Up @@ -7462,7 +7462,7 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
"There was an error loading plugins" = "Hubo un error al cargar los plugins";

/* Text displayed when there is a failure loading a comment. */
"There was an error loading the comment." = "There was an error loading the comment.";
"There was an error loading the comment." = "Se ha producido un error al cargar el comentario.";

/* Text displayed when there is a failure loading the history. */
"There was an error loading the history" = "Hubo un error al cargar el historial";
Expand Down Expand Up @@ -8695,7 +8695,7 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
"Weeks" = "Semanas";

/* Post Signup Interstitial Title Text for Jetpack iOS */
"Welcome to Jetpack" = "Welcome to Jetpack";
"Welcome to Jetpack" = "Te damos la bienvenida a Jetpack";

/* Welcome message shown under Discover in the Reader just the 1st time the user sees it */
"Welcome to Reader. Discover millions of blogs at your fingertips." = "Bienvenido al Lector. Descubre millones de blogs a tu alcance.";
Expand Down
14 changes: 7 additions & 7 deletions WordPress/Resources/he.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Translation-Revision-Date: 2022-03-03 22:50:44+0000 */
/* Translation-Revision-Date: 2022-03-10 09:54:17+0000 */
/* Plural-Forms: nplurals=2; plural=n != 1; */
/* Generator: GlotPress/3.0.0-alpha.2 */
/* Language: he_IL */
Expand All @@ -7,7 +7,7 @@
"\nPlease send us an email to have your content cleared out." = "\nלמחיקת התוכן שלך יש לשלוח לנו אימייל.";

/* Notice shown on the Edit Comment view when the author is a registered user. */
"\nThis user is registered. Their name, web address, and email address cannot be edited." = "\nThis user is registered. Their name, web address, and email address cannot be edited.";
"\nThis user is registered. Their name, web address, and email address cannot be edited." = "\nהמשתמש הזה רשום. לא ניתן לערוך את השם, כתובת האינטרנט וכתובת האימייל של המשתמש.";

/* Message of Delete Site confirmation alert; substitution is site's host. */
"\nTo confirm, please re-enter your site's address before deleting.\n\n" = "\nלאישור, עליך להזין את כתובת האתר שלך לפני המחיקה.\n\n";
Expand Down Expand Up @@ -4068,7 +4068,7 @@ translators: Block name. %s: The localized block name */
"Loading Scan..." = "טוען את הסריקה...";

/* Displayed while a comment is being loaded. */
"Loading comment..." = "Loading comment...";
"Loading comment..." = "טוען תגובה...";

/* Shown while the app waits for the domain suggestions web service to return during the site creation process. */
"Loading domains" = "טוען דומיינים";
Expand Down Expand Up @@ -5492,7 +5492,7 @@ translators: %s: Select control button label e.g. \"Button width\" */
"Posting regularly can help keep your readers engaged, and attract new visitors to your site." = "פרסום באופן שגרתי יכול לעזור בשילוב הקוראים שלך, ולמשוך מבקרים חדשים לאתר שלך.";

/* Description for the card prompting the user to create a new post. */
"Posting regularly helps build your audience!" = "Posting regularly helps build your audience!";
"Posting regularly helps build your audience!" = "פרסום פוסטים באופן קבוע יעזור לך לבנות את הקהל!";

/* All Time Stats 'Posts' label
Noun. Title for posts button.
Expand All @@ -5511,7 +5511,7 @@ translators: %s: Select control button label e.g. \"Button width\" */
"Posts and Pages" = "פוסטים ועמודים";

/* Description for the card prompting the user to create their first post. */
"Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!" = "Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!";
"Posts appear on your blog page in reverse chronological order. It's time to share your ideas with the world!" = "פוסטים מופיעים בעמוד הבלוג שלך בסדר כרונולוגי הפוך. זה הזמן לשתף את הרעיונות שלך עם העולם!";

/* Title of the Posts Page Badge */
"Posts page" = "עמוד הפוסטים";
Expand Down Expand Up @@ -7462,7 +7462,7 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
"There was an error loading plugins" = "אירעה שגיאה בעת העלאת התוספים";

/* Text displayed when there is a failure loading a comment. */
"There was an error loading the comment." = "There was an error loading the comment.";
"There was an error loading the comment." = "אירעה שגיאה בטעינת התגובה.";

/* Text displayed when there is a failure loading the history. */
"There was an error loading the history" = "אירעה שגיאה בעת טעינת ההיסטוריה";
Expand Down Expand Up @@ -8695,7 +8695,7 @@ translators: %s: Select control option value e.g: \"Auto, 25%\". */
"Weeks" = "שבועות";

/* Post Signup Interstitial Title Text for Jetpack iOS */
"Welcome to Jetpack" = "Welcome to Jetpack";
"Welcome to Jetpack" = "ברוך בואך אל Jetpack";

/* Welcome message shown under Discover in the Reader just the 1st time the user sees it */
"Welcome to Reader. Discover millions of blogs at your fingertips." = "ברוך הבא ל Reader. גלה מיליוני בלוגים בקצות אצבעותייך.";
Expand Down
Loading