Edit File by line
/home/zeestwma/ceyloniy.../wp-conte.../plugins/elemento.../modules/componen...
File: overridable-schema-extender.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Elementor\Modules\Components;
[2] Fix | Delete
[3] Fix | Delete
use Elementor\Modules\AtomicWidgets\PropTypes\Utils\Prop_Types_Schema_Extender;
[4] Fix | Delete
use Elementor\Modules\AtomicWidgets\PropTypes\Contracts\Prop_Type;
[5] Fix | Delete
use Elementor\Modules\Components\PropTypes\Overridable_Prop_Type;
[6] Fix | Delete
use Elementor\Modules\GlobalClasses\Utils\Atomic_Elements_Utils;
[7] Fix | Delete
[8] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[9] Fix | Delete
exit;
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
class Overridable_Schema_Extender extends Prop_Types_Schema_Extender {
[13] Fix | Delete
public static function make(): self {
[14] Fix | Delete
return new static();
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
protected function get_prop_types_to_add( Prop_Type $prop_type ): array {
[18] Fix | Delete
$is_ignore_overridable_applied = ! $prop_type->get_meta_item( Overridable_Prop_Type::META_KEY, true );
[19] Fix | Delete
$is_classes_prop = Atomic_Elements_Utils::is_classes_prop( $prop_type );
[20] Fix | Delete
[21] Fix | Delete
if ( $is_ignore_overridable_applied || $is_classes_prop ) {
[22] Fix | Delete
return [];
[23] Fix | Delete
}
[24] Fix | Delete
return [ Overridable_Prop_Type::make()->set_origin_prop_type( $prop_type ) ];
[25] Fix | Delete
}
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function