PledgeMeta: Include post ID when updating post title

This commit is contained in:
Corey McKrill 2019-10-25 16:54:27 -07:00
parent a82059564c
commit cb28052502
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38

View file

@ -285,6 +285,7 @@ function update_generated_meta( $meta_id, $object_id, $meta_key, $_meta_value )
case META_PREFIX . 'org-name':
if ( 'updated_postmeta' === current_action() ) {
wp_update_post( array(
'ID' => $object_id,
'post_title' => $_meta_value,
) );
}