Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32701 Details for
Bug 53051
web-app wordpress 1.2-mingus released 2004-05-22
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
required patch as well as email reference fix for wp-login
wordpress-1.2.gentoo.diff (text/plain), 22.17 KB, created by
Lourdes Jones
on 2004-06-05 06:13:00 UTC
(
hide
)
Description:
required patch as well as email reference fix for wp-login
Filename:
MIME Type:
Creator:
Lourdes Jones
Created:
2004-06-05 06:13:00 UTC
Size:
22.17 KB
patch
obsolete
>diff -urN wordpress/index.php wordpress-patched/index.php >--- wordpress/index.php 2004-04-28 02:26:49.000000000 -0500 >+++ wordpress-patched/index.php 2004-06-04 12:37:44.972666047 -0500 >@@ -1,4 +1,4 @@ >-<?php >+<?php > /* Don't remove this line. */ > require('./wp-blog-header.php'); > ?> >@@ -7,19 +7,19 @@ > > <head profile="http://gmpg.org/xfn/1"> > <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> >- >+ > <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" /> > <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> > > <style type="text/css" media="screen"> > @import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css ); > </style> >- >+ > <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" /> > <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> > <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> > <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" /> >- >+ > <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> > <?php wp_get_archives('type=monthly&format=link'); ?> > <?php //comments_popup_script(); // off by default ?> >@@ -34,25 +34,25 @@ > <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?> > > <?php the_date('','<h2>','</h2>'); ?> >- >+ > <div class="post"> > <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3> > <div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div> >- >+ > <div class="storycontent"> > <?php the_content(); ?> > </div> >- >+ > <div class="feedback"> > <?php wp_link_pages(); ?> > <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> > </div> >- >+ > <!-- > <?php trackback_rdf(); ?> > --> > >-<?php include(ABSPATH . 'wp-comments.php'); ?> >+<?php include('./wp-comments.php'); ?> > </div> > > <?php endforeach; else: ?> >@@ -72,7 +72,7 @@ > </ul> > </li> > <li id="search"> >- <label for="s"><?php _e('Search:'); ?></label> >+ <label for="s"><?php _e('Search:'); ?></label> > <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>"> > <div> > <input type="text" name="s" id="s" size="15" /><br /> >@@ -112,3 +112,4 @@ > <p class="credit"><!--<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform")); ?></cite></p> > </body> > </html> >+ >diff -urN wordpress/wp-admin/categories.php wordpress-patched/wp-admin/categories.php >--- wordpress/wp-admin/categories.php 2004-05-18 10:24:23.000000000 -0500 >+++ wordpress-patched/wp-admin/categories.php 2004-06-04 12:57:10.585066836 -0500 >@@ -42,17 +42,17 @@ > > $standalone = 1; > require_once('admin-header.php'); >- >+ > if ($user_level < 3) > die (__('Cheatin’ uh?')); >- >+ > $cat_name= addslashes(stripslashes(stripslashes($_POST['cat_name']))); > $category_nicename = sanitize_title($cat_name); > $category_description = addslashes(stripslashes(stripslashes($_POST['category_description']))); > $cat = intval($_POST['cat']); > > $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$cat')"); >- >+ > header('Location: categories.php?message=1#addcat'); > > break; >@@ -123,14 +123,14 @@ > > if ($user_level < 3) > die (__('Cheatin’ uh?')); >- >+ > $cat_name = $wpdb->escape(stripslashes($_POST['cat_name'])); > $cat_ID = (int) $_POST['cat_ID']; > $category_nicename = sanitize_title($cat_name); > $category_description = $wpdb->escape(stripslashes($_POST['category_description'])); > > $wpdb->query("UPDATE $tablecategories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = '$cat' WHERE cat_ID = '$cat_ID'"); >- >+ > header('Location: categories.php?message=3'); > > break; >@@ -177,13 +177,13 @@ > <div class="wrap"> > <h2><?php _e('Add New Category') ?></h2> > <form name="addcat" id="addcat" action="categories.php" method="post"> >- >+ > <p><?php _e('Name:') ?><br /> > <input type="text" name="cat_name" value="" /></p> > <p><?php _e('Category parent:') ?><br /> > <select name='cat' class='postform'> > <option value='0'><?php _e('None') ?></option> >- <?php wp_dropdown_cats(); ?></p> >+ <?php wp_dropdown_cats(false); ?></p> > </select> > <p><?php _e('Description: (optional)') ?> <br /> > <textarea name="category_description" rows="5" cols="50" style="width: 97%;"></textarea></p> >diff -urN wordpress/wp-blog-header.php wordpress-patched/wp-blog-header.php >--- wordpress/wp-blog-header.php 2004-05-21 17:33:47.000000000 -0500 >+++ wordpress-patched/wp-blog-header.php 2004-06-04 12:36:49.936769596 -0500 >@@ -1,11 +1,11 @@ > <?php > >-if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php')) >+if (!file_exists('./wp-config.php')) > die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file."); > >-require_once(dirname(__FILE__).'/' . '/wp-config.php'); >+require_once('./wp-config.php'); > >-require_once(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php'); >+require_once('wp-includes/wp-l10n.php'); > > // Process PATH_INFO, if set. > $path_info = array(); >@@ -46,7 +46,7 @@ > parse_str($query, $path_info); > } > } >- } >+ } > } > > $wpvarstoreset = array('m','p','posts','w', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'feed', 'author_name'); >@@ -236,7 +236,7 @@ > $cache_categories[$catt->cat_ID] = $catt; > } > >-if ((empty($cat)) || ($cat == 'all') || ($cat == '0') || >+if ((empty($cat)) || ($cat == 'all') || ($cat == '0') || > // Bypass cat checks if fetching specific posts > ( > intval($year) || intval($monthnum) || intval($day) || intval($w) || >@@ -474,7 +474,7 @@ > ID, category_id, cat_name, category_nicename, category_description, category_parent > FROM $tablecategories, $tablepost2cat, $tableposts > WHERE category_id = cat_ID AND post_id = ID AND post_id IN ($post_id_list)"); >- >+ > foreach ($dogs as $catt) { > $category_cache[$catt->ID][] = $catt; > } >@@ -485,7 +485,7 @@ > LEFT JOIN $tablecomments ON ( comment_post_ID = ID AND comment_approved = '1') > WHERE post_status = 'publish' AND ID IN ($post_id_list) > GROUP BY ID"); >- >+ > if ($comment_counts) { > foreach ($comment_counts as $comment_count) { > $comment_count_cache["$comment_count->ID"] = $comment_count->ccount; >@@ -494,25 +494,25 @@ > > // Get post-meta info > if ( $meta_list = $wpdb->get_results(" >- SELECT post_id,meta_key,meta_value >- FROM $tablepostmeta >+ SELECT post_id,meta_key,meta_value >+ FROM $tablepostmeta > WHERE post_id IN($post_id_list) > ORDER BY post_id,meta_key > ", ARRAY_A) ) { >- >+ > // Change from flat structure to hierarchical: > $post_meta_cache = array(); > foreach ($meta_list as $metarow) { > $mpid = $metarow['post_id']; > $mkey = $metarow['meta_key']; > $mval = $metarow['meta_value']; >- >+ > // Force subkeys to be array type: > if (!isset($post_meta_cache[$mpid]) || !is_array($post_meta_cache[$mpid])) > $post_meta_cache[$mpid] = array(); > if (!isset($post_meta_cache[$mpid]["$mkey"]) || !is_array($post_meta_cache[$mpid]["$mkey"])) > $post_meta_cache[$mpid]["$mkey"] = array(); >- >+ > // Add a value to the current pid/key: > $post_meta_cache[$mpid][$mkey][] = $mval; > } >diff -urN wordpress/wp-comments-post.php wordpress-patched/wp-comments-post.php >--- wordpress/wp-comments-post.php 2004-05-07 18:21:26.000000000 -0500 >+++ wordpress-patched/wp-comments-post.php 2004-06-04 12:36:31.541478140 -0500 >@@ -1,5 +1,5 @@ > <?php >-require( dirname(__FILE__) . '/wp-config.php' ); >+require( './wp-config.php' ); > > function add_magic_quotes($array) { > foreach ($array as $k => $v) { >@@ -10,7 +10,7 @@ > } > } > return $array; >-} >+} > > if (!get_magic_quotes_gpc()) { > $_POST = add_magic_quotes($_POST); >@@ -68,9 +68,9 @@ > $approved = 0; > } > >-$wpdb->query("INSERT INTO $tablecomments >-(comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved) >-VALUES >+$wpdb->query("INSERT INTO $tablecomments >+(comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved) >+VALUES > ('$comment_post_ID', '$author', '$email', '$url', '$user_ip', '$now', '$now_gmt', '$comment', '$approved') > "); > >@@ -101,4 +101,4 @@ > header("Location: $location"); > } > >-?> >\ No newline at end of file >+?> >diff -urN wordpress/wp-content/plugins/markdown.php wordpress-patched/wp-content/plugins/markdown.php >--- wordpress/wp-content/plugins/markdown.php 2004-04-19 03:58:36.000000000 -0500 >+++ wordpress-patched/wp-content/plugins/markdown.php 2004-06-04 13:00:12.047104728 -0500 >@@ -6,7 +6,7 @@ > Version: 1.0b4 > Author: John Gruber > Author URI: http://daringfireball.net/ >-*/ >+*/ > > > /* >@@ -18,7 +18,7 @@ > $g_empty_element_suffix = " />"; # Change to ">" for HTML output > $g_tab_width = 4; > $g_nested_brackets_depth = 6; >-$g_nested_brackets = >+$g_nested_brackets = > str_repeat('(?>[^\[\]]+|\[', $g_nested_brackets_depth). > str_repeat('\])*', $g_nested_brackets_depth); > $g_escape_table = array( >@@ -133,7 +133,7 @@ > [ \t]* > <(hr) # start tag = $2 > \b # word break >- ([^<>])*? # >+ ([^<>])*? # > /?> # the matching end tag > (?=\n{2,}|\Z) # followed by a blank line or end of document > ) >@@ -153,14 +153,14 @@ > > function _RunBlockGamut($text) { > global $g_empty_element_suffix; >- >+ > $text = _DoHeaders($text); > > $text = preg_replace( > array('/^( ?\* ?){3,}$/m', > '/^( ?- ?){3,}$/m'), >- array("\n<hr$g_empty_element_suffix\n", >- "\n<hr$g_empty_element_suffix\n"), >+ array("\n<hr$g_empty_element_suffix\n", >+ "\n<hr$g_empty_element_suffix\n"), > $text); > > $text = _DoLists($text); >@@ -191,7 +191,7 @@ > > > $text = _DoItalicsAndBold($text); >- >+ > # Do hard breaks: > $text = preg_replace('/ {2,}\n/', "<br$g_empty_element_suffix\n", $text); > >@@ -244,7 +244,7 @@ > ) > }xs", > '_DoAnchors_reference_callback', $text); >- >+ > $text = preg_replace_callback("{ > ( # wrap whole match in $1 > \\[ >@@ -263,7 +263,7 @@ > ) > }xs", > '_DoAnchors_inline_callback', $text); >- >+ > return $text; > } > function _DoAnchors_reference_callback($matches) { >@@ -282,7 +282,7 @@ > $url = str_replace(array('*', '_'), > array('*', '_'), $url); > $result = "<a href='$url'"; >- if ( isset( $g_title[$link_id] ) ) { >+ if ( isset( $g_titles[$link_id] ) ) { > $title = $g_titles[$link_id]; > $title = str_replace(array('*', '_'), > array('*', '_'), $title); >@@ -332,7 +332,7 @@ > \] > > ) >- }xs', >+ }xs', > '_DoImages_reference_callback', $text); > > # >@@ -371,7 +371,7 @@ > if ($link_id == "") { > $link_id = strtolower($alt_text); # for shortcut links like ![this][]. > } >- >+ > if (isset($g_urls[$link_id])) { > $url = $g_urls[$link_id]; > $url = str_replace(array('*', '_'), >@@ -531,7 +531,7 @@ > $codeblock = $matches[4]; > > $result; # return value >- >+ > > $prefix = ""; > if (!(preg_match('/\s/', $prevchar) || ($prevchar == ""))) { >@@ -541,7 +541,7 @@ > $codeblock = _Detab($codeblock); > # trim leading newlines and trailing whitespace > $codeblock = preg_replace(array('/\A\n+/', '/\s+\z/'), '', $codeblock); >- >+ > $result = $prefix . "\n\n<pre><code>" . $codeblock . "\n</code></pre>\n\n"; > > return $result; >@@ -578,11 +578,11 @@ > $_ = str_replace('&', '&', $_); > > # Do the angle bracket song and dance: >- $_ = str_replace(array('<', '>'), >+ $_ = str_replace(array('<', '>'), > array('<', '>'), $_); > > # Now, escape characters that are magic in Markdown: >- $_ = str_replace(array_keys($g_escape_table), >+ $_ = str_replace(array_keys($g_escape_table), > array_values($g_escape_table), $_); > > return $_; >@@ -618,10 +618,10 @@ > } > function _DoBlockQuotes_callback($matches) { > $bq = $matches[1]; >- $bq = preg_replace('/^[ \t]*>[ \t]?/m', '', $bq); >+ $bq = preg_replace('/^[ \t]*>[ \t]?/m', '', $bq); > $bq = _RunBlockGamut($bq); # recurse > $bq = preg_replace('/^/m', "\t", $bq); >- >+ > return "<blockquote>\n$bq\n</blockquote>\n\n"; > } > >@@ -657,7 +657,7 @@ > > > function _EncodeAmpsAndAngles($text) { >- $text = preg_replace('/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w{1,8});)/', >+ $text = preg_replace('/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w{1,8});)/', > '&', $text);; > > # Encode naked <'s >@@ -676,9 +676,9 @@ > > > function _DoAutoLinks($text) { >- $text = preg_replace("!<((https?|ftp):[^'\">\\s]+)>!", >+ $text = preg_replace("!<((https?|ftp):[^'\">\\s]+)>!", > '<a href="\1">\1</a>', $text); >- >+ > # Email addresses: <address@domain.foo> > $text = preg_replace('{ > < >@@ -691,7 +691,7 @@ > }exi', > "_EncodeEmailAddress(_UnescapeSpecialChars(_UnslashQuotes('\\1')))", > $text); >- >+ > return $text; > } > >@@ -700,7 +700,7 @@ > $addr = "mailto:" . $addr; > $length = strlen($addr); > >- $addr = preg_replace_callback('/([^\:])/', >+ $addr = preg_replace_callback('/([^\:])/', > '_EncodeEmailAddress_callback', $addr); > > $addr = "<a href=\"$addr\">$addr</a>"; >@@ -719,7 +719,7 @@ > > function _UnescapeSpecialChars($text) { > global $g_escape_table; >- return str_replace(array_values($g_escape_table), >+ return str_replace(array_values($g_escape_table), > array_keys($g_escape_table), $text); > } > >@@ -735,8 +735,8 @@ > $match = "(?s:<!(--.*?--\s*)+>)|". # comment > "(?s:<\?.*?\?>)|". # processing instruction > "$nested_tags"; # nested tags >- >- preg_match_all("/($match)/", $str, $matches, >+ >+ preg_match_all("/($match)/", $str, $matches, > PREG_SET_ORDER | PREG_OFFSET_CAPTURE); > > foreach ($matches as $element) { >@@ -744,15 +744,15 @@ > $tag_start = $element[0][1]; > $sec_start = $tag_start + strlen($whole_tag); > if ($pos < $tag_start) { >- array_push($tokens, array('text', >+ array_push($tokens, array('text', > substr($str, $pos, $tag_start - $pos))); > } > array_push($tokens, array('tag', $whole_tag)); > $pos = $sec_start; > } >- >+ > if ($pos < $len) >- array_push($tokens, array('text', >+ array_push($tokens, array('text', > substr($str, $pos, $len - $pos))); > return $tokens; > } >diff -urN wordpress/wp-includes/links-update-xml.php wordpress-patched/wp-includes/links-update-xml.php >--- wordpress/wp-includes/links-update-xml.php 2004-05-05 01:44:59.000000000 -0500 >+++ wordpress-patched/wp-includes/links-update-xml.php 2004-06-04 12:01:29.801235682 -0500 >@@ -3,7 +3,7 @@ > // Copyright (C) 2003 Mike Little -- mike@zed1.com > > // Get the path of our parent directory: >-$parentpath = dirname(dirname(__FILE__)); >+$parentpath = "../"; > > require_once($parentpath.'/wp-config.php'); > >@@ -171,4 +171,4 @@ > //echo('</pre>'); > } // end if updated cache file > >-?> >\ No newline at end of file >+?> >diff -urN wordpress/wp-login.php wordpress-patched/wp-login.php >--- wordpress/wp-login.php 2004-05-17 20:29:29.000000000 -0500 >+++ wordpress-patched/wp-login.php 2004-06-05 07:45:18.802926122 -0500 >@@ -1,5 +1,5 @@ > <?php >-require(dirname(__FILE__) . '/wp-config.php'); >+require('./wp-config.php'); > > if (!function_exists('add_magic_quotes')) { > function add_magic_quotes($array) { >@@ -11,7 +11,7 @@ > } > } > return $array; >- } >+ } > } > > if (!get_magic_quotes_gpc()) { >@@ -63,9 +63,9 @@ > $pwd = $_POST['pwd']; > $redirect_to = $_POST['redirect_to']; > } >- >+ > $user = get_userdatabylogin($log); >- >+ > if (0 == $user->user_level) { > $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php'; > } >@@ -87,7 +87,7 @@ > } > > $query = "SELECT ID, user_login, user_pass FROM $tableusers WHERE user_login = '$user_login' AND user_pass = '$password'"; >- >+ > $login = $wpdb->get_row($query); > > if (!$login) { >@@ -201,7 +201,7 @@ > $user_login = $_POST["user_login"]; > $user_data = get_userdatabylogin($user_login); > // redefining user_login ensures we return the right case in the email >- $user_login = $user_data['user_login']; >+ $user_login = $user_data->user_login; > $user_email = $user_data->user_email; > > if (!$user_email || $user_email != $_POST['email']) die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or email address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword')); >@@ -213,7 +213,7 @@ > $message .= "Password: $user_pass\r\n"; > $message .= 'Login at: ' . get_settings('siteurl') . '/wp-login.php'; > >- $m = mail($user_email, '[' . get_settings('blogname') . "] Your weblog's login/password", $message); >+ $m = mail($user_email, '[' . get_settings('blogname') . "] Your weblog's login/password", $message, 'From: ' .get_settings('blogname'). ' WordPress Admin <' .get_settings('admin_email'). '>'); > > if ($m == false) { > echo "<p>The email could not be sent.<br />\n"; >@@ -223,7 +223,7 @@ > echo "<p>The email was sent successfully to $user_login's email address.<br /> > <a href='wp-login.php' title='Check your email first, of course'>Click here to login!</a></p>"; > // send a copy of password change notification to the admin >- mail(get_settings('admin_email'), '[' . get_settings('blogname') . "] Password Lost/Change", "Password Lost and Changed for user: $user_login"); >+ mail(get_settings('admin_email'), '[' . get_settings('blogname') . "] Password Lost/Change", "Password Lost and Changed for user: $user_login", 'From: ' .get_settings('blogname'). ' WordPress <' .get_settings('admin_email'). '>'); > die(); > } > >@@ -247,7 +247,7 @@ > } else { > return true; > } >- } >+ } > > if ( !(checklogin()) ) { > if (!empty($_COOKIE['wordpressuser_'.$cookiehash])) { >diff -urN wordpress/wp-mail.php wordpress-patched/wp-mail.php >--- wordpress/wp-mail.php 2004-05-19 00:43:32.000000000 -0500 >+++ wordpress-patched/wp-mail.php 2004-06-04 12:01:29.844220870 -0500 >@@ -1,7 +1,7 @@ > <?php >-require(dirname(__FILE__) . '/wp-config.php'); >+require('./wp-config.php'); > >-require_once(ABSPATH.WPINC.'/class-pop3.php'); >+require_once('wp-includes/class-pop3.php'); > > error_reporting(2037); > >@@ -154,4 +154,4 @@ > > $pop3->quit(); > >-?> >\ No newline at end of file >+?> >diff -urN wordpress/wp-pass.php wordpress-patched/wp-pass.php >--- wordpress/wp-pass.php 2004-04-20 17:56:36.000000000 -0500 >+++ wordpress-patched/wp-pass.php 2004-06-04 12:36:04.570449385 -0500 >@@ -4,7 +4,7 @@ > It doesn't need to connect to the DB, or do anything fancy at all. Yum. > -- Matt > */ >-require(dirname(__FILE__) . '/wp-config.php'); >+require('./wp-config.php'); > setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30); > header('Location: ' . $_SERVER['HTTP_REFERER']); > >diff -urN wordpress/wp-rdf.php wordpress-patched/wp-rdf.php >--- wordpress/wp-rdf.php 2004-05-19 05:24:25.000000000 -0500 >+++ wordpress-patched/wp-rdf.php 2004-06-04 12:35:23.068560172 -0500 >@@ -2,7 +2,7 @@ > if (! $feed) { > $blog = 1; // enter your blog's ID > $doing_rss = 1; >- require('wp-blog-header.php'); >+ require('./wp-blog-header.php'); > } > $more = 1; > >@@ -51,7 +51,7 @@ > <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description> > <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded> > <?php endif; ?> >- >+ > </item> > <?php } } ?> > </rdf:RDF> >\ No newline at end of file >diff -urN wordpress/wp-rss.php wordpress-patched/wp-rss.php >--- wordpress/wp-rss.php 2004-05-21 17:32:58.000000000 -0500 >+++ wordpress-patched/wp-rss.php 2004-06-04 12:30:29.428796031 -0500 >@@ -3,7 +3,7 @@ > if (! $feed) { > $blog = 1; // enter your blog's ID > $doing_rss = 1; >- require('wp-blog-header.php'); >+ require('./wp-blog-header.php'); > } > > header('Content-type: text/xml', true); >@@ -26,7 +26,7 @@ > // we might use this in the future, but not now, that's why it's commented in PHP > // so that it doesn't appear at all in the RSS > // echo "<category>"; the_category_unicode(); echo "</category>"; >-$more = 1; >+$more = 1; > if (get_settings('rss_use_excerpt')) { > ?> > <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> >diff -urN wordpress/wp-rss2.php wordpress-patched/wp-rss2.php >--- wordpress/wp-rss2.php 2004-05-22 00:06:00.000000000 -0500 >+++ wordpress-patched/wp-rss2.php 2004-06-04 12:30:03.218655242 -0500 >@@ -1,8 +1,8 @@ >-<?php >+<?php > if (!isset($feed)) { > $blog = 1; > $doing_rss = 1; >- require('wp-blog-header.php'); >+ require('./wp-blog-header.php'); > } > $more = 1; > $charset = get_settings('blog_charset'); >@@ -13,7 +13,7 @@ > <?php echo '<?xml version="1.0" encoding="' . $charset . '"?'.'>'; ?> > > <!-- generator="wordpress/<?php echo $wp_version ?>" --> >-<rss version="2.0" >+<rss version="2.0" > xmlns:content="http://purl.org/rss/1.0/modules/content/" > xmlns:wfw="http://wellformedweb.org/CommentAPI/" > > >diff -urN wordpress/wp-trackback.php wordpress-patched/wp-trackback.php >--- wordpress/wp-trackback.php 2004-04-24 16:52:24.000000000 -0500 >+++ wordpress-patched/wp-trackback.php 2004-06-04 12:01:36.077073146 -0500 >@@ -1,5 +1,5 @@ > <?php >-require(dirname(__FILE__) . '/wp-config.php'); >+require('./wp-config.php'); > > // trackback is done by a POST > $request_array = 'HTTP_POST_VARS'; >@@ -88,4 +88,4 @@ > do_action('trackback_post', $comment_ID); > } > } >-?> >\ No newline at end of file >+?>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53051
: 32701 |
32702
|
32706