The O.C. Disorder;; Props Nazgul. fixes 3853

git-svn-id: http://svn.automattic.com/wordpress/trunk@4937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-02-25 13:26:18 +00:00
parent 13968c70f6
commit 6fc0e8185f
2 changed files with 2 additions and 2 deletions

View File

@ -558,7 +558,7 @@ EOD;
elseif ( isset( $_SERVER['HTTP_TITLE'] ) ) elseif ( isset( $_SERVER['HTTP_TITLE'] ) )
$slug = sanitize_file_name( $_SERVER['HTTP_TITLE'] ); $slug = sanitize_file_name( $_SERVER['HTTP_TITLE'] );
elseif ( empty( $slug ) ) // just make a random name elseif ( empty( $slug ) ) // just make a random name
$slug = substr( md5( uniqid( microtime() ) ), 0, 7);; $slug = substr( md5( uniqid( microtime() ) ), 0, 7);
$ext = preg_replace( '|.*/([a-z]+)|', '$1', $_SERVER['CONTENT_TYPE'] ); $ext = preg_replace( '|.*/([a-z]+)|', '$1', $_SERVER['CONTENT_TYPE'] );
$slug = "$slug.$ext"; $slug = "$slug.$ext";
$file = wp_upload_bits( $slug, NULL, $bits); $file = wp_upload_bits( $slug, NULL, $bits);

View File

@ -95,7 +95,7 @@ function comment_text_rss() {
function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'nolongerused') { function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'nolongerused') {
$url = get_post_comments_feed_link();; $url = get_post_comments_feed_link();
echo "<a href='$url'>$link_text</a>"; echo "<a href='$url'>$link_text</a>";
} }