Changeset 6551
- Timestamp:
- 01/04/2008 07:36:34 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-header.php
r6363 r6551 229 229 if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) { 230 230 set_theme_mod('header_image', clean_url($url)); 231 apply_filters('wp_create_file_in_uploads', $file, $id); // For replication231 do_action('wp_create_file_in_uploads', $file, $id); // For replication 232 232 return $this->finished(); 233 233 } elseif ( $width > HEADER_IMAGE_WIDTH ) { -
trunk/wp-admin/import/wordpress.php
r6532 r6551 107 107 } 108 108 if ( false !== strpos($importline, '</item>') ) { 109 $num++;110 109 $doing_entry = false; 111 110 if ($process_post_func) … … 401 400 $post_author = $this->checkauthor($post_author); //just so that if a post already exists, new users are not created by checkauthor 402 401 403 $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_ excerpt', 'post_status', 'post_name', 'comment_status', 'ping_status', 'post_modified', 'post_modified_gmt', 'guid', 'post_parent', 'menu_order', 'post_type');402 $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_status', 'post_name', 'comment_status', 'ping_status', 'guid', 'post_parent', 'menu_order', 'post_type'); 404 403 if ($post_type == 'attachment') { 405 404 $remote_url = $this->get_tag( $post, 'wp:attachment_url' ); -
trunk/wp-admin/import/wp-cat2tag.php
r6394 r6551 115 115 116 116 function _category_exists($cat_id) { 117 global $wpdb;118 119 117 $cat_id = (int) $cat_id; 120 118 -
trunk/wp-admin/includes/file.php
r6520 r6551 113 113 // If you override this, you must provide $ext and $type!!!! 114 114 $test_type = true; 115 $mimes = false; 115 116 116 117 // Install user overrides. Did we mention that this voids your warranty? -
trunk/wp-admin/includes/misc.php
r6387 r6551 131 131 // If siteurl or home changed, flush rewrite rules. 132 132 function update_home_siteurl( $old_value, $value ) { 133 global $wp_rewrite , $user_login, $user_pass_md5;133 global $wp_rewrite; 134 134 135 135 if ( defined( "WP_INSTALLING" ) ) -
trunk/wp-admin/includes/template.php
r6544 r6551 101 101 if ( $checked == $current) 102 102 echo ' checked="checked"'; 103 }104 105 // TODO: Remove?106 function documentation_link( $for ) {107 return;108 103 } 109 104 -
trunk/wp-admin/includes/update.php
r6151 r6551 3 3 // The admin side of our 1.0 update system 4 4 5 function core_update_footer( $msg ) {5 function core_update_footer( $msg = '' ) { 6 6 if ( !current_user_can('manage_options') ) 7 7 return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] ); -
trunk/wp-admin/link-import.php
r6230 r6551 124 124 125 125 if ( ! $blogrolling ) 126 apply_filters( 'wp_delete_file', $opml_url);126 do_action( 'wp_delete_file', $opml_url); 127 127 @unlink($opml_url); 128 128 ?> -
trunk/wp-app.php
r6507 r6551 426 426 $file = $file['file']; 427 427 428 apply_filters('wp_create_file_in_uploads', $file); // replicate428 do_action('wp_create_file_in_uploads', $file); // replicate 429 429 430 430 // Construct the attachment array -
trunk/wp-includes/category-template.php
r6365 r6551 67 67 68 68 function get_the_category($id = false) { 69 global $post , $term_cache;69 global $post; 70 70 71 71 $id = (int) $id; -
trunk/wp-includes/classes.php
r6456 r6551 741 741 $r = wp_parse_args( $args, $defaults ); 742 742 extract( $r, EXTR_SKIP ); 743 $pos tition = preg_replace( '/[^a-z0-9:_-]/i', '', $position );743 $position = preg_replace( '/[^a-z0-9:_-]/i', '', $position ); 744 744 745 745 if ( is_wp_error($id) ) { -
trunk/wp-includes/comment-template.php
r6495 r6551 341 341 * @since 0.71 342 342 * 343 * @param string $ fileNot Used344 * @param bool $ echoNot Used345 */ 346 function comments_link( $ file = '', $echo = true) {343 * @param string $deprecated Not Used 344 * @param bool $deprecated Not Used 345 */ 346 function comments_link( $deprecated = '', $deprecated = '' ) { 347 347 echo get_comments_link(); 348 348 } … … 358 358 */ 359 359 function get_comments_number( $post_id = 0 ) { 360 global $id; 360 361 $post_id = (int) $post_id; 361 362 … … 537 538 * @since 0.71 538 539 * 539 * @param int $ timezone Not used540 */ 541 function trackback_rdf($ timezone = 0) {540 * @param int $deprecated Not used (Was $timezone = 0) 541 */ 542 function trackback_rdf($deprecated = '') { 542 543 if (stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') === false) { 543 544 echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" -
trunk/wp-includes/comment.php
r6534 r6551 106 106 // Deprecate in favor of get_comment()? 107 107 function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) { // less flexible, but saves DB queries 108 global $postc, $ id, $wpdb;108 global $postc, $wpdb; 109 109 if ( $no_cache ) { 110 110 $query = $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_ID = %d", $comment_ID); … … 131 131 function get_lastcommentmodified($timezone = 'server') { 132 132 global $cache_lastcommentmodified, $wpdb; 133 $add_seconds_blog = get_option('gmt_offset') * 3600;134 133 $add_seconds_server = date('Z'); 135 134 $now = current_time('mysql', 1); … … 178 177 ); 179 178 180 foreach ( $totals as $ i => $row ) {179 foreach ( $totals as $row ) { 181 180 switch ( $row['comment_approved'] ) { 182 181 case 'spam': … … 520 519 $comment_date_gmt = get_gmt_from_date($comment_date); 521 520 522 $ result = $wpdb->query(521 $wpdb->query( 523 522 "UPDATE $wpdb->comments SET 524 523 comment_content = '$comment_content', … … 610 609 $pingback_str_squote = 'rel=\'pingback\''; 611 610 $x_pingback_str = 'x-pingback: '; 612 $pingback_href_original_pos = 27;613 611 614 612 extract(parse_url($url), EXTR_SKIP); -
trunk/wp-includes/deprecated.php
r6517 r6551 912 912 * @param string $file 913 913 */ 914 function permalink_single_rss($ file= '') {914 function permalink_single_rss($deprecated = '') { 915 915 _deprecated_function(__FUNCTION__, '0.0', 'the_permalink_rss()'); 916 916 the_permalink_rss(); … … 1207 1207 _deprecated_function(__FUNCTION__, '0.0', 'get_category_feed_link()'); 1208 1208 1209 $link = get_category_feed_link($cat_ID, $feed ='rss2');1209 $link = get_category_feed_link($cat_ID, 'rss2'); 1210 1210 1211 1211 if ( $echo ) … … 1264 1264 } 1265 1265 1266 /** 1267 * documentation_link() - Unused Admin function 1268 * @since 2.0 1269 * @param string $deprecated Unknown 1270 * @deprecated 2.4 1271 */ 1272 function documentation_link( $deprecated = '' ) { 1273 _deprecated_function( __FUNCTION__, '2.4', '' ); 1274 return; 1275 } 1276 1266 1277 ?> -
trunk/wp-includes/functions.php
r6546 r6551 116 116 $weekday = date( 'w', $day ); 117 117 $i = 86400; 118 if( !is_numeric($ a) )118 if( !is_numeric($start_of_week) ) 119 119 $start_of_week = get_option( 'start_of_week' ); 120 120 -
trunk/wp-includes/link-template.php
r6415 r6551 33 33 switch ( strtolower($mode) ) { 34 34 case 'title': 35 $title = sanitize_title($post->post_title) . '-' . $ id;35 $title = sanitize_title($post->post_title) . '-' . $post->ID; 36 36 echo '<a id="'.$title.'"></a>'; 37 37 break; … … 317 317 $link = get_option('home') . '?feed=rss2&author=' . $author_id; 318 318 } else { 319 $link = get_author_posts_url($author_id , $author_nicename);319 $link = get_author_posts_url($author_id); 320 320 $link = trailingslashit($link) . user_trailingslashit('feed', 'feed'); 321 321 } -
trunk/wp-includes/pluggable.php
r6531 r6551 292 292 293 293 if ( !function_exists('wp_login') ) : 294 function wp_login($username, $password, $deprecated = false) {295 global $ wpdb, $error;294 function wp_login($username, $password, $deprecated = '') { 295 global $error; 296 296 297 297 $username = sanitize_user($username); … … 803 803 if ( !function_exists('wp_setcookie') ) : 804 804 function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) { 805 _deprecated_function( __FUNCTION__, '2.4', 'wp_set_auth_cookie()' ); 805 806 $user = get_userdatabylogin($username); 806 807 wp_set_auth_cookie($user->ID, $remember); … … 811 812 if ( !function_exists('wp_clearcookie') ) : 812 813 function wp_clearcookie() { 814 _deprecated_function( __FUNCTION__, '2.4', 'wp_clear_auth_cookie()' ); 813 815 wp_clear_auth_cookie(); 814 816 } … … 818 820 if ( !function_exists('wp_get_cookie_login') ): 819 821 function wp_get_cookie_login() { 822 _deprecated_function( __FUNCTION__, '2.4', '' ); 820 823 return false; 821 824 } -
trunk/wp-includes/post.php
r6546 r6551 2564 2564 * @param object $post Object type containing the post information 2565 2565 */ 2566 function _future_post_hook($ post_id, $post) {2566 function _future_post_hook($deprecated = '', $post) { 2567 2567 wp_clear_scheduled_hook( 'publish_future_post', $post->ID ); 2568 2568 wp_schedule_single_event(strtotime($post->post_date_gmt. ' GMT'), 'publish_future_post', array($post->ID)); -
trunk/wp-includes/taxonomy.php
r6424 r6551 807 807 } else if ( 'rss' == $context ) { 808 808 $value = apply_filters("term_${field}_rss", $value, $taxonomy); 809 $value = apply_filters("${taxonomy}_$ field_rss", $value);809 $value = apply_filters("${taxonomy}_${field}_rss", $value); 810 810 } else { 811 811 // Use display filters by default.
Note: See TracChangeset
for help on using the changeset viewer.