Changeset 761
- Timestamp:
- 09/19/06 16:06:15 (2 years ago)
- Files:
-
- trunk/wp-admin/admin-header.php (modified) (1 diff)
- trunk/wp-admin/options-discussion.php (modified) (5 diffs)
- trunk/wp-admin/options-general.php (modified) (2 diffs)
- trunk/wp-admin/options-misc.php (modified) (1 diff)
- trunk/wp-admin/options-permalink.php (modified) (2 diffs)
- trunk/wp-admin/options-reading.php (modified) (4 diffs)
- trunk/wp-admin/options-writing.php (modified) (1 diff)
- trunk/wp-admin/upgrade-schema.php (modified) (1 diff)
- trunk/wp-admin/users.php (modified) (1 diff)
- trunk/wp-admin/wp-admin.css (modified) (5 diffs)
- trunk/wp-content/themes/default/functions.php (modified) (2 diffs)
- trunk/wp-includes/classes.php (modified) (1 diff)
- trunk/wp-includes/comment.php (modified) (1 diff)
- trunk/wp-includes/default-filters.php (modified) (1 diff)
- trunk/wp-includes/functions.php (modified) (1 diff)
- trunk/wp-includes/js/scriptaculous/prototype.js (modified) (1 diff)
- trunk/wp-includes/js/tinymce/tiny_mce_config.php (modified) (1 diff)
- trunk/wp-includes/kses.php (modified) (14 diffs)
- trunk/wp-includes/locale.php (modified) (2 diffs)
- trunk/wp-includes/theme.php (modified) (2 diffs)
- trunk/wp-includes/wp-db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-header.php
r729 r761 19 19 <title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title> 20 20 <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; ?> 21 24 <script type="text/javascript"> 22 25 //<![CDATA[ trunk/wp-admin/options-discussion.php
r729 r761 6 6 7 7 include('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 }19 8 ?> 20 9 … … 23 12 <form method="post" action="options.php"> 24 13 <?php wp_nonce_field('update-options') ?> 14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p> 25 15 <fieldset class="options"> 26 16 <legend><?php _e('Usual settings for an article:<br /><small><em>(These settings may be overridden for individual articles.)</em></small>') ?></legend> … … 64 54 <label for="comment_moderation"> 65 55 <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> /> 66 <?php _e('An administrator must a pprove the comment (regardless of any matches below)') ?> </label>56 <?php _e('An administrator must always approve the comment') ?> </label> 67 57 </li> 68 58 <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> … … 74 64 <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> 75 65 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> 77 67 <p> 78 68 <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>82 69 </p> 83 70 </fieldset> 84 71 <fieldset class="options"> 85 72 <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> 87 74 <p> 88 75 <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> … … 92 79 <input type="hidden" name="action" value="update" /> 93 80 <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 »') ?>" /> 82 </p> 83 </form> 97 84 </div> 85 98 86 <?php include('./admin-footer.php'); ?> trunk/wp-admin/options-general.php
r749 r761 12 12 <form method="post" action="options.php"> 13 13 <?php wp_nonce_field('update-options') ?> 14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p> 14 15 <table class="optiontable"> 15 16 <tr valign="top"> … … 82 83 <th scope="row"><?php _e('Times in the weblog should differ by:') ?> </th> 83 84 <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> 85 86 </tr> 86 87 <tr> trunk/wp-admin/options-misc.php
r729 r761 14 14 <form method="post" action="options.php"> 15 15 <?php wp_nonce_field('update-options') ?> 16 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p> 16 17 <fieldset class="options"> 17 18 <legend><?php _e('Uploading'); ?></legend> trunk/wp-admin/options-permalink.php
r752 r761 109 109 <div class="wrap"> 110 110 <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 »') ?>" /></p> 111 114 <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> 112 115 … … 123 126 ); 124 127 ?> 125 <form name="form" action="options-permalink.php" method="post">126 <?php wp_nonce_field('update-permalink') ?>127 128 <h3><?php _e('Common options:'); ?></h3> 128 129 <p> trunk/wp-admin/options-reading.php
r729 r761 12 12 <form name="form1" method="post" action="options.php"> 13 13 <?php wp_nonce_field('update-options') ?> 14 14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p> 15 15 <?php if ( get_pages() ): ?> 16 16 <fieldset class="options"> 17 17 <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"> 19 19 <tr valign="top"> 20 20 <th width="33%" scope="row"><?php _e('Front page displays:')?></th> 21 21 <td> 22 < label>22 <p><label> 23 23 <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked('posts', get_option('show_on_front')); ?> /> 24 <?php _e(' Thelatest posts'); ?>24 <?php _e('Your latest posts'); ?> 25 25 </label> 26 < br />27 < label>26 </p> 27 <p><label> 28 28 <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'); ?> 30 30 </label> 31 </p> 31 32 <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> 34 35 </ul> 35 36 <?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?> … … 49 50 <fieldset class="options"> 50 51 <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"> 52 53 <tr valign="top"> 53 54 <th width="33%" scope="row"><?php _e('Show at most:') ?></th> … … 65 66 <fieldset class="options"> 66 67 <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"> 68 69 <tr valign="top"> 69 70 <th width="33%" scope="row"><?php _e('Show the most recent:') ?></th> … … 73 74 <th scope="row"><?php _e('For each article, show:') ?> </th> 74 75 <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><--more--></code> feature, it will cut off posts in RSS feeds.'); ?></p> 77 79 </td> 78 80 </tr> 79 81 </table> 80 82 </fieldset> 81 <table width="100%" cellspacing="2" cellpadding="5" class=" editform">83 <table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform"> 82 84 <tr valign="top"> 83 85 <th width="33%" scope="row"><?php _e('Encoding for pages and feeds:') ?></th> trunk/wp-admin/options-writing.php
r729 r761 12 12 <form method="post" action="options.php"> 13 13 <?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 »') ?>" /></p> 15 <table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform"> 15 16 <tr valign="top"> 16 17 <th width="33%" scope="row"> <?php _e('Size of the post box:') ?></th> trunk/wp-admin/upgrade-schema.php
r721 r761 284 284 add_option('blacklist_keys'); 285 285 add_option('comment_registration', 0); 286 add_option('open_proxy_check', 0);287 286 add_option('rss_language', 'en'); 288 287 add_option('html_type', 'text/html'); trunk/wp-admin/users.php
r754 r761 533 533 <?php endif; ?> 534 534 535 <h 2><?php _e('Update Users'); ?></h2>535 <h3><?php _e('Update Selected'); ?></h3> 536 536 <ul style="list-style:none;"> 537 537 <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 119 119 120 120 fieldset.options legend { 121 font-size: 16px; 121 font-size: 1.5em; 122 font-weight: bold; 123 font-family: Georgia, "Times New Roman", Times, serif; 122 124 } 123 125 … … 332 334 width: 33%; 333 335 text-align: right; 336 font-size: 1.3em; 337 font-weight: normal; 334 338 } 335 339 … … 394 398 395 399 #adminmenu { 396 background: # 6da6d1;400 background: #83B4D8; 397 401 border-top: 3px solid #448abd; 398 402 margin: 0; 399 padding: .2em .2em . 2em 2em;403 padding: .2em .2em .3em 2em; 400 404 } 401 405 402 406 #adminmenu .current, #submenu .current { 403 407 font-weight: bold; 408 text-decoration: none; 404 409 } 405 410 … … 410 415 margin: 0; 411 416 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 { 416 422 background: #ddeaf4; 417 423 color: #333; … … 917 923 float: left; 918 924 width: 40%; 919 padding: .5em 2em ;925 padding: .5em 2em 1em; 920 926 margin: 1em 1em 1em 0; 921 927 } trunk/wp-content/themes/default/functions.php
r729 r761 374 374 <input type="button" name="revert" value="Revert" onclick="kRevert()" /> 375 375 <input type="button" value="Advanced" onclick="toggleAdvanced()" /> 376 <input type="submit" name="submitform" class="defbutton" value="Save" onclick="cp.hidePopup('prettyplease')" />377 376 <input type="hidden" name="action" value="save" /> 378 377 <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo kubrick_header_display(); ?>" /> … … 381 380 <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo kubrick_lower_color(); ?>" /> 382 381 <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 »'); ?>" onclick="cp.hidePopup('prettyplease')" /></p> 383 383 </form> 384 384 <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 112 112 $pathinfo = $_SERVER['PATH_INFO']; 113 113 $pathinfo_array = explode('?', $pathinfo); 114 $pathinfo = $pathinfo_array[0];114 $pathinfo = str_replace("%", "%25", $pathinfo_array[0]); 115 115 $req_uri = $_SERVER['REQUEST_URI']; 116 116 $req_uri_array = explode('?', $req_uri); trunk/wp-includes/comment.php
r744 r761 256 256 if ( preg_match($pattern, $user_ip ) ) return true; 257 257 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;262 258 } 263 259 trunk/wp-includes/default-filters.php
r729 r761 145 145 // Actions 146 146 add_action('wp_head', 'rsd_link'); 147 add_action('wp_head', 'locale_stylesheet'); 147 148 add_action('publish_future_post', 'wp_publish_post', 10, 1); 148 149 add_action('wp_head', 'noindex', 1); trunk/wp-includes/functions.php
r736 r761 1035 1035 } 1036 1036 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 1049 1037 function wp_explain_nonce($action) { 1050 1038 if ( $action !== -1 && preg_match('/([a-z]+)-([a-z]+)(_(.+))?/', $action, $matches) ) { trunk/wp-includes/js/scriptaculous/prototype.js
r559 r761 1766 1766 element.removeEventListener(name, observer, useCapture); 1767 1767 } else if (element.detachEvent) { 1768 element.detachEvent('on' + name, observer); 1768 try { 1769 element.detachEvent('on' + name, observer); 1770 } catch (e) {} 1769 1771 } 1770 1772 } trunk/wp-includes/js/tinymce/tiny_mce_config.php
r599 r761 22 22 23 23 // 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[*],*[*]'; 25 25 $valid_elements = apply_filters('mce_valid_elements', $valid_elements); 26 26 trunk/wp-includes/kses.php
r638 r761 24 24 'class' => array (), 25 25 'href' => array (), 26 'id' => array (), 26 27 'title' => array (), 27 28 'rel' => array (), … … 36 37 'big' => array (), 37 38 'blockquote' => array ( 39 'id' => array (), 38 40 'cite' => array ()), 39 'br' => array (), 41 'br' => array ( 42 'class' => array ()), 40 43 'button' => array ( 41 44 'disabled' => array (), … … 44 47 'value' => array ()), 45 48 'caption' => array ( 46 'align' => array ()), 49 'align' => array (), 50 'class' => array ()), 47 51 'cite' => array ( 52 'class' => array(), 48 53 'dir' => array(), 49 54 'lang' => array(), … … 64 69 'align' => array (), 65 70 'class' => array (), 66 'dir' => array () ),71 'dir' => array (), 67 72 'dl' => array (), 68 73 'dt' => array (), … … 82 87 'target' => array ()), 83 88 'h1' => array ( 84 'align' => array ()), 89 'align' => array (), 90 'class' => array ()), 85 91 'h2' => array ( 86 'align' => array ()), 92 'align' => array (), 93 'class' => array ()), 87 94 'h3' => array ( 88 'align' => array ()), 95 'align' => array (), 96 'class' => array ()), 89 97 'h4' => array ( 90 'align' => array ()), 98 'align' => array (), 99 'class' => array ()), 91 100 'h5' => array ( 92 'align' => array ()), 101 'align' => array (), 102 'class' => array ()), 93 103 'h6' => array ( 94 'align' => array ()), 104 'align' => array (), 105 'class' => array ()), 95 106 'hr' => array ( 96 107 'align' => array (), 108 'class' => array (), 97 109 'noshade' => array (), 98 110 'size' => array (), … … 115 127 'align' => array (), 116 128 'border' => array (), 129 'class' => array (), 117 130 'height' => array (), 118 131 'hspace' => array (), … … 135 148 'class' => array (), 136 149 'align' => array (), 137 'dir' => array() ),150 'dir' => array(), 138 151 'pre' => array ( 139 152 'width' => array ()), … … 141 154 'cite' => array ()), 142 155 's' => array (), 156 'span' => array ( 157 'class' => array (), 158 'dir' => array (), 159 'align' => array (), 143 160 'strike' => array (), 144 161 'strong' => array (), … … 151 168 'cellpadding' => array (), 152 169 'cellspacing' => array (), 170 'class' => array (), 153 171 'dir' => array(), 154 172 'rules' => array (), … … 167 185 'char' => array (), 168 186 'charoff' => array (), 187 'class' => array (), 169 188 'colspan' => array (), 170 189 'dir' => array(), … … 185 204 'align' => array (), 186 205 'char' => array (), 206 'class' => array (), 187 207 'charoff' => array (), 188 208 'valign' => array ()), … … 194 214 'char' => array (), 195 215 'charoff' => array (), 216 'class' => array (), 196 217 'colspan' => array (), 197 218 'headers' => array (), … … 206 227 'char' => array (), 207 228 'charoff' => array (), 229 'class' => array (), 208 230 'valign' => array ()), 209 231 'title' => array (), … … 213 235 'char' => array (), 214 236 'charoff' => array (), 237 'class' => array (), 215 238 'valign' => array ()), 216 239 'tt' => array (), 217 240 'u' => array (), 218 'ul' => array (), 219 'ol' => array (), 241 'ul' => array ( 242 'class' => array ()), 243 'ol' => array ( 244 'class' => array ()), 220 245 'var' => array ()); 221 246 $allowedtags = array ( trunk/wp-includes/locale.php
r543 r761 12 12 13 13 var $meridiem; 14 15 var $text_direction = ''; 16 var $locale_vars = array('text_direction'); 14 17 15 18 function init() { … … 84 87 $this->meridiem['AM'] = __('AM'); 85 88 $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 } 86 104 } 87 105 trunk/wp-includes/theme.php
r729 r761 24 24 $stylesheet_uri = $stylesheet_dir_uri . "/style.css"; 25 25 return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri); 26 } 27 28 function 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); 26 40 } 27 41 … … 371 385 } 372 386 387 function 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 373 394 function validate_current_theme() { 374 395 // Don't validate during an install/upgrade. trunk/wp-includes/wp-db.php
r722 r761 379 379 return false; 380 380 381 header( 'Content-Type: text/html; charset=utf-8');381 header('Content-Type: text/html; charset=utf-8'); 382 382 ?> 383 383 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
