Translation_Entry::merge_with() WordPress Method

The Translation_Entry::merge_with() Wordpress method is used to merge two translation entries into one. This is useful when you need to combine two translations into a single string.

Translation_Entry::merge_with( object $other ) #


Parameters

$other

(object)(Required)


Top ↑

Source

File: wp-includes/pomo/entry.php

		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;
			}

		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.