Make WordPress Core

Ticket #31168: 31168.4.diff

File 31168.4.diff, 1.6 KB (added by mrahmadawais, 10 years ago)

Ignore the last patch, this one unchecks both the comments and pings inside the metabox when adding a new page

  • src/wp-admin/includes/meta-boxes.php

    diff --git src/wp-admin/includes/meta-boxes.php src/wp-admin/includes/meta-boxes.php
    index 99fd418..6e0b75b 100644
    function post_comment_status_meta_box($post) { 
    587587?>
    588588<input name="advanced_view" type="hidden" value="1" />
    589589<p class="meta-options">
    590         <label for="comment_status" class="selectit"><input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> <?php _e( 'Allow comments.' ) ?></label><br />
    591         <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php printf( __( 'Allow <a href="%s" target="_blank">trackbacks and pingbacks</a> on this page.' ), __( 'http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) ); ?></label>
     590        <label for="comment_status" class="selectit"><input name="comment_status" type="checkbox" id="comment_status" value="close" <?php checked($post->comment_status, 'close'); ?> /> <?php _e( 'Allow comments.' ) ?></label><br />
     591        <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="close" <?php checked($post->ping_status, 'close'); ?> /> <?php printf( __( 'Allow <a href="%s" target="_blank">trackbacks and pingbacks</a> on this page.' ), __( 'http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) ); ?></label>
    592592        <?php
    593593        /**
    594594         * Fires at the end of the Discussion meta box on the post editing screen.