: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Migration process to migrate Text Text Alignment into Text Orientation of Text module.
class ET_Builder_Module_Settings_Migration_TextAlignment extends ET_Builder_Module_Settings_Migration {
public $version = '3.27.4';
* Get all fields need to be migrated.
* - value consists affected fields as old field and module location
* @return array New and old fields need to be migrated.
public function get_fields() {
// Text Alignment of Text module.
'text_orientation' => array(
'affected_fields' => array(
'text_text_align' => $this->get_modules(),
* Get all modules affected.
public function get_modules() {
return array( 'et_pb_text' );
// Don't migrate empty value.
return ! empty( $current_value ) ? $current_value : $saved_value;
return new ET_Builder_Module_Settings_Migration_TextAlignment();