Ticket #1081: blog-lang.2.diff
| File blog-lang.2.diff, 24.3 KB (added by kim, 7 years ago) |
|---|
-
wp-rss.php
Inspired by: http://www.w3.org/TR/i18n-html-tech-lang/ http://mosquito.wordpress.org/view.php?id=1081
7 7 require('wp-blog-header.php'); 8 8 } 9 9 10 header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true); 10 header('Content-Type: text/xml; charset=' . get_settings('blog_charset'), true); 11 header('Content-Language: ' . get_settings('blog_lang'), true); 11 12 $more = 1; 12 13 13 14 ?> … … 20 21 <description><?php bloginfo_rss('description') ?></description> 21 22 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> 22 23 <docs>http://backend.userland.com/rss092</docs> 23 <language><?php echo get_option(' rss_language'); ?></language>24 <language><?php echo get_option('blog_language'); ?></language> 24 25 25 26 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?> 26 27 <item> -
wp-login.php
6 6 7 7 header('Expires: Wed, 11 Jan 1984 05:00:00 GMT'); 8 8 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 9 header('Cache-Control: no-cache, must-revalidate ');9 header('Cache-Control: no-cache, must-revalidate, max-age=0'); 10 10 header('Pragma: no-cache'); 11 11 12 header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 13 header('Content-Language: ' . get_option('blog_lang')); 14 12 15 if ( defined('RELOCATE') ) { // Move flag is set 13 16 if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) ) 14 17 $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); … … 23 26 24 27 wp_clearcookie(); 25 28 do_action('wp_logout'); 26 header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');27 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');28 header('Cache-Control: no-cache, must-revalidate, max-age=0');29 header('Pragma: no-cache');30 29 header('Location: wp-login.php'); 31 30 exit(); 32 31 … … 36 35 do_action('lost_password'); 37 36 ?> 38 37 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 39 <html xmlns="http://www.w3.org/1999/xhtml">38 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 40 39 <head> 41 40 <title>WordPress » <?php _e('Lost Password') ?></title> 42 41 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 42 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 43 43 <link rel="stylesheet" href="<?php echo get_settings('siteurl'); ?>/wp-admin/wp-admin.css" type="text/css" /> 44 44 <script type="text/javascript"> 45 45 function focusit() { … … 195 195 $redirect_to = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $_REQUEST['redirect_to']); 196 196 ?> 197 197 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 198 <html xmlns="http://www.w3.org/1999/xhtml">198 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 199 199 <head> 200 200 <title>WordPress › <?php _e('Login') ?></title> 201 201 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 202 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 202 203 <link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-admin/wp-admin.css" type="text/css" /> 203 204 <script type="text/javascript"> 204 205 function focusit() { -
wp-blog-header.php
115 115 @header('HTTP/1.x 404 Not Found'); 116 116 } else if ( empty($feed) ) { 117 117 @header('X-Pingback: '. get_bloginfo('pingback_url')); 118 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 118 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 119 @header('Content-Language: ' . get_settings('blog_lang'), true); 119 120 } else { 120 121 // We're showing a feed, so WP is indeed the only thing that last changed 121 122 if ( $withcomments ) -
wp-rdf.php
7 7 require('wp-blog-header.php'); 8 8 } 9 9 10 header('Content-type: application/rdf+xml; charset=' . get_settings('blog_charset'), true); 10 header('Content-Type: application/rdf+xml; charset=' . get_settings('blog_charset'), true); 11 header('Content-Language: ' . get_settings('blog_lang'), true); 11 12 $more = 1; 12 13 13 14 ?> -
wp-content/themes/classic/comments-popup.php
4 4 foreach ($posts as $post) { start_wp(); 5 5 ?> 6 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 7 <html xmlns="http://www.w3.org/1999/xhtml">7 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 8 8 <head> 9 9 <title><?php echo get_settings('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title> 10 10 -
wp-content/themes/classic/header.php
1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml">2 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 3 3 4 4 <head profile="http://gmpg.org/xfn/11"> 5 5 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 6 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 6 7 7 8 <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> 8 9 -
wp-content/themes/default/comments-popup.php
4 4 foreach ($posts as $post) { start_wp(); 5 5 ?> 6 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 7 <html xmlns="http://www.w3.org/1999/xhtml">7 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 8 8 <head> 9 9 <title><?php echo get_settings('blogname'); ?> - Comments on <?php the_title(); ?></title> 10 10 11 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> 12 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 12 13 <style type="text/css" media="screen"> 13 14 @import url( <?php bloginfo('stylesheet_url'); ?> ); 14 15 body { margin: 3px; } -
wp-content/themes/default/header.php
1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml">2 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 3 3 4 4 <head profile="http://gmpg.org/xfn/11"> 5 5 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 6 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 6 7 7 8 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> 8 9 -
wp-register.php
85 85 86 86 ?> 87 87 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 88 <html xmlns="http://www.w3.org/1999/xhtml">88 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 89 89 <head> 90 90 <title>WordPress » <?php _e('Registration Complete') ?></title> 91 91 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> 92 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 92 93 <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" /> 93 94 <style type="text/css"> 94 95 .submit { … … 115 116 116 117 ?> 117 118 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 118 <html xmlns="http://www.w3.org/1999/xhtml">119 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 119 120 <head> 120 121 <title>WordPress » <?php _e('Registration Currently Disabled') ?></title> 121 122 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>"> 123 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 122 124 <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css"> 123 125 </head> 124 126 … … 141 143 142 144 ?> 143 145 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 144 <html xmlns="http://www.w3.org/1999/xhtml">146 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 145 147 <head> 146 148 <title>WordPress » <?php _e('Registration Form') ?></title> 147 149 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> 150 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 148 151 <link rel="stylesheet" href="wp-admin/wp-admin.css" type="text/css" /> 149 152 <style type="text/css"> 150 153 #user_email, #user_login, #submit { -
wp-links-opml.php
2 2 $doing_rss = 1; 3 3 4 4 require('wp-blog-header.php'); 5 header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true); 5 header('Content-Type: text/xml; charset=' . get_settings('blog_charset'), true); 6 header('Content-Language: ' . get_settings('blog_lang'), true); 6 7 $link_cat = $_GET['link_cat']; 7 8 if ((empty($link_cat)) || ($link_cat == 'all') || ($link_cat == '0')) { 8 9 $sql_cat = ''; -
readme.html
1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml">2 <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> 3 3 <head> 4 4 <title>WordPress › ReadMe</title> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 <meta http-equiv="Content-Language" content="en" /> 6 7 <style type="text/css" media="screen"> 7 8 <!-- 8 9 html { -
wp-rss2.php
7 7 require('wp-blog-header.php'); 8 8 } 9 9 10 header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true); 10 header('Content-Type: text/xml; charset=' . get_settings('blog_charset'), true); 11 header('Content-Language: ' . get_settings('blog_lang'), true); 11 12 $more = 1; 12 13 13 14 ?> … … 26 27 <description><?php bloginfo_rss("description") ?></description> 27 28 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> 28 29 <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> 29 <language><?php echo get_option(' rss_language'); ?></language>30 <language><?php echo get_option('blog_lang'); ?></language> 30 31 31 32 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?> 32 33 <item> -
wp-commentsrss2.php
6 6 require('wp-blog-header.php'); 7 7 } 8 8 9 header('Content-type: text/xml;charset=' . get_settings('blog_charset'), true); 9 header('Content-Type: text/xml; charset=' . get_settings('blog_charset'), true); 10 header('Content-Language: ' . get_settings('blog_lang'), true); 10 11 11 12 echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; 12 13 ?> … … 26 27 <description><?php bloginfo_rss("description") ?></description> 27 28 <pubDate><?php echo gmdate('r'); ?></pubDate> 28 29 <generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator> 30 <language><?php echo get_option('blog_lang'); ?></language> 29 31 30 32 <?php 31 33 if (is_single() || is_page()) { -
wp-atom.php
7 7 require('wp-blog-header.php'); 8 8 } 9 9 10 header('Content-type: application/atom+xml; charset=' . get_settings('blog_charset'), true); 10 header('Content-Type: application/atom+xml; charset=' . get_settings('blog_charset'), true); 11 header('Content-Language: ' . get_settings('blog_lang'), true); 11 12 $more = 1; 12 13 13 14 ?> … … 15 16 <feed version="0.3" 16 17 xmlns="http://purl.org/atom/ns#" 17 18 xmlns:dc="http://purl.org/dc/elements/1.1/" 18 xml:lang="<?php echo get_option(' rss_language'); ?>"19 xml:lang="<?php echo get_option('blog_lang'); ?>" 19 20 > 20 21 <title><?php bloginfo_rss('name') ?></title> 21 22 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> -
wp-admin/update-links.php
17 17 $http_request = "POST /updated-batch/ HTTP/1.0\r\n"; 18 18 $http_request .= "Host: api.pingomatic.com\r\n"; 19 19 $http_request .= 'Content-Type: application/x-www-form-urlencoded; charset='.get_settings('blog_charset')."\r\n"; 20 $http_request .= 'Content-Language: ' . get_settings('blog_lang') . "\r\n"; 20 21 $http_request .= 'Content-Length: ' . strlen($query_string) . "\r\n"; 21 22 $http_request .= 'User-Agent: WordPress/' . $wp_version . "\r\n"; 22 23 $http_request .= "\r\n"; -
wp-admin/admin-header.php
1 1 <?php 2 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 2 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 3 @header('Content-Language: ' . get_option('blog_lang')); 3 4 if (!isset($_GET["page"])) require_once('admin.php'); ?> 4 5 <?php get_admin_page_title(); ?> 5 6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6 <html xmlns="http://www.w3.org/1999/xhtml">7 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 7 8 <head> 8 9 <title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title> 9 10 <link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 10 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> 12 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 11 13 12 14 <script type="text/javascript"> 13 15 //<![CDATA[ -
wp-admin/options-reading.php
11 11 <h2><?php _e('Reading Options') ?></h2> 12 12 <form name="form1" method="post" action="options.php"> 13 13 <input type="hidden" name="action" value="update" /> 14 <input type="hidden" name="page_options" value="'posts_per_page','what_to_show','posts_per_rss','rss_use_excerpt','blog_charset',' gzipcompression' " />14 <input type="hidden" name="page_options" value="'posts_per_page','what_to_show','posts_per_rss','rss_use_excerpt','blog_charset','blog_lang','gzipcompression' " /> 15 15 <fieldset class="options"> 16 16 <legend><?php _e('Blog Pages') ?></legend> 17 17 <table width="100%" cellspacing="2" cellpadding="5" class="editform"> … … 50 50 <td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option('blog_charset'); ?>" size="20" class="code" /><br /> 51 51 <?php _e('The character encoding you write your blog in (UTF-8 is <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html">recommended</a>)') ?></td> 52 52 </tr> 53 <tr valign="top"> 54 <th width="33%" scope="row"><?php _e('Primary language for pages and feeds:') ?></th> 55 <td><input name="blog_lang" type="text" id="blog_lang" value="<?php form_option('blog_lang'); ?>" size="20" class="code" /><br /> 56 <?php _e('The <a href="http://www.w3.org/TR/i18n-html-tech-lang/#ri20040808.101452727">primary language</a> you write your blog in') ?></td> 57 </tr> 53 58 </table> 54 59 <p> 55 60 <label><input type="checkbox" name="gzipcompression" value="1" <?php checked('1', get_settings('gzipcompression')); ?> /> -
wp-admin/sidebar.php
11 11 if ('b' == $_GET['a']) { 12 12 13 13 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 14 <html xmlns="http://www.w3.org/1999/xhtml">14 <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> 15 15 <head> 16 16 <title>WordPress › Posted</title> 17 17 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" /> … … 26 26 } else { 27 27 28 28 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 29 <html xmlns="http://www.w3.org/1999/xhtml">29 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 30 30 <head> 31 31 <title>WordPress › Sidebar</title> 32 32 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" /> 33 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 33 34 <link rel="stylesheet" href="wp-admin.css" type="text/css" /> 34 35 <style type="text/css" media="screen"> 35 36 form { -
wp-admin/bookmarklet.php
8 8 if ('b' == $a) { 9 9 10 10 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 11 <html xmlns="http://www.w3.org/1999/xhtml">11 <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> 12 12 <head> 13 13 <script type="text/javascript"> 14 14 <!-- … … 49 49 /* /big funky fixes */ 50 50 51 51 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 52 <html xmlns="http://www.w3.org/1999/xhtml">52 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 53 53 <head> 54 54 <title><?php bloginfo('name') ?> › Bookmarklet — WordPress</title> 55 55 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> 56 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 56 57 <link rel="stylesheet" href="wp-admin.css" type="text/css" /> 57 58 58 59 <style type="text/css"> -
wp-admin/upgrade-schema.php
213 213 add_option('blacklist_keys'); 214 214 add_option('comment_registration', 0); 215 215 add_option('open_proxy_check', 1); 216 add_option('rss_language', 'en');217 216 add_option('html_type', 'text/html'); 217 // 1.5.1 218 if (WPLANG == '') { 219 add_option('blog_lang', 'en'); 220 } else { 221 add_option('blog_lang', substr(WPLANG, 0, 2)); 222 } 218 223 219 224 // Delete unused options 220 $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url' );225 $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'rss_language'); 221 226 foreach ($unusedoptions as $option) : 222 227 delete_option($option); 223 228 endforeach; -
wp.php
4 4 ?> 5 5 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 6 6 "http://www.w3.org/TR/xhtml/DTD/xhtml-transitional.dtd"> 7 <html xmlns="http://www.w3.org/1999/xhtml">7 <html lang="<?php get_settings('blog_lang'); ?>" xml:lang="<?php get_settings('blog_lang'); ?>" xmlns="http://www.w3.org/1999/xhtml"> 8 8 <head> 9 9 <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> 10 10 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> 11 <meta http-equiv="Content-Language" content="<?php echo get_settings('blog_lang'); ?>" /> 11 12 <meta name="generator" content="WordPress <?php $wp_version ?>" /> <!-- leave this for stats --> 12 13 <link rel="alternate" type="text/xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" /> 13 14 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
