Plugin Updates
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
if ( ! class_exists( 'Translation_Entry', false ) ) :
|
||||
/**
|
||||
* Translation_Entry class encapsulates a translatable string.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
#[AllowDynamicProperties]
|
||||
class Translation_Entry {
|
||||
@@ -75,6 +77,7 @@ if ( ! class_exists( 'Translation_Entry', false ) ) :
|
||||
/**
|
||||
* PHP4 constructor.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @deprecated 5.4.0 Use __construct() instead.
|
||||
*
|
||||
* @see Translation_Entry::__construct()
|
||||
@@ -87,6 +90,8 @@ if ( ! class_exists( 'Translation_Entry', false ) ) :
|
||||
/**
|
||||
* Generates a unique key for this entry.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @return string|false The key or false if the entry is null.
|
||||
*/
|
||||
public function key() {
|
||||
@@ -103,7 +108,11 @@ if ( ! class_exists( 'Translation_Entry', false ) ) :
|
||||
}
|
||||
|
||||
/**
|
||||
* @param object $other
|
||||
* Merges another translation entry with the current one.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param Translation_Entry $other Other translation entry.
|
||||
*/
|
||||
public function merge_with( &$other ) {
|
||||
$this->flags = array_unique( array_merge( $this->flags, $other->flags ) );
|
||||
|
||||
Reference in New Issue
Block a user