PATH:
home
/
letacommog
/
broderie
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
module
/
settings
/
migration
<?php /** * Migration for the ContactFormItem module which fixes quote serialization for checkbox, radio and select field options. * * @since 3.10 */ class ET_Builder_Module_Settings_Migration_ContactFormItemOptionsSerialization extends ET_Builder_Module_Settings_Migration { public function get_modules() { return array( 'et_pb_contact_field' ); } public function get_fields() { return array( 'checkbox_options' => array( 'affected_fields' => array( 'checkbox_options' => $this->get_modules(), ), ), 'radio_options' => array( 'affected_fields' => array( 'radio_options' => $this->get_modules(), ), ), 'select_options' => array( 'affected_fields' => array( 'select_options' => $this->get_modules(), ), ), ); } public function migrate( $field_name, $current_value, $module_slug, $saved_value, $saved_field_name, $attrs, $content ) { if ( json_decode( $saved_value ) ) { return $saved_value; } $pattern = '/ \{ ("value":")(.*?)(",) ( "checked":.,? .*? ) \} /ix'; $saved_value = preg_replace_callback( $pattern, array( $this, 'escape_quotes' ), $saved_value ); return $saved_value; } public function escape_quotes( $matches ) { return '{' . $matches[1] . preg_replace('/(?<!\\\\)"/', '\\"', $matches[2] ) . $matches[3] . $matches[4] . '}'; } } return new ET_Builder_Module_Settings_Migration_ContactFormItemOptionsSerialization();
[+]
..
[-] FullwidthHeader.php
[edit]
[-] RowCustomWidthToSizing.php
[edit]
[-] DiscontinueHtmlEncoding.php
[edit]
[-] BackgroundUI.php
[edit]
[-] BorderOptions.php
[edit]
[-] UIImprovements.php
[edit]
[-] HoverOptions.php
[edit]
[-] DropShadowToBoxShadow.php
[edit]
[-] RowZeroGutter.php
[edit]
[-] ShopModuleSlugs.php
[edit]
[-] FilterOptions.php
[edit]
[-] OptionsHarmony.php
[edit]
[-] ContactFormItemOptionsSerialization.php
[edit]
[-] TeamMemberIconHover.php
[edit]
[-] FullwidthHeader2.php
[edit]
[-] EmailOptinContent.php
[edit]
[-] InnerShadowToBoxShadow.php
[edit]
[-] Animation.php
[edit]