Don't use deprecated functions. Props Nazgul. fixes #3186

git-svn-id: http://svn.automattic.com/wordpress/trunk@4264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-10-02 18:03:34 +00:00
parent e439988434
commit f129cef6b9
6 changed files with 6 additions and 6 deletions

View File

@ -408,7 +408,7 @@ class Dotclear_Import {
$cats = array();
if($cat1 = get_catbynicename($post_cat_name)) { $cats[1] = $cat1; }
if(!empty($cats)) { wp_set_post_cats('', $ret_id, $cats); }
if(!empty($cats)) { wp_set_post_categories($ret_id, $cats); }
}
}
// Store ID translation for later use

View File

@ -338,7 +338,7 @@ class Textpattern_Import {
if($cat1 = get_catbynicename($Category1)) { $cats[1] = $cat1; }
if($cat2 = get_catbynicename($Category2)) { $cats[2] = $cat2; }
if(!empty($cats)) { wp_set_post_cats('', $ret_id, $cats); }
if(!empty($cats)) { wp_set_post_categories($ret_id, $cats); }
}
}
// Store ID translation for later use

View File

@ -17,7 +17,7 @@
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<p class="postmetadata alt">
<small>

View File

@ -8,7 +8,7 @@
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>

View File

@ -15,7 +15,7 @@
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<p class="postmetadata alt">
<small>

View File

@ -102,7 +102,7 @@ function get_author_rss_link($echo = false, $author_id, $author_nicename) {
if ('' == $permalink_structure) {
$link = get_option('home') . '?feed=rss2&amp;author=' . $author_id;
} else {
$link = get_author_link(0, $author_id, $author_nicename);
$link = get_author_posts_url($author_id, $author_nicename);
$link = $link . "feed/";
}