WordPress.org

Make WordPress Core

Ticket #46831: 46831.simple.diff

File 46831.simple.diff, 1.1 KB (added by garrett-eclipse, 5 months ago)

Simplified version

  • src/wp-admin/options-reading.php

     
    121121</label></li>
    122122</ul>
    123123        <?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?>
    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        <?php if ( get_option( 'wp_page_for_privacy_policy' ) == get_option( 'page_for_posts' ) || get_option( 'wp_page_for_privacy_policy' ) == get_option( 'page_on_front' ) ) : ?>
     127        <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>
     128        <?php endif; ?>
    126129</fieldset></td>
    127130</tr>
    128131<?php endif; ?>