mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Keep it separated.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5870827adf
commit
40c697b18f
@ -60,7 +60,7 @@ function get_category_rss_link($echo = false, $category_id, $category_nicename)
|
||||
return $link;
|
||||
}
|
||||
|
||||
function the_category($seperator = '', $parents='') {
|
||||
function the_category($separator = '', $parents='') {
|
||||
$categories = get_the_category();
|
||||
if (empty($categories)) {
|
||||
_e('Uncategorized');
|
||||
@ -68,7 +68,7 @@ function the_category($seperator = '', $parents='') {
|
||||
}
|
||||
|
||||
$thelist = '';
|
||||
if ('' == $seperator) {
|
||||
if ('' == $separator) {
|
||||
$thelist .= '<ul class="post-categories">';
|
||||
foreach ($categories as $category) {
|
||||
$category->cat_name = $category->cat_name;
|
||||
@ -97,7 +97,7 @@ function the_category($seperator = '', $parents='') {
|
||||
$i = 0;
|
||||
foreach ($categories as $category) {
|
||||
$category->cat_name = $category->cat_name;
|
||||
if (0 < $i) $thelist .= $seperator . ' ';
|
||||
if (0 < $i) $thelist .= $separator . ' ';
|
||||
switch(strtolower($parents)) {
|
||||
case 'multiple':
|
||||
if ($category->category_parent) $thelist .= get_category_parents($category->category_parent, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user