diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 8d605655df..2cda013b29 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -224,8 +224,6 @@ Event.observe( window, 'load', hide_text ); // Save the data $id = wp_insert_attachment($object, $file); - $upload = array('file' => $file, 'id' => $id); - list($width, $height, $type, $attr) = getimagesize( $file ); if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) { diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index 920ebe433f..ed59a145d0 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -11,7 +11,7 @@ if ( ! empty($link_id) ) { $nonce_action = 'add-bookmark'; } -function xfn_check($class, $value = '', $type = 'check') { +function xfn_check($class, $value = '', $depreciated = null) { global $link; $link_rel = $link->link_rel; diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php index ae0d1d9631..e399a31081 100644 --- a/wp-admin/includes/comment.php +++ b/wp-admin/includes/comment.php @@ -8,9 +8,7 @@ function comment_exists($comment_author, $comment_date) { } function edit_comment() { - global $user_ID; - $comment_ID = (int) $_POST['comment_ID']; $comment_post_ID = (int) $_POST['comment_post_ID']; if (!current_user_can( 'edit_post', $comment_post_ID )) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index aa20dc2381..467e7bb9e0 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -100,8 +100,6 @@ function wxr_tag_description($t) { function wxr_post_taxonomy() { $categories = get_the_category(); $tags = get_the_tags(); - $cat_names = array(); - $tag_names = array(); $the_list = ''; $filter = 'rss'; diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index af4de4ae7b..1d527dece8 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -153,7 +153,6 @@ function add_submenu_page( $parent, $page_title, $menu_title, $access_level, $fi global $menu; global $_wp_real_parent_file; global $_wp_submenu_nopriv; - global $_wp_menu_nopriv; $file = plugin_basename( $file ); diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 55a7ab37bb..c8bada430d 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -2,7 +2,6 @@ // Update an existing post with values provided in $_POST. function edit_post() { - global $user_ID; $post_ID = (int) $_POST['post_ID']; @@ -350,11 +349,11 @@ function add_meta( $post_ID ) { wp_cache_delete($post_ID, 'post_meta'); - $result = $wpdb->query( " - INSERT INTO $wpdb->postmeta - (post_id,meta_key,meta_value ) - VALUES ('$post_ID','$metakey','$metavalue' ) - " ); + $wpdb->query( " + INSERT INTO $wpdb->postmeta + (post_id,meta_key,meta_value ) + VALUES ('$post_ID','$metakey','$metavalue' ) + " ); return $wpdb->insert_id; } return false; @@ -428,7 +427,6 @@ function update_meta( $mid, $mkey, $mvalue ) { // Replace hrefs of attachment anchors with up-to-date permalinks. function _fix_attachment_links( $post_ID ) { - global $wp_rewrite; $post = & get_post( $post_ID, ARRAY_A ); diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 23eff600c9..54e2dfb95e 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -40,7 +40,6 @@ function _cat_row( $category, $level, $name_override = false ) { if ( current_user_can( 'manage_categories' ) ) { $edit = "".__( 'Edit' ).""; $default_cat_id = (int) get_option( 'default_category' ); - $default_link_cat_id = (int) get_option( 'default_link_category' ); if ( $category->term_id != $default_cat_id ) $edit .= "