Make WordPress Core

Changeset 878


Ignore:
Timestamp:
02/17/2004 02:11:16 AM (21 years ago)
Author:
michelvaldrighi
Message:

adding blog_charset option

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r861 r878  
    379379"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(8,'users_can_register', 2, '1', 'whether you want to allow users to register on your blog', 8, 20)",
    380380"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(54,'admin_email', 3, 'you@example.com', 'Your email (obvious eh?)', 8, 20)",
     381"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (93, 1, 'blog_charset', 'Y', 3, 'utf-8', 20, 8, 'your blog\'s charset (here\'s a <a href=\"http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html\">list of possible charsets</a>)', 8)",
    381382// general blog setup
    382383"INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(9 ,'start_of_week', 5, '1', 'day at the start of the week', 8, 20)",
  • trunk/wp-admin/options-general.php

    r869 r878  
    8686        <br />
    8787This address is used only for admin purposes. </td>
    88       </tr>
     88      </tr>
     89      <tr valign="top">
     90    <th scope="row">Charset</th>
     91    <td><input name="blog_charset" type="text" id="blog_charset" value="<?php echo get_settings('blog_charset'); ?>" size="20" class="code" />
     92      <br />
     93      Your weblog's charset (here's a <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html">list of possible charsets</a>)</td>
     94      </tr>
    8995      <tr valign="top">
    9096        <th scope="row">Membership:</th>
  • trunk/wp-admin/upgrade-functions.php

    r869 r878  
    707707   
    708708    $wpdb->query("DELETE FROM $tableoptiongroups WHERE group_id = 6");
     709
     710    // Add blog_charset option
     711    $wpdb->query("INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (93, 1, 'blog_charset', 'Y', 3, 'utf-8', 20, 8, 'your blog\'s charset (here\'s a <a href=\"http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html\">list of possible charsets</a>)', 8)");
     712
    709713}
    710714
  • trunk/wp-settings.php

    r858 r878  
    6060    $new_users_can_blog = get_settings('new_users_can_blog');
    6161    $users_can_register = get_settings('users_can_register');
     62    $blog_charset = get_settings('blog_charset');
    6263    $start_of_week = get_settings('start_of_week');
    6364    $use_bbcode = get_settings('use_bbcode');
Note: See TracChangeset for help on using the changeset viewer.