Translation_Entry::merge_with
Merges another translation entry with the current one.
Method of the class: Translation_Entry{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Translation_Entry = new Translation_Entry(); $Translation_Entry->merge_with( $other );
- $other(Translation_Entry) (required) (passed by reference — &)
- Other translation entry.
Changelog
| Since 2.8.0 | Introduced. |
Translation_Entry::merge_with() Translation Entry::merge with code WP 7.0
public function merge_with( &$other ) {
$this->flags = array_unique( array_merge( $this->flags, $other->flags ) );
$this->references = array_unique( array_merge( $this->references, $other->references ) );
if ( $this->extracted_comments !== $other->extracted_comments ) {
$this->extracted_comments .= $other->extracted_comments;
}
}