[wp-hackers] Custom field for enclosures
Karl Wångstedt
maillist at wangstedt.net
Sat Mar 20 09:22:28 UTC 2010
Both .mov and .mp4 is configured to return video/quicktime and video/mp4 respectively in httpd.conf. I don't think that is where the problem is.
Do you get the enclosures field populated automatically?
I did open a ticket in Trac, but if it's only affecting my install I'll delete it.
Karl Wångstedt
19 mar 2010 kl. 14.26 skrev Otto:
> On Thu, Mar 18, 2010 at 5:54 PM, Karl Wångstedt <maillist at wangstedt.net> wrote:
>> One of the sites I manage is a podcasting site, and I'm preparing a move to html5 (with <video>) and WP3 for it — hence the test site.
>>
>> It seems like the enclosure custom field isn't automatically generated when a video is linked to in the post anymore.
>
> Check the mime type.
>
> WordPress does a call to get the file via the webserver and looks at
> the headers return. If the mime type that the webserver returns starts
> with "video" or "audio" then it gets enclosed. So if your webserver
> isn't configured to return the right mime type for that filetype, no
> enclosure gets made.
>
> This all happens in do_enclose, which gets called from do_all_pings,
> which is hooked to the do_pings action, which is a scheduled event
> created by the _publish_post_hook.
>
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list