Changeset 6363
- Timestamp:
- 12/06/2007 06:37:30 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r6354 r6363 229 229 if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) { 230 230 set_theme_mod('header_image', clean_url($url)); 231 $header =apply_filters('wp_create_file_in_uploads', $file, $id); // For replication231 apply_filters('wp_create_file_in_uploads', $file, $id); // For replication 232 232 return $this->finished(); 233 233 } elseif ( $width > HEADER_IMAGE_WIDTH ) { -
trunk/wp-admin/edit-link-form.php
r6354 r6363 12 12 } 13 13 14 function xfn_check($class, $value = '', $deprec iated = null) {14 function xfn_check($class, $value = '', $deprecated = '') { 15 15 global $link; 16 16 -
trunk/wp-admin/includes/bookmark.php
r5906 r6363 152 152 153 153 function wp_update_link($linkdata) { 154 global $wpdb;155 156 154 $link_id = (int) $linkdata['link_id']; 157 155 -
trunk/wp-admin/includes/image.php
r6313 r6363 17 17 * If PHP does not have the functionality to save in a file of the same format, the thumbnail will be created as a jpeg. 18 18 */ 19 function wp_create_thumbnail( $file, $max_side, $deprec iated = '' ) {19 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { 20 20 if ( ctype_digit( $file ) ) // Handle int as attachment ID 21 21 $file = get_attached_file( $file ); -
trunk/wp-admin/includes/schema.php
r6199 r6363 255 255 256 256 function populate_roles_160() { 257 global $wp_roles;258 259 257 // Add roles 260 258 add_role('administrator', _c('Administrator|User role')); -
trunk/wp-admin/includes/taxonomy.php
r6329 r6363 41 41 42 42 function wp_delete_category($cat_ID) { 43 global $wpdb;44 45 43 $cat_ID = (int) $cat_ID; 46 44 $default = get_option('default_category'); … … 54 52 55 53 function wp_insert_category($catarr, $wp_error = false) { 56 global $wpdb;57 58 54 extract($catarr, EXTR_SKIP); 59 55 … … 96 92 97 93 function wp_update_category($catarr) { 98 global $wpdb;99 100 94 $cat_ID = (int) $catarr['cat_ID']; 101 95 … … 120 114 121 115 function get_tags_to_edit( $post_id ) { 122 global $wpdb;123 124 116 $post_id = (int) $post_id; 125 117 if ( !$post_id ) -
trunk/wp-admin/includes/template.php
r6362 r6363 125 125 126 126 function get_nested_categories( $default = 0, $parent = 0 ) { 127 global $post_ID, $ wpdb, $checked_categories;127 global $post_ID, $checked_categories; 128 128 129 129 if ( empty($checked_categories) ) { … … 227 227 228 228 function page_rows( $parent = 0, $level = 0, $pages = 0, $hierarchy = true ) { 229 global $ wpdb, $class, $post;229 global $class, $post; 230 230 231 231 if (!$pages ) … … 258 258 259 259 <?php 260 if ( $hierarchy ) page_rows( $id, $level + 1, $pages ); 260 if ( $hierarchy ) 261 page_rows( $id, $level + 1, $pages ); 261 262 } 262 263 } … … 323 324 324 325 function _wp_comment_list_item( $id, $alt = 0 ) { 325 global $authordata, $comment , $wpdb;326 global $authordata, $comment; 326 327 $comment =& get_comment( $id ); 327 328 $id = (int) $comment->comment_ID; … … 368 369 369 370 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { 370 global $wpdb;371 371 if (!$categories ) 372 372 $categories = get_categories( 'hide_empty=0' ); … … 441 441 $r .= "\n\t\t<input name='deletemeta[{$entry['meta_id']}]' type='submit' "; 442 442 $r .= "class='delete:the-list:meta-{$entry['meta_id']} deletemeta' tabindex='6' value='".attribute_escape(__( 'Delete' ))."' />"; 443 $r .= "<input type='hidden' name='_ajax_nonce' value='$nonce' />";444 443 $r .= "</td>\n\t</tr>"; 445 444 return $r; -
trunk/wp-admin/includes/upgrade.php
r6269 r6363 7 7 8 8 if ( !function_exists('wp_install') ) : 9 function wp_install($blog_title, $user_name, $user_email, $public, $ meta='') {9 function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') { 10 10 global $wp_rewrite; 11 11 -
trunk/wp-admin/includes/upload.php
r6354 r6363 79 79 80 80 function wp_upload_view() { 81 global $style , $style;81 global $style; 82 82 $id = get_the_ID(); 83 83 $attachment_data = wp_get_attachment_metadata( $id ); -
trunk/wp-admin/install-helper.php
r6291 r6363 17 17 } 18 18 //didn't find it try to create it. 19 $ q = $wpdb->query($create_ddl);19 $wpdb->query($create_ddl); 20 20 // we cannot directly tell that whether this succeeded! 21 21 foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) { … … 42 42 } 43 43 //didn't find it try to create it. 44 $ q = $wpdb->query($create_ddl);44 $wpdb->query($create_ddl); 45 45 // we cannot directly tell that whether this succeeded! 46 46 foreach ($wpdb->get_col("DESC $table_name",0) as $column ) { … … 64 64 if ($column == $column_name) { 65 65 //found it try to drop it. 66 $ q = $wpdb->query($drop_ddl);66 $wpdb->query($drop_ddl); 67 67 // we cannot directly tell that whether this succeeded! 68 68 foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
Note: See TracChangeset
for help on using the changeset viewer.