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.../public_h.../wp-inclu...
File: class-wp-embed.php
* @param string $cache_key oEmbed cache key.
[500] Fix | Delete
* @return int|null Post ID on success, null on failure.
[501] Fix | Delete
*/
[502] Fix | Delete
public function find_oembed_post_id( $cache_key ) {
[503] Fix | Delete
$cache_group = 'oembed_cache_post';
[504] Fix | Delete
$oembed_post_id = wp_cache_get( $cache_key, $cache_group );
[505] Fix | Delete
[506] Fix | Delete
if ( $oembed_post_id && 'oembed_cache' === get_post_type( $oembed_post_id ) ) {
[507] Fix | Delete
return $oembed_post_id;
[508] Fix | Delete
}
[509] Fix | Delete
[510] Fix | Delete
$oembed_post_query = new WP_Query(
[511] Fix | Delete
array(
[512] Fix | Delete
'post_type' => 'oembed_cache',
[513] Fix | Delete
'post_status' => 'publish',
[514] Fix | Delete
'name' => $cache_key,
[515] Fix | Delete
'posts_per_page' => 1,
[516] Fix | Delete
'no_found_rows' => true,
[517] Fix | Delete
'cache_results' => true,
[518] Fix | Delete
'update_post_meta_cache' => false,
[519] Fix | Delete
'update_post_term_cache' => false,
[520] Fix | Delete
'lazy_load_term_meta' => false,
[521] Fix | Delete
)
[522] Fix | Delete
);
[523] Fix | Delete
[524] Fix | Delete
if ( ! empty( $oembed_post_query->posts ) ) {
[525] Fix | Delete
// Note: 'fields' => 'ids' is not being used in order to cache the post object as it will be needed.
[526] Fix | Delete
$oembed_post_id = $oembed_post_query->posts[0]->ID;
[527] Fix | Delete
wp_cache_set( $cache_key, $oembed_post_id, $cache_group );
[528] Fix | Delete
[529] Fix | Delete
return $oembed_post_id;
[530] Fix | Delete
}
[531] Fix | Delete
[532] Fix | Delete
return null;
[533] Fix | Delete
}
[534] Fix | Delete
}
[535] Fix | Delete
[536] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function