Make WordPress Core

Ticket #31168: 31168.3.diff

File 31168.3.diff, 1.4 KB (added by mrahmadawais, 10 years ago)

This also disables ping by default as per the patches of tyxla

Line 
1Index: meta-boxes.php
2===================================================================
3--- meta-boxes.php      (revision 31168)
4+++ meta-boxes.php      (working copy)
5
6 ?>
7 <input name="advanced_view" type="hidden" value="1" />
8 <p class="meta-options">
9-       <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 />
10+       <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 />
11-       <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>
12+       <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>
13        <?php
14        /**