Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/core/componen...
File: PageResource.php
$resource_data = apply_filters( 'et_core_page_resource_get_data', $this->data, $context, $this );
[1000] Fix | Delete
[1001] Fix | Delete
foreach ( $resource_data as $priority => $data_part ) {
[1002] Fix | Delete
foreach ( $data_part as $data ) {
[1003] Fix | Delete
$result .= $data;
[1004] Fix | Delete
}
[1005] Fix | Delete
}
[1006] Fix | Delete
[1007] Fix | Delete
return $result;
[1008] Fix | Delete
}
[1009] Fix | Delete
[1010] Fix | Delete
/**
[1011] Fix | Delete
* Whether or not a static resource exists on the filesystem for this instance.
[1012] Fix | Delete
*
[1013] Fix | Delete
* @return bool
[1014] Fix | Delete
*/
[1015] Fix | Delete
public function has_file() {
[1016] Fix | Delete
if ( ! self::$wpfs || empty( $this->PATH ) || ! self::can_write_to_filesystem() ) {
[1017] Fix | Delete
return false;
[1018] Fix | Delete
}
[1019] Fix | Delete
[1020] Fix | Delete
return self::$wpfs->exists( $this->PATH );
[1021] Fix | Delete
}
[1022] Fix | Delete
[1023] Fix | Delete
/**
[1024] Fix | Delete
* Set the resource's data.
[1025] Fix | Delete
*
[1026] Fix | Delete
* @param string $data
[1027] Fix | Delete
* @param int $priority
[1028] Fix | Delete
*/
[1029] Fix | Delete
public function set_data( $data, $priority = 10 ) {
[1030] Fix | Delete
if ( 'style' === $this->type ) {
[1031] Fix | Delete
$data = et_core_data_utils_minify_css( $data );
[1032] Fix | Delete
// Remove empty media queries
[1033] Fix | Delete
// @media only..and (feature:value) { }
[1034] Fix | Delete
$pattern = '/@media\s+([\w\s]+)?\([\w-]+:[\w\d-]+\)\{\s*\}/';
[1035] Fix | Delete
$data = preg_replace( $pattern, '', $data );
[1036] Fix | Delete
}
[1037] Fix | Delete
[1038] Fix | Delete
$this->data[ $priority ][] = trim( strip_tags( str_replace( '\n', '', $data ) ) );
[1039] Fix | Delete
}
[1040] Fix | Delete
[1041] Fix | Delete
public function set_output_location( $location ) {
[1042] Fix | Delete
if ( ! self::_validate_property( 'location', $location ) ) {
[1043] Fix | Delete
return;
[1044] Fix | Delete
}
[1045] Fix | Delete
[1046] Fix | Delete
$current_location = $this->location;
[1047] Fix | Delete
[1048] Fix | Delete
self::_unassign_output_location( $current_location, $this );
[1049] Fix | Delete
self::_assign_output_location( $location, $this );
[1050] Fix | Delete
[1051] Fix | Delete
$this->location = $location;
[1052] Fix | Delete
}
[1053] Fix | Delete
[1054] Fix | Delete
public function unregister_resource() {
[1055] Fix | Delete
$scope = 'global' === $this->post_id ? 'global' : 'post';
[1056] Fix | Delete
[1057] Fix | Delete
unset( self::$_resources[ $this->slug ], self::$_resources_by_scope[ $scope ][ $this->slug ] );
[1058] Fix | Delete
[1059] Fix | Delete
self::_unassign_output_location( $this->location, $this );
[1060] Fix | Delete
}
[1061] Fix | Delete
}
[1062] Fix | Delete
[1063] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function