Make WordPress Core

Ticket #31168: 31168_disabling_comment_default.diff

File 31168_disabling_comment_default.diff, 1.1 KB (added by utkarshd_42, 10 years ago)

I changed the default value of Discussion metabox. Which is checked (by default in a new post or page). Dunno whether the best way. But works for me :)

  • meta-boxes.php

     
    588588?>
    589589<input name="advanced_view" type="hidden" value="1" />
    590590<p class="meta-options">
    591         <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="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 />
    592592        <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>
    593593        <?php
    594594        /**