Changeset 6354
- Timestamp:
- 12/05/2007 12:29:05 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r5795 r6354 225 225 $id = wp_insert_attachment($object, $file); 226 226 227 $upload = array('file' => $file, 'id' => $id);228 229 227 list($width, $height, $type, $attr) = getimagesize( $file ); 230 228 -
trunk/wp-admin/edit-link-form.php
r6213 r6354 12 12 } 13 13 14 function xfn_check($class, $value = '', $ type = 'check') {14 function xfn_check($class, $value = '', $depreciated = null) { 15 15 global $link; 16 16 -
trunk/wp-admin/includes/comment.php
r5821 r6354 9 9 10 10 function edit_comment() { 11 global $user_ID;12 11 13 $comment_ID = (int) $_POST['comment_ID'];14 12 $comment_post_ID = (int) $_POST['comment_post_ID']; 15 13 -
trunk/wp-admin/includes/export.php
r6335 r6354 101 101 $categories = get_the_category(); 102 102 $tags = get_the_tags(); 103 $cat_names = array();104 $tag_names = array();105 103 $the_list = ''; 106 104 $filter = 'rss'; -
trunk/wp-admin/includes/plugin.php
r6320 r6354 154 154 global $_wp_real_parent_file; 155 155 global $_wp_submenu_nopriv; 156 global $_wp_menu_nopriv;157 156 158 157 $file = plugin_basename( $file ); -
trunk/wp-admin/includes/post.php
r6333 r6354 3 3 // Update an existing post with values provided in $_POST. 4 4 function edit_post() { 5 global $user_ID;6 5 7 6 $post_ID = (int) $_POST['post_ID']; … … 351 350 wp_cache_delete($post_ID, 'post_meta'); 352 351 353 $ result = $wpdb->query( "354 355 356 357 352 $wpdb->query( " 353 INSERT INTO $wpdb->postmeta 354 (post_id,meta_key,meta_value ) 355 VALUES ('$post_ID','$metakey','$metavalue' ) 356 " ); 358 357 return $wpdb->insert_id; 359 358 } … … 429 428 // Replace hrefs of attachment anchors with up-to-date permalinks. 430 429 function _fix_attachment_links( $post_ID ) { 431 global $wp_rewrite;432 430 433 431 $post = & get_post( $post_ID, ARRAY_A ); -
trunk/wp-admin/includes/template.php
r6299 r6354 41 41 $edit = "<a href='categories.php?action=edit&cat_ID=$category->term_id' class='edit'>".__( 'Edit' )."</a></td>"; 42 42 $default_cat_id = (int) get_option( 'default_category' ); 43 $default_link_cat_id = (int) get_option( 'default_link_category' );44 43 45 44 if ( $category->term_id != $default_cat_id ) … … 91 90 $output = "<tr id='link-cat-$category->term_id'$class> 92 91 <th scope='row' style='text-align: center'>$category->term_id</th> 93 <td>" . ( $name_override ? $name_override : $ pad . ' ' . $category->name ) . "</td>92 <td>" . ( $name_override ? $name_override : $category->name ) . "</td> 94 93 <td>$category->description</td> 95 94 <td align='center'>$count</td> … … 126 125 127 126 function get_nested_categories( $default = 0, $parent = 0 ) { 128 global $post_ID, $ mode, $wpdb, $checked_categories;127 global $post_ID, $wpdb, $checked_categories; 129 128 130 129 if ( empty($checked_categories) ) { … … 391 390 392 391 function list_meta( $meta ) { 393 global $post_ID;394 392 // Exit if no meta 395 393 if (!$meta ) { … … 434 432 } 435 433 436 $key_js = js_escape( $entry['meta_key'] );437 434 $entry['meta_key'] = attribute_escape($entry['meta_key']); 438 435 $entry['meta_value'] = attribute_escape($entry['meta_value']); -
trunk/wp-admin/includes/upload.php
r6317 r6354 79 79 80 80 function wp_upload_view() { 81 global $style, $ post_id, $style;81 global $style, $style; 82 82 $id = get_the_ID(); 83 83 $attachment_data = wp_get_attachment_metadata( $id ); … … 269 269 $type = $file['type']; 270 270 $file = $file['file']; 271 $filename = basename($file);272 271 273 272 // Construct the attachment array -
trunk/wp-admin/includes/user.php
r6346 r6354 188 188 function get_others_unpublished_posts($user_id, $type='any') { 189 189 global $wpdb; 190 $user = get_userdata( $user_id );191 $level_key = $wpdb->prefix . 'user_level';192 190 193 191 $editable = get_editable_user_ids( $user_id ); … … 247 245 248 246 $id = (int) $id; 249 $user = get_userdata($id);250 247 251 248 if ($reassign == 'novalue') {
Note: See TracChangeset
for help on using the changeset viewer.