Changeset 22843 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 11/26/2012 04:34:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r22834 r22843 1932 1932 wp_send_json_error(); 1933 1933 1934 // If this attachment is unattached, attach it. Primarily a back compat thing. 1935 if ( 0 == $post->post_parent && $insert_into_post_id = intval( $_POST['post_id'] ) ) { 1936 wp_update_post( array( 'ID' => $id, 'post_parent' => $insert_into_post_id ) ); 1937 } 1938 1934 1939 $html = isset( $attachment['title'] ) ? $attachment['title'] : ''; 1935 1940 if ( ! empty( $attachment['url'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.