Changeset 761

Show
Ignore:
Timestamp:
09/19/06 16:06:15 (2 years ago)
Author:
donncha
Message:

WP Merge to 4197

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-header.php

    r729 r761  
    1919<title><?php bloginfo('name') ?> &rsaquo; <?php echo $title; ?> &#8212; WordPress</title> 
    2020<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 
     21<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 
     22<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 
     23<?php endif; ?>  
    2124<script type="text/javascript"> 
    2225//<![CDATA[ 
  • trunk/wp-admin/options-discussion.php

    r729 r761  
    66 
    77include('admin-header.php'); 
    8  
    9 if ($action == 'retrospam') { 
    10         if ( $_GET['move'] == 'true' ) { 
    11                 retrospam_mgr::move_spam( $_GET[ids] ); 
    12         } 
    13         $retrospaminator = new retrospam_mgr(); 
    14         $result = $retrospaminator->find_spam(); 
    15         echo $retrospaminator->display_edit_form( $result ); 
    16         include('./admin-footer.php'); 
    17         exit; 
    18 } 
    198?> 
    209 
     
    2312<form method="post" action="options.php">  
    2413<?php wp_nonce_field('update-options') ?> 
     14<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p> 
    2515<fieldset class="options"> 
    2616<legend><?php _e('Usual settings for an article:<br /><small><em>(These settings may be overridden for individual articles.)</em></small>') ?></legend>  
     
    6454<label for="comment_moderation">  
    6555<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> />  
    66 <?php _e('An administrator must approve the comment (regardless of any matches below)') ?> </label>  
     56<?php _e('An administrator must always approve the comment') ?> </label>  
    6757</li>  
    6858<li><label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label></li>  
     
    7464<p><?php printf(__('Hold a comment in the queue if it contains more than %s links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_option('comment_max_links'). '" />' ) ?></p> 
    7565 
    76 <p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://codex.wordpress.org/Spam_Words">Common spam words</a>.') ?></p> 
     66<p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="moderation.php">moderation queue</a>. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></p> 
    7767<p>  
    7868<textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('moderation_keys'); ?></textarea>  
    79 </p>  
    80 <p> 
    81 <a id="retrospambutton" href="options-discussion.php?action=retrospam"><?php _e('Check past comments against moderation list'); ?></a> 
    8269</p>  
    8370</fieldset> 
    8471<fieldset class="options"> 
    8572<legend><?php _e('Comment Blacklist') ?></legend> 
    86 <p><?php _e('This is a list of words that you want completely blacklisted from your blog. Be very careful what you add here, because if a comment matches something here it will be completely nuked and there will be no notification. Remember that partial words can match, so if there is any chance something here might match it would be better to put it in the moderation box above.') ?></p> 
     73<p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be deleted. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></p> 
    8774<p>  
    8875<textarea name="blacklist_keys" cols="60" rows="4" id="blacklist_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('blacklist_keys'); ?></textarea>  
     
    9279<input type="hidden" name="action" value="update" />  
    9380<input type="hidden" name="page_options" value="default_pingback_flag,default_ping_status,default_comment_status,comments_notify,moderation_notify,comment_moderation,require_name_email,comment_whitelist,comment_max_links,moderation_keys,blacklist_keys" />  
    94 <input type="submit" name="Submit" value="<?php _e('Update Options') ?>" />  
    95 </p>  
    96 </form>  
     81<input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />  
     82</p> 
     83</form> 
    9784</div> 
     85 
    9886<?php include('./admin-footer.php'); ?> 
  • trunk/wp-admin/options-general.php

    r749 r761  
    1212<form method="post" action="options.php">  
    1313<?php wp_nonce_field('update-options') ?> 
     14<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p> 
    1415<table class="optiontable">  
    1516<tr valign="top">  
     
    8283<th scope="row"><?php _e('Times in the weblog should differ by:') ?> </th> 
    8384<td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php form_option('gmt_offset'); ?>" />  
    84 <?php _e('hours') ?> </td> 
     85<?php _e('hours') ?> (<?php _e('Your timezone offset, for example <code>-6</code> for Central Time.'); ?>)</td> 
    8586</tr> 
    8687<tr> 
  • trunk/wp-admin/options-misc.php

    r729 r761  
    1414<form method="post" action="options.php"> 
    1515<?php wp_nonce_field('update-options') ?> 
     16<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p> 
    1617<fieldset class="options"> 
    1718<legend><?php _e('Uploading'); ?></legend> 
  • trunk/wp-admin/options-permalink.php

    r752 r761  
    109109<div class="wrap">  
    110110  <h2><?php _e('Customize Permalink Structure') ?></h2>  
     111<form name="form" action="options-permalink.php" method="post">  
     112<?php wp_nonce_field('update-permalink') ?> 
     113<p class="submit"><input type="submit" name="submit" value="<?php _e('Update Permalink Structure &raquo;') ?>" /></p> 
    111114  <p><?php _e('By default WordPress uses web <abbr title="Universal Resource Locator">URL</abbr>s which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="http://codex.wordpress.org/Using_Permalinks">number of tags are available</a>, and here are some examples to get you started.'); ?></p> 
    112115 
     
    123126        ); 
    124127?> 
    125 <form name="form" action="options-permalink.php" method="post">  
    126 <?php wp_nonce_field('update-permalink') ?> 
    127128<h3><?php _e('Common options:'); ?></h3> 
    128129<p> 
  • trunk/wp-admin/options-reading.php

    r729 r761  
    1212<form name="form1" method="post" action="options.php"> 
    1313<?php wp_nonce_field('update-options') ?> 
    14  
     14<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p> 
    1515<?php if ( get_pages() ): ?> 
    1616<fieldset class="options">  
    1717<legend><?php _e('Front Page') ?></legend>  
    18 <table width="100%" cellspacing="2" cellpadding="5" class="editform">  
     18<table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform">  
    1919<tr valign="top">  
    2020<th width="33%" scope="row"><?php _e('Front page displays:')?></th>  
    2121<td> 
    22         <label> 
     22        <p><label> 
    2323                <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked('posts', get_option('show_on_front')); ?> />  
    24                 <?php _e('The latest posts'); ?> 
     24                <?php _e('Your latest posts'); ?> 
    2525        </label> 
    26         <br /
    27         <label> 
     26        </p
     27        <p><label> 
    2828                <input name="show_on_front" type="radio" value="page" class="tog" <?php checked('page', get_option('show_on_front')); ?> />  
    29                 <?php printf(__('A static <a href="%s">page</a> (select below)'), 'edit-pages.php'); ?> 
     29                <?php printf(__('A <a href="%s">static page</a> (select below)'), 'edit-pages.php'); ?> 
    3030        </label> 
     31        </p> 
    3132<ul> 
    32         <li><?php printf(__('Show this page on the front page: %s'), wp_dropdown_pages("name=page_on_front&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_on_front'))); ?></li> 
    33         <li><?php printf(__('Show the latest posts on this page: %s'), wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li> 
     33        <li><?php printf(__('Front page: %s'), wp_dropdown_pages("name=page_on_front&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_on_front'))); ?></li> 
     34        <li><?php printf(__('Posts page: %s'), wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li> 
    3435</ul> 
    3536<?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?> 
     
    4950<fieldset class="options">  
    5051<legend><?php _e('Blog Pages') ?></legend>  
    51 <table width="100%" cellspacing="2" cellpadding="5" class="editform">  
     52<table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform">  
    5253<tr valign="top">  
    5354<th width="33%" scope="row"><?php _e('Show at most:') ?></th>  
     
    6566<fieldset class="options">  
    6667<legend><?php _e('Syndication Feeds') ?></legend>  
    67 <table width="100%" cellspacing="2" cellpadding="5" class="editform">  
     68<table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform">  
    6869<tr valign="top">  
    6970<th width="33%" scope="row"><?php _e('Show the most recent:') ?></th>  
     
    7374<th scope="row"><?php _e('For each article, show:') ?> </th> 
    7475<td> 
    75 <label><input name="rss_use_excerpt"  type="radio" value="0" <?php checked(0, get_option('rss_use_excerpt')); ?>        /> <?php _e('Full text') ?></label><br /> 
    76 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label> 
     76<p><label><input name="rss_use_excerpt"  type="radio" value="0" <?php checked(0, get_option('rss_use_excerpt')); ?>     /> <?php _e('Full text') ?></label><br /> 
     77<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label></p> 
     78<p><?php _e('Note: If you use the <code>&lt;--more--&gt;</code> feature, it will cut off posts in RSS feeds.'); ?></p> 
    7779</td> 
    7880</tr>  
    7981</table>  
    8082</fieldset>  
    81 <table width="100%" cellspacing="2" cellpadding="5" class="editform">  
     83<table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform">  
    8284<tr valign="top">  
    8385<th width="33%" scope="row"><?php _e('Encoding for pages and feeds:') ?></th>  
  • trunk/wp-admin/options-writing.php

    r729 r761  
    1212<form method="post" action="options.php">  
    1313<?php wp_nonce_field('update-options') ?> 
    14 <table width="100%" cellspacing="2" cellpadding="5" class="editform">  
     14<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p> 
     15<table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform">  
    1516<tr valign="top">  
    1617<th width="33%" scope="row"> <?php _e('Size of the post box:') ?></th>  
  • trunk/wp-admin/upgrade-schema.php

    r721 r761  
    284284        add_option('blacklist_keys'); 
    285285        add_option('comment_registration', 0); 
    286         add_option('open_proxy_check', 0); 
    287286        add_option('rss_language', 'en'); 
    288287        add_option('html_type', 'text/html'); 
  • trunk/wp-admin/users.php

    r754 r761  
    533533<?php endif; ?> 
    534534 
    535         <h2><?php _e('Update Users'); ?></h2
     535        <h3><?php _e('Update Selected'); ?></h3
    536536        <ul style="list-style:none;"> 
    537537                <li><input type="radio" name="action" id="action0" value="removeuser" /> <label for="action0"><?php _e('Remove checked users.'); ?></label></li> 
  • trunk/wp-admin/wp-admin.css

    r729 r761  
    119119 
    120120fieldset.options legend { 
    121         font-size: 16px; 
     121        font-size: 1.5em; 
     122        font-weight: bold; 
     123        font-family: Georgia, "Times New Roman", Times, serif; 
    122124} 
    123125 
     
    332334        width: 33%; 
    333335        text-align: right; 
     336        font-size: 1.3em; 
     337        font-weight: normal; 
    334338} 
    335339 
     
    394398 
    395399#adminmenu { 
    396         background: #6da6d1
     400        background: #83B4D8
    397401        border-top: 3px solid #448abd; 
    398402        margin: 0; 
    399         padding: .2em .2em .2em 2em; 
     403        padding: .2em .2em .3em 2em; 
    400404} 
    401405 
    402406#adminmenu .current, #submenu .current { 
    403407        font-weight: bold; 
     408        text-decoration: none; 
    404409} 
    405410 
     
    410415        margin: 0; 
    411416        padding: 3px 5px; 
    412         text-decoration: none; 
    413 
    414  
    415 #adminmenu a:hover, .current { 
     417        text-decoration: underline; 
     418        border-bottom: none; 
     419
     420 
     421#adminmenu a:hover, #adminmenu a.current { 
    416422        background: #ddeaf4; 
    417423        color: #333; 
     
    917923        float: left; 
    918924        width: 40%; 
    919         padding: .5em 2em
     925        padding: .5em 2em 1em
    920926        margin: 1em 1em 1em 0;  
    921927} 
  • trunk/wp-content/themes/default/functions.php

    r729 r761  
    374374                                <input type="button" name="revert" value="Revert" onclick="kRevert()" /> 
    375375                                <input type="button" value="Advanced" onclick="toggleAdvanced()" /> 
    376                                 <input type="submit" name="submitform" class="defbutton" value="Save" onclick="cp.hidePopup('prettyplease')" /> 
    377376                                <input type="hidden" name="action" value="save" /> 
    378377                                <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo kubrick_header_display(); ?>" /> 
     
    381380                                <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo kubrick_lower_color(); ?>" /> 
    382381                                <input type="hidden" name="headerimage" id="headerimage" value="<?php echo kubrick_header_image(); ?>" /> 
     382                                <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php _e('Update Header &raquo;'); ?>" onclick="cp.hidePopup('prettyplease')" /></p> 
    383383                        </form> 
    384384                        <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div> 
  • trunk/wp-includes/classes.php

    r753 r761  
    112112                        $pathinfo = $_SERVER['PATH_INFO']; 
    113113                        $pathinfo_array = explode('?', $pathinfo); 
    114                         $pathinfo = $pathinfo_array[0]
     114                        $pathinfo = str_replace("%", "%25", $pathinfo_array[0])
    115115                        $req_uri = $_SERVER['REQUEST_URI']; 
    116116                        $req_uri_array = explode('?', $req_uri); 
  • trunk/wp-includes/comment.php

    r744 r761  
    256256                if ( preg_match($pattern, $user_ip   ) ) return true; 
    257257                if ( preg_match($pattern, $user_agent) ) return true; 
    258         } 
    259  
    260         if ( isset($_SERVER['REMOTE_ADDR']) ) { 
    261                 if ( wp_proxy_check($_SERVER['REMOTE_ADDR']) ) return true; 
    262258        } 
    263259 
  • trunk/wp-includes/default-filters.php

    r729 r761  
    145145// Actions 
    146146add_action('wp_head', 'rsd_link'); 
     147add_action('wp_head', 'locale_stylesheet'); 
    147148add_action('publish_future_post', 'wp_publish_post', 10, 1); 
    148149add_action('wp_head', 'noindex', 1); 
  • trunk/wp-includes/functions.php

    r736 r761  
    10351035} 
    10361036 
    1037 function wp_proxy_check($ipnum) { 
    1038         if ( get_option('open_proxy_check') && isset($ipnum) ) { 
    1039                 $ipnum = preg_replace( '/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/', '$1', $ipnum ); 
    1040                 $rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) ); 
    1041                 $lookup = $rev_ip . '.sbl-xbl.spamhaus.org.'; 
    1042                 if ( $lookup != gethostbyname( $lookup ) ) 
    1043                         return true; 
    1044         } 
    1045  
    1046         return false; 
    1047 } 
    1048  
    10491037function wp_explain_nonce($action) { 
    10501038        if ( $action !== -1 && preg_match('/([a-z]+)-([a-z]+)(_(.+))?/', $action, $matches) ) { 
  • trunk/wp-includes/js/scriptaculous/prototype.js

    r559 r761  
    17661766      element.removeEventListener(name, observer, useCapture); 
    17671767    } else if (element.detachEvent) { 
    1768       element.detachEvent('on' + name, observer); 
     1768      try { 
     1769        element.detachEvent('on' + name, observer); 
     1770      } catch (e) {} 
    17691771    } 
    17701772  } 
  • trunk/wp-includes/js/tinymce/tiny_mce_config.php

    r599 r761  
    2222 
    2323        // Set up init variables 
    24         $valid_elements = 'p/-div[*],-b[*],-font[*],-ul[*],-ol[*],-li[*],*[*]'; 
     24        $valid_elements = 'p/-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]'; 
    2525        $valid_elements = apply_filters('mce_valid_elements', $valid_elements); 
    2626 
  • trunk/wp-includes/kses.php

    r638 r761  
    2424                        'class' => array (), 
    2525                        'href' => array (), 
     26                        'id' => array (), 
    2627                        'title' => array (), 
    2728                        'rel' => array (), 
     
    3637                'big' => array (),  
    3738                'blockquote' => array ( 
     39                        'id' => array (), 
    3840                        'cite' => array ()), 
    39                 'br' => array (), 
     41                'br' => array ( 
     42                        'class' => array ()), 
    4043                'button' => array ( 
    4144                        'disabled' => array (), 
     
    4447                        'value' => array ()), 
    4548                'caption' => array ( 
    46                         'align' => array ()), 
     49                        'align' => array (), 
     50                        'class' => array ()), 
    4751                'cite' => array ( 
     52                        'class' => array(), 
    4853                        'dir' => array(), 
    4954                        'lang' => array(), 
     
    6469                        'align' => array (), 
    6570                        'class' => array (), 
    66                         'dir' => array ())
     71                        'dir' => array ()
    6772                'dl' => array (), 
    6873                'dt' => array (), 
     
    8287                        'target' => array ()), 
    8388                'h1' => array ( 
    84                         'align' => array ()), 
     89                        'align' => array (), 
     90                        'class' => array ()), 
    8591                'h2' => array ( 
    86                         'align' => array ()), 
     92                        'align' => array (), 
     93                        'class' => array ()), 
    8794                'h3' => array ( 
    88                         'align' => array ()), 
     95                        'align' => array (), 
     96                        'class' => array ()), 
    8997                'h4' => array ( 
    90                         'align' => array ()), 
     98                        'align' => array (), 
     99                        'class' => array ()), 
    91100                'h5' => array ( 
    92                         'align' => array ()), 
     101                        'align' => array (), 
     102                        'class' => array ()), 
    93103                'h6' => array ( 
    94                         'align' => array ()), 
     104                        'align' => array (), 
     105                        'class' => array ()), 
    95106                'hr' => array ( 
    96107                        'align' => array (), 
     108                        'class' => array (), 
    97109                        'noshade' => array (), 
    98110                        'size' => array (), 
     
    115127                        'align' => array (), 
    116128                        'border' => array (), 
     129                        'class' => array (), 
    117130                        'height' => array (), 
    118131                        'hspace' => array (), 
     
    135148                        'class' => array (), 
    136149                        'align' => array (), 
    137                         'dir' => array())
     150                        'dir' => array()
    138151                'pre' => array ( 
    139152                        'width' => array ()), 
     
    141154                        'cite' => array ()), 
    142155                's' => array (), 
     156                'span' => array ( 
     157                        'class' => array (), 
     158                        'dir' => array (), 
     159                        'align' => array (), 
    143160                'strike' => array (), 
    144161                'strong' => array (), 
     
    151168                        'cellpadding' => array (), 
    152169                        'cellspacing' => array (), 
     170                        'class' => array (), 
    153171                        'dir' => array(), 
    154172                        'rules' => array (), 
     
    167185                        'char' => array (), 
    168186                        'charoff' => array (), 
     187                        'class' => array (), 
    169188                        'colspan' => array (), 
    170189                        'dir' => array(), 
     
    185204                        'align' => array (), 
    186205                        'char' => array (), 
     206                        'class' => array (), 
    187207                        'charoff' => array (), 
    188208                        'valign' => array ()), 
     
    194214                        'char' => array (), 
    195215                        'charoff' => array (), 
     216                        'class' => array (), 
    196217                        'colspan' => array (), 
    197218                        'headers' => array (), 
     
    206227                        'char' => array (), 
    207228                        'charoff' => array (), 
     229                        'class' => array (), 
    208230                        'valign' => array ()), 
    209231                'title' => array (), 
     
    213235                        'char' => array (), 
    214236                        'charoff' => array (), 
     237                        'class' => array (), 
    215238                        'valign' => array ()), 
    216239                'tt' => array (), 
    217240                'u' => array (), 
    218                 'ul' => array (), 
    219                 'ol' => array (), 
     241                'ul' => array ( 
     242                        'class' => array ()), 
     243                'ol' => array ( 
     244                        'class' => array ()), 
    220245                'var' => array ()); 
    221246        $allowedtags = array ( 
  • trunk/wp-includes/locale.php

    r543 r761  
    1212 
    1313        var $meridiem; 
     14 
     15        var $text_direction = ''; 
     16        var $locale_vars = array('text_direction'); 
    1417 
    1518        function init() { 
     
    8487                $this->meridiem['AM'] = __('AM'); 
    8588                $this->meridiem['PM'] = __('PM'); 
     89 
     90                $this->_load_locale_data(); 
     91        } 
     92 
     93        function _load_locale_data() { 
     94                $locale = get_locale(); 
     95                $locale_file = ABSPATH . "wp-includes/languages/$locale.php"; 
     96                if ( !file_exists($locale_file) ) 
     97                        return; 
     98 
     99                include($locale_file); 
     100 
     101                foreach ( $this->locale_vars as $var ) { 
     102                        $this->$var = $$var;     
     103                } 
    86104        } 
    87105 
  • trunk/wp-includes/theme.php

    r729 r761  
    2424        $stylesheet_uri = $stylesheet_dir_uri . "/style.css"; 
    2525        return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri); 
     26} 
     27 
     28function get_locale_stylesheet_uri() { 
     29        global $wp_locale; 
     30        $stylesheet_dir_uri = get_stylesheet_directory_uri(); 
     31        $dir = get_stylesheet_directory(); 
     32        $locale = get_locale(); 
     33        if ( file_exists("$dir/$locale.css") ) 
     34                $stylesheet_uri = "$stylesheet_dir_uri/$locale.css"; 
     35        else if ( !empty($wp_locale->text_direction) && file_exists("$dir/{$wp_locale->text_direction}.css") ) 
     36                $stylesheet_uri = "$stylesheet_dir_uri/{$wp_locale->text_direction}.css"; 
     37        else 
     38                $stylesheet_uri = ''; 
     39        return apply_filters('locale_stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri); 
    2640} 
    2741 
     
    371385} 
    372386 
     387function locale_stylesheet() { 
     388        $stylesheet = get_locale_stylesheet_uri(); 
     389        if ( empty($stylesheet) ) 
     390                return; 
     391        echo '<link rel="stylesheet" href="' . $stylesheet . '" type="text/css" media="screen" />'; 
     392} 
     393 
    373394function validate_current_theme() { 
    374395        // Don't validate during an install/upgrade. 
  • trunk/wp-includes/wp-db.php

    r722 r761  
    379379                        return false; 
    380380 
    381                 header( 'Content-Type: text/html; charset=utf-8'); 
     381                header('Content-Type: text/html; charset=utf-8'); 
    382382?> 
    383383<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">