X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..b137f4ce021b4022c56f452c2eafa7abfcef0a7c:/wp-admin/custom-header.php diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index f1567f09..cdd58fa9 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -595,7 +595,9 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> 'post_title' => $filename, 'post_content' => $url, 'post_mime_type' => $type, - 'guid' => $url); + 'guid' => $url, + 'context' => 'custom-header' + ); // Save the data $id = wp_insert_attachment($object, $file); @@ -687,7 +689,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> 'post_title' => basename($cropped), 'post_content' => $url, 'post_mime_type' => 'image/jpeg', - 'guid' => $url + 'guid' => $url, + 'context' => 'custom-header' ); // Update the attachment