File tree Expand file tree Collapse file tree
WordPress/Classes/ViewRelated/Blog/Blog Details Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,8 +54,6 @@ private struct Section {
5454 }
5555 }
5656
57- var showMorePostTypes = false
58-
5957 var useSiteMenuStyle = false
6058
6159 @objc public init ( blog: Blog , viewController: BlogDetailsViewController ) {
@@ -599,9 +597,7 @@ private extension BlogDetailsTableViewModel {
599597 for type in pinned {
600598 rows. append ( Row . pinnedPostType ( type, viewController: viewController) )
601599 }
602- if showMorePostTypes {
603- rows. append ( Row . customPostTypes ( viewController: viewController) )
604- }
600+ rows. append ( Row . customPostTypes ( viewController: viewController) )
605601 }
606602
607603 let title = isSplitViewDisplayed ? nil : Strings . contentSectionTitle
@@ -683,9 +679,7 @@ private extension BlogDetailsTableViewModel {
683679 for type in pinned {
684680 rows. append ( Row . pinnedPostType ( type, viewController: viewController) )
685681 }
686- if showMorePostTypes {
687- rows. append ( Row . customPostTypes ( viewController: viewController) )
688- }
682+ rows. append ( Row . customPostTypes ( viewController: viewController) )
689683 }
690684
691685 let title = Strings . publishSection
Original file line number Diff line number Diff line change @@ -110,8 +110,6 @@ extension BlogDetailsViewController {
110110 try await service. refresh ( )
111111
112112 if let self {
113- let pinnedCount = SiteStorageAccess . pinnedPostTypes ( for: TaggedManagedObjectID ( blog) ) . count
114- tableViewModel? . showMorePostTypes = try await service. customTypes ( ) . count > pinnedCount
115113 configureTableViewData ( )
116114 reloadTableViewPreservingSelection ( )
117115 }
You can’t perform that action at this time.
0 commit comments