| 124 | | <div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div> |
| 125 | | <?php endif; ?> |
| | 124 | <div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div> |
| | 125 | <?php endif; ?> |
| | 126 | |
| | 127 | <?php |
| | 128 | /** |
| | 129 | * Privacy Policy page should not be set either as Front page or as Posts page. |
| | 130 | * |
| | 131 | * @since 5.3.0 |
| | 132 | */ |
| | 133 | $privacy_policy_page = (int) get_option( 'wp_page_for_privacy_policy' ); |
| | 134 | |
| | 135 | if( $privacy_policy_page === (int) get_option( 'page_on_front' ) || $privacy_policy_page === (int) get_option( 'page_for_posts' ) ) : ?> |
| | 136 | <div id="privacy-policy-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same as your Privacy Policy page!' ); ?></p></div> |
| | 137 | <?php endif; ?> |