Translations::merge_originals_with

Advertisement

Syntax Syntax

Translations::merge_originals_with( object $other )

Parameters Parameters

$other

(object) (Required)

Source Source

File: wp-includes/pomo/translations.php

		function merge_originals_with( &$other ) {
			foreach ( $other->entries as $entry ) {
				if ( ! isset( $this->entries[ $entry->key() ] ) ) {
					$this->entries[ $entry->key() ] = $entry;
				} else {
					$this->entries[ $entry->key() ]->merge_with( $entry );
				}
			}
		}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.