[wp-trac] [WordPress Trac] #46831: Warn users when Privacy Policy page is set as 'Homepage' or 'Posts page'
WordPress Trac
noreply at wordpress.org
Mon Apr 8 15:22:40 UTC 2019
#46831: Warn users when Privacy Policy page is set as 'Homepage' or 'Posts page'
-------------------------------------------+------------------------------
Reporter: garrett-eclipse | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses: ui, privacy
-------------------------------------------+------------------------------
Changes (by subrataemfluence):
* keywords: needs-patch => needs-patch reporter-feedback
Comment:
It would be a good addition since WordPress is looking at Privacy page a
bit differently. However, the problem is the `post_type` being used by
this page is `page`.
What I have understood so far is if we can incorporate an additional
native post_type called `Privacy` and that gets associated with the
Privacy page created from `Settings -> Privacy` menu, it would be easier
to handle things associated with this page.
In the context of this ticket we can then put a check like:
{{{
<?php if ( 'privacy' == get_option( 'show_on_front' ) || 'privacy' ==
get_option( 'page_for_posts' ) ) : ?>
<div id="front-page-warning" class="error inline"><p><?php _e(
'<strong>Warning:</strong> Warning: these pages should not be the same as
your Privacy Policy page!' ); ?></p>
</div>
<?php endif; ?>
}}}
However, one can create his own Privacy page without using
`Settings->Privacy` menu and that is always treated as `page` post_type.
In this scenario, the above approach will not work. Even an additional
post_type `privacy` is introduced (?), the problem will still remain for
custom Privacy policy pages.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46831#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list