Warning fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@9477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-02 21:40:35 +00:00
parent 63f6b5312b
commit 39f426065e
2 changed files with 5 additions and 4 deletions

View File

@ -239,7 +239,7 @@ if ( $page_links )
<div class="col-wrap">
<?php if ( current_user_can('manage_categories') ) { ?>
<?php do_action('add_category_form_pre', $category); ?>
<?php $category = (object) array(); $category->parent = 0; do_action('add_category_form_pre', $category); ?>
<div class="form-wrap">
<h3><?php _e('Add Category'); ?></h3>

View File

@ -204,7 +204,8 @@ function inline_edit_term_row($type) {
$is_tag = $type == 'tag';
$columns = $is_tag ? get_column_headers('tag') : get_column_headers('category');
$hidden = (array) get_user_option( "manage-$type-columns-hidden" ); ?>
$hidden = (array) get_user_option( "manage-$type-columns-hidden" );
$output = ''; ?>
<form method="get" action=""><table style="display: none"><tbody id="inlineedit">
<tr id="inline-edit" style="display: none"><td colspan="8">
@ -229,7 +230,7 @@ function inline_edit_term_row($type) {
</div>
<?php
$output .= "<td $attributes>$edit</td>";
$output .= "<td $attributes></td>";
break;
case 'slug': ?>
<div class="tax-slug quick-edit-div"<?php echo $style ?> title="<?php _e('Slug'); ?>">
@ -240,7 +241,7 @@ function inline_edit_term_row($type) {
</div>
<?php
$output .= "<td $attributes>$category->slug</td>";
$output .= "<td $attributes></td>";
break;
case 'posts':
if ( 'category' == $type ) { ?>