Changeset 969
- Timestamp:
- 03/11/2004 08:51:50 AM (22 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 1 added
- 6 edited
-
options-discussion.php (modified) (4 diffs)
-
options-general.php (modified) (1 diff)
-
options-permalink.php (modified) (2 diffs)
-
options-reading.php (added)
-
options-writing.php (modified) (3 diffs)
-
options.php (modified) (3 diffs)
-
upgrade-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-discussion.php
r957 r969 47 47 <li><a href="options-general.php">General</a></li> 48 48 <li><a href="options-writing.php">Writing</a></li> 49 <li><a href="options-reading.php">Reading</a></li> 49 50 <li><a class="current">Discussion</a></li> 50 51 <?php … … 68 69 <form name="form1" method="post" action="options.php"> 69 70 <input type="hidden" name="action" value="update" /> 70 <input type="hidden" name="page_options" value="'default_pingback_flag','default_ping_status','default_comment_status',' use_smilies','comments_notify','moderation_notify','comment_moderation','moderation_keys'" />71 <input type="hidden" name="page_options" value="'default_pingback_flag','default_ping_status','default_comment_status','comments_notify','moderation_notify','comment_moderation','moderation_keys'" /> 71 72 <p>Usual settings for an article: <em>(These settings may be overidden for individual articles.)</em></p> 72 73 <ul> … … 83 84 <li> 84 85 <label for="default_comment_status"> 85 <input name="default_comment_status" type="checkbox" id="default_comment_status" value=" 1" <?php checked('1', get_settings('default_comment_status')); ?> />86 <input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_settings('default_comment_status')); ?> /> 86 87 Allow people to post comments on the article</label> 87 88 </li> … … 105 106 <label for="comment_moderation"> 106 107 <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_settings('comment_moderation')); ?> /> 107 An administrator must approve the comment (regardless of any matches below) </label> 108 An administrator must approve the comment (regardless of any matches below) </label> 108 109 </li> 110 <li> 111 <input type="checkbox" name="require_name_email" value="1" <?php checked('1', get_settings('require_name_email')); ?> /> 112 User must fill out name and email 113 </li> 109 114 </ul> 110 115 <p>When a comment contains any of these words in its content, name, URI, or email, hold it in the moderation queue: (Seperate multiple words with new lines.)</p> -
trunk/wp-admin/options-general.php
r957 r969 47 47 <li><a class="current">General</a></li> 48 48 <li><a href="options-writing.php">Writing</a></li> 49 <li><a href="options-reading.php">Reading</a></li> 49 50 <li><a href="options-discussion.php">Discussion</a></li> 50 51 <?php -
trunk/wp-admin/options-permalink.php
r965 r969 56 56 ?> 57 57 <ul id="adminmenu2"> 58 <li><a href="options-general.php">General</a></li> 59 <li><a href="options-writing.php">Writing</a></li> 60 <li><a href="options-reading.php">Reading</a></li> 61 <li><a href="options-discussion.php">Discussion</a></li> 58 62 <?php 59 63 //we need to iterate through the available option groups. … … 69 73 } // end for each group 70 74 ?> 71 <li class="last"><a href="options-permalink.php">Permalinks</a></li>75 <li class="last"><a class="current">Permalinks</a></li> 72 76 </ul> 73 77 <br clear="all" /> -
trunk/wp-admin/options-writing.php
r957 r969 1 1 <?php 2 $title = ' Writing Options';2 $title = 'Reading Options'; 3 3 4 4 function add_magic_quotes($array) { … … 47 47 <li><a href="options-general.php">General</a></li> 48 48 <li><a class="current">Writing</a></li> 49 <li><a href="options-reading.php">Reading</a></li> 49 50 <li><a href="options-discussion.php">Discussion</a></li> 50 51 <?php … … 95 96 WordPress should correct invalidly nested XHTML automatically</label></td> 96 97 </tr> 97 <tr valign="top">98 <th scope="row">Character Encoding: </th>99 <td><input name="blog_charset" type="text" id="blog_charset" value="<?php echo get_settings('blog_charset'); ?>" size="20" class="code" />100 <br />101 The character encoding you write your blog in (UTF-8 recommended<a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html"></a>)</td>102 </tr>103 98 </table> 104 99 <fieldset> -
trunk/wp-admin/options.php
r957 r969 65 65 $options = $wpdb->get_results("SELECT $tableoptions.option_id, option_name, option_type, option_value, option_admin_level FROM $tableoptions WHERE option_name IN ($option_names)"); 66 66 // die(var_dump($options)); 67 68 // HACK 69 // Options that if not there have 0 value but need to be something like "closed" 70 $nonbools = array('default_ping_status', 'default_comment_status'); 67 71 if ($options) { 68 72 foreach ($options as $option) { … … 72 76 $new_val = $_POST[$option->option_name]; 73 77 if (!$new_val) $new_val = 0; 74 75 if ($new_val != $old_val) { 76 // get type and validate 77 $msg = validate_option($option, $this_name, $new_val); 78 if ($msg == '') { 79 //no error message 80 $result = $wpdb->query("UPDATE $tableoptions SET option_value = '$new_val' WHERE option_id = $option->option_id"); 81 if (!$result) { 82 $db_errors .= " SQL error while saving $this_name. "; 83 } else { 84 ++$any_changed; 85 } 86 } else { 87 $validation_message .= $msg; 88 } 78 if( in_array($option->option_name, $nonbools) && $new_val == 0 ) $new_value = 'closed'; 79 if ($new_val !== $old_val) { 80 $query = "UPDATE $tableoptions SET option_value = '$new_val' WHERE option_id = $option->option_id"; 81 $result = $wpdb->query($query); 82 //if( in_array($option->option_name, $nonbools)) die('boo'.$query); 83 if (!$result) { 84 $db_errors .= " SQL error while saving $this_name. "; 85 } else { 86 ++$any_changed; 87 } 89 88 } 90 89 } … … 143 142 <ul id="adminmenu2"> 144 143 <li><a href="options-general.php">General</a></li> 144 <li><a href="options-writing.php">Writing</a></li> 145 <li><a href="options-reading.php">Reading</a></li> 146 <li><a href="options-discussion.php">Discussion</a></li> 145 147 <?php 146 148 //Iterate through the available option groups. -
trunk/wp-admin/upgrade-functions.php
r957 r969 705 705 } 706 706 707 $wpdb->query("DELETE FROM $tableoptiongroups WHERE group_id = 1"); 708 $wpdb->query("DELETE FROM $tableoptiongroups WHERE group_id = 2"); 709 $wpdb->query("DELETE FROM $tableoptiongroups WHERE group_id = 3"); 707 710 $wpdb->query("DELETE FROM $tableoptiongroups WHERE group_id = 6"); 708 711 $wpdb->query("DELETE FROM $tableoptiongroups WHERE group_id = 7");
Note: See TracChangeset
for help on using the changeset viewer.