WP_DEBUG enabled notice fixes.

git-svn-id: https://develop.svn.wordpress.org/trunk@9014 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-09-27 22:00:52 +00:00
parent 1601facb9e
commit 7030f729e3
4 changed files with 4 additions and 4 deletions

View File

@ -345,7 +345,7 @@ $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
<div id="descriptiondiv" class="stuffbox">
<h3><label for="link_description"><?php _e('Description') ?></label></h3>
<div class="inside">
<input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" /><br />
<input type="text" name="link_description" size="30" tabindex="1" value="<?php echo isset($link->link_description) ? $link->link_description : ''; ?>" id="link_description" /><br />
<?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?>
</div>
</div>

View File

@ -939,7 +939,7 @@ function media_upload_form( $errors = null ) {
$flash = false;
$flash = apply_filters('flash_uploader', $flash);
$post_id = intval($_REQUEST['post_id']);
$post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
?>
<div id="media-upload-notice">

View File

@ -141,7 +141,7 @@ function _cat_row( $category, $level, $name_override = false ) {
return apply_filters('cat_row', $output);
}
function link_cat_row( $category ) {
function link_cat_row( $category, $name_override = false ) {
global $class;
if ( !$category = get_term( $category, 'link_category' ) )

View File

@ -231,7 +231,7 @@ $messages[3] = __('Error saving media attachment.');
if ( isset($_GET['message']) && (int) $_GET['message'] )
$message = $messages[$_GET['message']];
if ( $message ) { ?>
if ( isset($message) ) { ?>
<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
}