WordPress.org

Make WordPress Core

Changes from tags/2.6.5 at r46750 to tags/2.6.3 at r46750


Ignore:
Location:
tags/2.6.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tags/2.6.3/wp-admin/users.php

    r46750 r46750  
    129129    $go_delete = false;
    130130    foreach ( (array) $userids as $id ) {
    131         $id = (int) $id;
    132131        $user = new WP_User($id);
    133132        if ( $id == $current_user->ID ) {
  • tags/2.6.3/wp-includes/feed.php

    r46750 r46750  
    496496 */
    497497function self_link() {
    498     $host = @parse_url(get_option('home'));
    499     $host = $host['host'];
    500     echo clean_url(
    501         'http'
    502         . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
    503         . $host
    504         . stripslashes($_SERVER['REQUEST_URI'])
    505         );
     498    echo 'http'
     499        . ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://'
     500        . $_SERVER['HTTP_HOST']
     501        . wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1);
    506502}
    507503
  • tags/2.6.3/wp-includes/post.php

    r46750 r46750  
    550550    global $wpdb;
    551551
    552     // make sure meta is added to the post, not a revision
    553     if ( $the_post = wp_is_post_revision($post_id) )
    554         $post_id = $the_post;
     552    $post_id = absint( $post_id );
    555553
    556554    // expected_slashed ($key, $value)
     
    632630function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') {
    633631    global $wpdb;
    634 
    635     // make sure meta is added to the post, not a revision
    636     if ( $the_post = wp_is_post_revision($post_id) )
    637         $post_id = $the_post;
    638632
    639633    // expected_slashed ($meta_key)
  • tags/2.6.3/wp-includes/version.php

    r46750 r46750  
    99 * @global string $wp_version
    1010 */
    11 $wp_version = '2.6.5';
     11$wp_version = '2.6.3';
    1212
    1313/**
  • tags/2.6.3/xmlrpc.php

    r46750 r46750  
    13441344        $actual_post = wp_get_single_post($post_ID,ARRAY_A);
    13451345
    1346         if (!$actual_post || $actual_post['post_type'] != 'post') {
     1346        if (!$actual_post) {
    13471347            return new IXR_Error(404, __('Sorry, no such post.'));
    13481348        }
     
    23672367        $actual_post = wp_get_single_post($post_ID, ARRAY_A);
    23682368
    2369         if (!$actual_post || $actual_post['post_type'] != 'post') {
     2369        if (!$actual_post) {
    23702370            return new IXR_Error(404, __('Sorry, no such post.'));
    23712371        }
Note: See TracChangeset for help on using the changeset viewer.