Filed under: personal
Hi Everybody!
Ok, so I’ve never asked for help on here before but I just can’t find any anywhere else. I’m in the process of learning how to customize my own blog (by editing code) and I have a warning showing up on every post at the top saying this:
Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /****/***/***********/****/wp-includes/category-template.php on line 176
This is the only place that I could find the words “array_key_exists” in the category-template.php file:
function in_category( $category ) { // Check if the current post is in the given category global $post, $blog_id;
$categories = get_object_term_cache($post->ID, ‘category’);
if ( false === $categories )
$categories = wp_get_object_terms($post->ID, ‘category’);
if(array_key_exists($category, $categories))
return true;
else
return false;
I hate that I’m putting this stuff up on here but I do not know what this is telling me exactly. I’m really hoping that someone can help me! If you are a kind person who doesn’t mind helping me out please reply in the comments.
Note: The *stars* above are folder names I want to remain private. I am using WordPress software.
Thank you!
1 Comment so far
Leave a comment
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
I love your site!
_____________________
Comment by Michael Tim February 28, 2009 @ 11:15 amExperiencing a slow PC recently? Fix it now!