A few typos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
10c6b7ea9c
commit
fc932087d4
|
@ -412,7 +412,7 @@ function get_commentdata($comment_ID,$no_cache=0,$include_unapproved=false) { //
|
||||||
|
|
||||||
function get_catname($cat_ID) {
|
function get_catname($cat_ID) {
|
||||||
global $tablecategories, $cache_catnames, $wpdb;
|
global $tablecategories, $cache_catnames, $wpdb;
|
||||||
if ( !$cache_catnames) ) {
|
if ( !$cache_catnames ) {
|
||||||
$results = $wpdb->get_results("SELECT * FROM $tablecategories") or die('Oops, couldn\'t query the db for categories.');
|
$results = $wpdb->get_results("SELECT * FROM $tablecategories") or die('Oops, couldn\'t query the db for categories.');
|
||||||
foreach ($results as $post) {
|
foreach ($results as $post) {
|
||||||
$cache_catnames[$post->cat_ID] = $post->cat_name;
|
$cache_catnames[$post->cat_ID] = $post->cat_name;
|
||||||
|
|
|
@ -113,7 +113,7 @@ function the_category_rss($type = 'rss') {
|
||||||
|
|
||||||
function get_the_category_by_ID($cat_ID) {
|
function get_the_category_by_ID($cat_ID) {
|
||||||
global $tablecategories, $cache_categories, $wpdb;
|
global $tablecategories, $cache_categories, $wpdb;
|
||||||
if ( !$cache_categories[$cat_ID]) ) {
|
if ( !$cache_categories[$cat_ID] ) {
|
||||||
$cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
|
$cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
|
||||||
$cache_categories[$cat_ID]->cat_name = $cat_name;
|
$cache_categories[$cat_ID]->cat_name = $cat_name;
|
||||||
} else {
|
} else {
|
||||||
|
@ -330,7 +330,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
|
||||||
|
|
||||||
$link .= '<a href="' . get_category_rss_link(0, $category->cat_ID, $category->category_nicename) . '"';
|
$link .= '<a href="' . get_category_rss_link(0, $category->cat_ID, $category->category_nicename) . '"';
|
||||||
|
|
||||||
if (! empty($feed)) {
|
if ( !empty($feed) ) {
|
||||||
$title = ' title="' . stripslashes($feed) . '"';
|
$title = ' title="' . stripslashes($feed) . '"';
|
||||||
$alt = ' alt="' . stripslashes($feed) . '"';
|
$alt = ' alt="' . stripslashes($feed) . '"';
|
||||||
$name = stripslashes($feed);
|
$name = stripslashes($feed);
|
||||||
|
|
Loading…
Reference in New Issue