Skip to content

Commit

Permalink
Removed condition for setting object id.
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Mar 26, 2018
1 parent af90be3 commit ffe3b90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions inc/meta-box.php
Expand Up @@ -432,12 +432,10 @@ public function __get( $key ) {
/**
* Set the object ID.
*
* @param null|int $id Object ID. null means the current object ID.
* @param mixed $id Object ID.
*/
public function set_object_id( $id = null ) {
if ( null === $this->object_id ) {
$this->object_id = $id;
}
$this->object_id = $id;
}

/**
Expand Down

0 comments on commit ffe3b90

Please sign in to comment.