cast the parent_meta_id type of string to int # 17
This commit is contained in:
parent
13379b8b1e
commit
e48861fd3e
|
@ -427,7 +427,7 @@ class Item_Metadata_Entity extends Entity {
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function validate() {
|
function validate() {
|
||||||
$value = $this->get_value();
|
$value = $this->get_value();
|
||||||
$metadatum = $this->get_metadatum();
|
$metadatum = $this->get_metadatum();
|
||||||
$item = $this->get_item();
|
$item = $this->get_item();
|
||||||
|
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue