WordPress.org

Make WordPress Core

Changeset 3223


Ignore:
Timestamp:
11/28/05 23:05:12 (8 years ago)
Author:
matt
Message:

Don't do bad xhtml fixing by default - fixes #1975

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-writing.php

    r3178 r3223  
    2525<label for="use_smilies"> 
    2626<input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_settings('use_smilies')); ?> /> 
    27 <?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label> 
     27<?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br /> 
     28<label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked('1', get_settings('use_balanceTags')); ?> /> <?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label> 
    2829</td> 
    2930</tr> 
     
    9091<p class="submit"> 
    9192<input type="hidden" name="action" value="update" />  
    92 <input type="hidden" name="page_options" value="default_post_edit_rows,use_smilies,rich_editing,ping_sites,mailserver_url,mailserver_port,mailserver_login,mailserver_pass,default_category,default_email_category" />  
     93<input type="hidden" name="page_options" value="default_post_edit_rows,use_smilies,rich_editing,ping_sites,mailserver_url,mailserver_port,mailserver_login,mailserver_pass,default_category,default_email_category,use_balanceTags" />  
    9394<input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" />  
    9495</p> 
  • trunk/wp-admin/profile.php

    r3112 r3223  
    1818 
    1919<div class="wrap"> 
    20 <h2><?php _e('Your Profile'); ?></h2> 
     20<h2><?php _e('Your Profile and Personal Options'); ?></h2> 
    2121<form name="profile" id="your-profile" action="profile-update.php" method="post"> 
    2222<p> 
  • trunk/wp-admin/upgrade-schema.php

    r3209 r3223  
    162162    add_option('admin_email', 'you@example.com'); 
    163163    add_option('start_of_week', 1); 
    164     add_option('use_balanceTags', 1); 
     164    add_option('use_balanceTags', 0); 
    165165    add_option('use_smilies', 1); 
    166166    add_option('require_name_email', 1); 
  • trunk/wp-includes/functions-formatting.php

    r3156 r3223  
    393393function balanceTags($text, $is_comment = 0) { 
    394394     
    395     if (get_settings('use_balanceTags') == 0) { 
     395    if ( get_option('use_balanceTags') == 0) 
    396396        return $text; 
    397     } 
    398397 
    399398    $tagstack = array(); $stacksize = 0; $tagqueue = ''; $newtext = ''; 
Note: See TracChangeset for help on using the changeset viewer.