File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
modules/render-html/helpers Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "version" : " 0.46.0" ,
3- "build" : 16915
3+ "build" : 16917
44}
Original file line number Diff line number Diff line change @@ -172,6 +172,10 @@ class Gdpr {
172172
173173 let result = renderer . cachedItems . posts [ configuration . privacyPolicyPostId ] ;
174174
175+ if ( ! result ) {
176+ result = renderer . cachedItems . pages [ configuration . privacyPolicyPostId ] ;
177+ }
178+
175179 if ( ! result ) {
176180 return '#not-found' ;
177181 }
Original file line number Diff line number Diff line change @@ -2369,7 +2369,9 @@ export default {
23692369 return sitemapLink;
23702370 },
23712371 postPages () {
2372- return this .$store .state .currentSite .posts .filter (post => post .status .indexOf (' published' ) > - 1 ).map (post => post .id );
2372+ let posts = this .$store .state .currentSite .posts .filter (post => post .status .indexOf (' published' ) > - 1 ).map (post => post .id );
2373+ let pages = this .$store .state .currentSite .pages .filter (page => page .status .indexOf (' published' ) > - 1 ).map (page => page .id )
2374+ return posts .concat (pages);
23732375 },
23742376 dropdownItems () {
23752377 return [
@@ -2884,7 +2886,8 @@ export default {
28842886 }
28852887 },
28862888 customPostLabels (value ) {
2887- return this .$store .state .currentSite .posts .filter (post => post .id === value).map (post => post .title )[0 ];
2889+ let postsAndPages = this .$store .state .currentSite .posts .concat (this .$store .state .currentSite .pages );
2890+ return postsAndPages .filter (item => item .id === value).map (item => item .title )[0 ];
28882891 },
28892892 closeDropdown (refID ) {
28902893 this .$refs [refID].isOpen = false ;
You can’t perform that action at this time.
0 commit comments