wp_update_post_meta is WP3.6
using update_post_meta makes it compatible with 3.5
main blog bugfix for 3.5