[wp-hackers] Custom field for enclosures

Karl Wångstedt maillist at wangstedt.net
Thu Mar 18 22:54:20 UTC 2010

I've been keeping up with the WP3 development the last few months, and just recently came across trying to publish multimedia to a test site.

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.

I did a bit of research and I can't seem to find where the 'publish_post' action is applied. There's no do_action('publish_post', $post_ID); in wp-includes/post.php, and I suppose the add_action( 'publish_post', '_publish_post_hook', 5, 1 ); in wp-includes/default-filters.php is not run due to that.

Is this expected behavior or a bug?

Karl Wångstedt

More information about the wp-hackers mailing list