mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 01:01:18 +03:00
PledgeMeta: Include post ID when updating post title
This commit is contained in:
parent
a82059564c
commit
cb28052502
|
@ -285,6 +285,7 @@ function update_generated_meta( $meta_id, $object_id, $meta_key, $_meta_value )
|
||||||
case META_PREFIX . 'org-name':
|
case META_PREFIX . 'org-name':
|
||||||
if ( 'updated_postmeta' === current_action() ) {
|
if ( 'updated_postmeta' === current_action() ) {
|
||||||
wp_update_post( array(
|
wp_update_post( array(
|
||||||
|
'ID' => $object_id,
|
||||||
'post_title' => $_meta_value,
|
'post_title' => $_meta_value,
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue