cast the parent_meta_id type of string to int # 17

This commit is contained in:
vnmedeiros 2020-03-16 16:21:14 -03:00
parent 13379b8b1e
commit e48861fd3e
2 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ class Item_Metadata extends Repository {
$post_meta_object = get_metadata_by_mid( 'post', $id ); $post_meta_object = get_metadata_by_mid( 'post', $id );
if ( is_object( $post_meta_object ) ) { if ( is_object( $post_meta_object ) ) {
$metadatum = new Entities\Metadatum( $post_meta_object->meta_key ); $metadatum = new Entities\Metadatum( $post_meta_object->meta_key );
$return_value[ $metadatum->get_id() ] = new Entities\Item_Metadata_Entity( $item, $metadatum, $id, $compound_meta_id ); $return_value[ $metadatum->get_id() ] = new Entities\Item_Metadata_Entity( $item, $metadatum, $id, (int)$compound_meta_id );
} }
} }