[wp-cvs] wordpress/wp-admin edit-form-advanced.php, 1.51, 1.52 edit-page-form.php, 1.17, 1.18 post.php, 1.127, 1.128

Matthew Mullenweg saxmatt at users.sourceforge.net
Sat Feb 12 09:25:56 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25390/wp-admin

Modified Files:
	edit-form-advanced.php edit-page-form.php post.php 
Log Message:
When in advanced view it means the boxes are unchecked

Index: edit-page-form.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit-page-form.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** edit-page-form.php	2 Feb 2005 10:44:53 -0000	1.17
--- edit-page-form.php	12 Feb 2005 09:25:54 -0000	1.18
***************
*** 39,43 ****
  <fieldset id="commentstatusdiv">
        <legend><?php _e('Discussion') ?></legend> 
! 	  <div><label for="comment_status" class="selectit">
  	      <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($comment_status, 'open'); ?> />
           <?php _e('Allow Comments') ?></label> 
--- 39,45 ----
  <fieldset id="commentstatusdiv">
        <legend><?php _e('Discussion') ?></legend> 
! 	  <div>
! 	  <input name="advanced_view" type="hidden" value="1" />
! 	  <label for="comment_status" class="selectit">
  	      <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($comment_status, 'open'); ?> />
           <?php _e('Allow Comments') ?></label> 

Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.127
retrieving revision 1.128
diff -C2 -d -r1.127 -r1.128
*** post.php	12 Feb 2005 08:58:09 -0000	1.127
--- post.php	12 Feb 2005 09:25:54 -0000	1.128
***************
*** 38,41 ****
--- 38,42 ----
  	$post_parent = 0;
  	$menu_order  = 0;
+ 	
  
  	if ( isset($_POST['parent_id']) )
***************
*** 61,68 ****
  		$post_status = 'draft';
  	$comment_status = $_POST['comment_status'];
! 	if ( empty($comment_status) )
  		$comment_status = get_option('default_comment_status');
  	$ping_status = $_POST['ping_status'];
! 	if ( empty($ping_status) )
  		$ping_status = get_option('default_ping_status');
  	$post_password = $_POST['post_password'];
--- 62,69 ----
  		$post_status = 'draft';
  	$comment_status = $_POST['comment_status'];
! 	if ( empty($comment_status) && !isset($_POST['advanced_view']) )
  		$comment_status = get_option('default_comment_status');
  	$ping_status = $_POST['ping_status'];
! 	if ( empty($ping_status) && !isset($_POST['advanced_view']) )
  		$ping_status = get_option('default_ping_status');
  	$post_password = $_POST['post_password'];

Index: edit-form-advanced.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit-form-advanced.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** edit-form-advanced.php	12 Feb 2005 08:58:09 -0000	1.51
--- edit-form-advanced.php	12 Feb 2005 09:25:54 -0000	1.52
***************
*** 71,75 ****
      <fieldset id="commentstatusdiv">
        <legend><a href="http://wordpress.org/docs/reference/post/#comments" title="<?php _e('Help on comment status') ?>"><?php _e('Discussion') ?></a></legend> 
! 	  <div><label for="comment_status" class="selectit">
  	      <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($comment_status, 'open'); ?> />
           <?php _e('Allow Comments') ?></label> 
--- 71,77 ----
      <fieldset id="commentstatusdiv">
        <legend><a href="http://wordpress.org/docs/reference/post/#comments" title="<?php _e('Help on comment status') ?>"><?php _e('Discussion') ?></a></legend> 
! 	  <div>
! 	  <input name="advanced_view" type="hidden" value="1" />
! 	  <label for="comment_status" class="selectit">
  	      <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($comment_status, 'open'); ?> />
           <?php _e('Allow Comments') ?></label> 



More information about the cvs mailing list