function update_meta( $meta_id,
$meta_key,
$meta_value ) { $meta_key =
wp_unslash( $meta_key );
$meta_value =
wp_unslash( $meta_value );
return update_metadata_by_mid( 'post',
$meta_id,
$meta_value,
$meta_key );
}//
// Private.
//
/**
* Replaces hrefs of attachment anchors with up-to-date permalinks.
*
* @since 2.3.0
* @access private
*
* @param int|object $post Post ID or post object.
* @return void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success.
*/