Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder/module/settings/migratio...
File: ShopOrderByDefault.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class ET_Builder_Module_Settings_Migration_ShopOrderByDefault extends ET_Builder_Module_Settings_Migration {
[2] Fix | Delete
[3] Fix | Delete
public $version = '3.25.3';
[4] Fix | Delete
[5] Fix | Delete
public function get_modules() {
[6] Fix | Delete
return array( 'et_pb_shop' );
[7] Fix | Delete
}
[8] Fix | Delete
[9] Fix | Delete
public function get_fields() {
[10] Fix | Delete
$fields = array(
[11] Fix | Delete
'orderby' => array(
[12] Fix | Delete
'affected_fields' => array(
[13] Fix | Delete
'orderby' => $this->get_modules(),
[14] Fix | Delete
),
[15] Fix | Delete
),
[16] Fix | Delete
);
[17] Fix | Delete
[18] Fix | Delete
return $fields;
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
public function migrate(
[22] Fix | Delete
$field_name,
[23] Fix | Delete
$current_value,
[24] Fix | Delete
$module_slug,
[25] Fix | Delete
$saved_value,
[26] Fix | Delete
$saved_field_name,
[27] Fix | Delete
$attrs,
[28] Fix | Delete
$content,
[29] Fix | Delete
$module_address
[30] Fix | Delete
) {
[31] Fix | Delete
return '' === $current_value ? 'menu_order' : $saved_value;
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
return new ET_Builder_Module_Settings_Migration_ShopOrderByDefault();
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function