Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (12 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r23416 r23554  
    379379        // Add the meta-data
    380380        wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
    381         wp_update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );
     381        update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );
    382382
    383383        set_theme_mod('background_image', esc_url_raw($url));
     
    416416            $size = esc_attr( $_POST['size'] );
    417417
    418         wp_update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );
     418        update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );
    419419        $url = wp_get_attachment_image_src( $attachment_id, $size );
    420420        $thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail' );
Note: See TracChangeset for help on using the changeset viewer.