WP_DEBUG enabled notice fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4e99179e62
commit
33ad03831d
|
@ -345,7 +345,7 @@ $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
|
||||||
<div id="descriptiondiv" class="stuffbox">
|
<div id="descriptiondiv" class="stuffbox">
|
||||||
<h3><label for="link_description"><?php _e('Description') ?></label></h3>
|
<h3><label for="link_description"><?php _e('Description') ?></label></h3>
|
||||||
<div class="inside">
|
<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.'); ?>
|
<?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -939,7 +939,7 @@ function media_upload_form( $errors = null ) {
|
||||||
$flash = false;
|
$flash = false;
|
||||||
|
|
||||||
$flash = apply_filters('flash_uploader', $flash);
|
$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">
|
<div id="media-upload-notice">
|
||||||
|
|
|
@ -141,7 +141,7 @@ function _cat_row( $category, $level, $name_override = false ) {
|
||||||
return apply_filters('cat_row', $output);
|
return apply_filters('cat_row', $output);
|
||||||
}
|
}
|
||||||
|
|
||||||
function link_cat_row( $category ) {
|
function link_cat_row( $category, $name_override = false ) {
|
||||||
global $class;
|
global $class;
|
||||||
|
|
||||||
if ( !$category = get_term( $category, 'link_category' ) )
|
if ( !$category = get_term( $category, 'link_category' ) )
|
||||||
|
|
|
@ -231,7 +231,7 @@ $messages[3] = __('Error saving media attachment.');
|
||||||
if ( isset($_GET['message']) && (int) $_GET['message'] )
|
if ( isset($_GET['message']) && (int) $_GET['message'] )
|
||||||
$message = $messages[$_GET['message']];
|
$message = $messages[$_GET['message']];
|
||||||
|
|
||||||
if ( $message ) { ?>
|
if ( isset($message) ) { ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
|
<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
|
||||||
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue