Make WordPress Core

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


Ignore:
Location:
tags/2.6.5
Files:
5 edited

Legend:

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

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

    r59499 r59499  
    496496 */
    497497function self_link() {
    498     echo 'http'
    499         . ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://'
    500         . $_SERVER['HTTP_HOST']
    501         . wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1);
     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        );
    502506}
    503507
  • tags/2.6.5/wp-includes/post.php

    r59499 r59499  
    550550    global $wpdb;
    551551
    552     $post_id = absint( $post_id );
     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;
    553555
    554556    // expected_slashed ($key, $value)
     
    630632function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') {
    631633    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;
    632638
    633639    // expected_slashed ($meta_key)
  • tags/2.6.5/wp-includes/version.php

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

    r59499 r59499  
    13441344        $actual_post = wp_get_single_post($post_ID,ARRAY_A);
    13451345
    1346         if (!$actual_post) {
     1346        if (!$actual_post || $actual_post['post_type'] != '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) {
     2369        if (!$actual_post || $actual_post['post_type'] != 'post') {
    23702370            return new IXR_Error(404, __('Sorry, no such post.'));
    23712371        }
Note: See TracChangeset for help on using the changeset viewer.