Ticket #22085: 22085.2.diff
File 22085.2.diff, 913 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/media.php
383 383 * @param string $editor_id 384 384 */ 385 385 function media_buttons($editor_id = 'content') { 386 $post = get_post(); 387 if ( ! $post && ! empty( $GLOBALS['post_ID'] ) ) 388 $post = $GLOBALS['post_ID']; 389 386 390 wp_enqueue_media( array( 387 'post' => get_post()391 'post' => $post 388 392 ) ); 389 393 390 394 // $context = apply_filters('media_buttons_context', __('Upload/Insert %s')); -
wp-includes/media.php
1393 1393 'nonce' => array( 1394 1394 'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ), 1395 1395 ), 1396 'postId' => 0, 1396 1397 ); 1397 1398 1398 1399 $post = null;