Changeset 22843
- Timestamp:
- 11/26/2012 04:34:42 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 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'] ) ) { -
trunk/wp-includes/js/media-editor.js
r22835 r22843 451 451 nonce: wp.media.view.settings.nonce.sendToEditor, 452 452 attachment: options, 453 html: html 453 html: html, 454 post_id: wp.media.view.settings.postId 454 455 }).done( function( resp ) { 455 456 wp.media.editor.insert( resp );
Note: See TracChangeset
for help on using the changeset viewer.